Extension SDK 10.1.3.36.73

oracle.ide.model
Class ImageNode

java.lang.Object
  extended byoracle.ide.model.Node
      extended byoracle.ide.model.ImageNode
All Implemented Interfaces:
oracle.javatools.data.Dirtyable, Dirtyable, Displayable, Element, LazyLoadable, Locatable, Subject

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
           
 
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
_getReadWriteLockInternal, addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, close, createSubject, delete, deleteImpl, detach, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getToolTipText, getURL, isDirty, isNew, isOpen, isReadOnly, isTrackedInNodeCache, markDirty, mayHaveChildren, notifyObservers, open, postCloseImpl, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runWhileSynchronized, save, saveImpl, setOpen, setTimestampDirectly, setURL, toString
 
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

openImpl

protected void openImpl()
                 throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the open() behavior.

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.

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

Extension SDK 10.1.3.36.73

 

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