com.tensegrity.gui.swing.control.tree
Class VisualGraphObjectTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.tensegrity.gui.swing.control.tree.VisualGraphObjectTreeNode
All Implemented Interfaces:
java.lang.Cloneable, DynamicTreeNode, LabeledTreeNode, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
VisualEdgeTreeNode, VisualNodeTreeNode, VisualSubgraphTreeNode

public abstract class VisualGraphObjectTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements DynamicTreeNode, LabeledTreeNode

VisualGraphObjectTreeNode is the TreeNode implementation for VisualGraphObjects.

Version:
$Id: VisualGraphObjectTreeNode.java,v 1.9 2004/10/14 13:28:26 SebastienGuyon Exp $
Author:
Gilles Iachelini
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
VisualGraphObjectTreeNode(java.lang.Object userObject)
          Deprecated. use the constructor with the UIManager as parameter instead.
VisualGraphObjectTreeNode(java.lang.Object userObject, UIManager uimanager)
          Constructor for VisualGraphObjectTreeNode.
 
Method Summary
 long getID()
          Returns the id of the user object which is a VisualGraphObject.
 UIManager getUIManager()
           Returns the local UIManager instance.
 void loadChildren()
          Method loadChildren Loads the children of this node.
 java.lang.String toString()
           
 
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, getPathToRoot, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.tensegrity.gui.swing.control.tree.LabeledTreeNode
getLabel
 

Constructor Detail

VisualGraphObjectTreeNode

public VisualGraphObjectTreeNode(java.lang.Object userObject)
Deprecated. use the constructor with the UIManager as parameter instead.

Constructor for VisualGraphObjectTreeNode.

Parameters:
userObject - a VisualGraphObject this node will represent.

VisualGraphObjectTreeNode

public VisualGraphObjectTreeNode(java.lang.Object userObject,
                                 UIManager uimanager)
Constructor for VisualGraphObjectTreeNode.

Parameters:
userObject - a VisualGraphObject this node will represent.
uimanager - the UIManager for localized Strings.
Method Detail

loadChildren

public void loadChildren()
Description copied from interface: DynamicTreeNode
Method loadChildren Loads the children of this node. This may depend on userObject or any other structured data item of the node. this method should be invoked by ExpansionListeners of tree's to indicate that the children of this node are required. A prerequisite of all implementations might be to remove the children first before they are loaded.

Specified by:
loadChildren in interface DynamicTreeNode

toString

public java.lang.String toString()

getID

public long getID()
Returns the id of the user object which is a VisualGraphObject. See VisualGraphObject.getID().

Returns:
the id of the internal VisualGraphObject.

getUIManager

public UIManager getUIManager()

Returns the local UIManager instance.

Returns:
the local UIManager instance.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.