apps.mtdesktop.desktop.tree.nodes
Class ImageNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by apps.mtdesktop.desktop.tree.nodes.AssetNode
          extended by apps.mtdesktop.desktop.tree.nodes.ImageNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class ImageNode
extends AssetNode

The Class ImageNode.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
ImageNode(java.io.File assetFile)
          Instantiates a new image node.
ImageNode(java.awt.Image img)
          Instantiates a new image node.
 
Method Summary
 javax.swing.Icon getIcon()
          Gets the icon.
 java.awt.Image getImage()
          Gets the image.
 void setImage(java.awt.Image img)
          Sets the image.
 
Methods inherited from class apps.mtdesktop.desktop.tree.nodes.AssetNode
getAssetFile, getAssetId, setAssetFile, setAssetId, setNodeTitle
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageNode

public ImageNode(java.io.File assetFile)
Instantiates a new image node.

Parameters:
assetFile - the asset file

ImageNode

public ImageNode(java.awt.Image img)
Instantiates a new image node.

Parameters:
img - the img
Method Detail

getIcon

public javax.swing.Icon getIcon()
Description copied from class: AssetNode
Gets the icon.

Specified by:
getIcon in class AssetNode
Returns:
the icon

getImage

public java.awt.Image getImage()
Gets the image.

Returns:
the image

setImage

public void setImage(java.awt.Image img)
Sets the image.

Parameters:
img - the new image