Skip navigation links 
 
oracle.ide.model
Class ImageNode
java.lang.Object
  
oracle.ide.model.Node
      
oracle.ide.model.ImageNode
- All Implemented Interfaces:
 
- Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable
 
- 
public class ImageNode
 
- extends Node
 
Node subclass for GIF, JPEG, and PNG image files.
 
 
  
 
  
 
| Method Summary | 
protected  void | 
closeImpl() 
          Subclasses should override this method to customize the close() behavior. | 
 javax.swing.Icon | 
getIcon() 
          Displayable interface method. | 
 java.awt.Image | 
getImage() 
            | 
static URLFilter | 
getImageURLFilter() 
          Returns a URLFilter that selects the image file formats directly supported by ImageNode. | 
static void | 
init() 
            | 
protected  void | 
openImpl() 
          Subclasses should override this method to customize the open() behavior. | 
 
| Methods inherited from class oracle.ide.model.Node | 
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isMigrating, isNew, isOpen, isReadLocked, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, markDirty, markDirtyImpl, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, saveImpl, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeUnlock | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
GIF_EXT
public static final java.lang.String GIF_EXT
- 
- See Also:
 
- Constant Field Values
 
 
JPG_EXT
public static final java.lang.String JPG_EXT
- 
- See Also:
 
- Constant Field Values
 
 
JPEG_EXT
public static final java.lang.String JPEG_EXT
- 
- See Also:
 
- Constant Field Values
 
 
PNG_EXT
public static final java.lang.String PNG_EXT
- 
- See Also:
 
- Constant Field Values
 
 
ImageNode
public ImageNode()
ImageNode
public ImageNode(java.net.URL url)
getIcon
public javax.swing.Icon getIcon()
- Description copied from class: 
Node 
Displayable interface method. The Node class returns a generic icon. 
- 
- Specified by:
 
getIcon in interface Displayable 
- Overrides:
 
getIcon in class Node 
 
- 
- Returns:
 
- the 
Icon to be displayed for the Displayable. 
 
openImpl
protected void openImpl()
                 throws java.io.IOException
- Description copied from class: 
Node 
- Subclasses should override this method to customize the open() behavior. 
Node.open() invokes this only if the node is not open, under write lock. The Node implementation does nothing. 
- 
- Overrides:
 
openImpl in class Node 
 
- 
- Throws:
 
java.io.IOException - if an I/O error occurred while opening 
 
closeImpl
protected void closeImpl()
                  throws java.io.IOException
- Description copied from class: 
Node 
- Subclasses should override this method to customize the close() behavior. 
Node.close() invokes this only if the node is open, under write lock. The Node implementation does nothing. 
- 
- Overrides:
 
closeImpl in class Node 
 
- 
- Throws:
 
java.io.IOException - if an I/O error occurred while closing 
 
getImage
public java.awt.Image getImage()
getImageURLFilter
public static URLFilter getImageURLFilter()
- Returns a 
URLFilter that selects the image file formats directly supported by ImageNode. 
init
public static void init()
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.