Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.model
Class ImageNode

java.lang.Object
  extended by oracle.ide.model.Node
      extended by 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.


Field Summary
static java.lang.String GIF_EXT
           
static java.lang.String JPEG_EXT
           
static java.lang.String JPG_EXT
           
static java.lang.String PNG_EXT
           
 
Fields inherited from class oracle.ide.model.Node
LOG_READONLY
 
Constructor Summary
ImageNode()
           
ImageNode(java.net.URL url)
           
 
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, readLockInterruptibly, 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, writeLockInterruptibly, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ImageNode

public ImageNode()

ImageNode

public ImageNode(java.net.URL url)
Method Detail

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()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.