public class ImageNode extends Node
Node subclass for GIF, JPEG, and PNG image files.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GIF_EXT |
static java.lang.String |
JPEG_EXT |
static java.lang.String |
JPG_EXT |
static java.lang.String |
PNG_EXT |
LOG_READONLY| Constructor and Description |
|---|
ImageNode() |
ImageNode(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, 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, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, removeWeakNodeListener, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, saveImpl, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributedLabelpublic static final java.lang.String GIF_EXT
public static final java.lang.String JPG_EXT
public static final java.lang.String JPEG_EXT
public static final java.lang.String PNG_EXT
public javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns
a generic icon.getIcon in interface DisplayablegetIcon in class NodeIcon to be displayed for the
Displayable.protected void openImpl()
throws java.io.IOException
NodeNode.open() invokes this only if the node is not open, under
write lock. The Node implementation does nothing.protected void closeImpl()
throws java.io.IOException
NodeNode.close() invokes this only if the node is open, under
write lock. The Node implementation does nothing.public java.awt.Image getImage()
public static URLFilter getImageURLFilter()
URLFilter that selects the image file formats
directly supported by ImageNode.public static void init()