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

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

public class VisualNodeTreeNode
extends VisualGraphObjectTreeNode

A node representing VisualNode instances.

Version:
$Id: VisualNodeTreeNode.java,v 1.7 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
VisualNodeTreeNode(java.lang.Object userObject)
          Deprecated. use the constructor with the UIManager as parameter instead.
VisualNodeTreeNode(java.lang.Object userObject, UIManager uimanager)
           Constructor for VisualNodeTreeNode.
 
Method Summary
 java.lang.String getLabel()
          Method getLabel returns the label suitable for this node.
 void loadChildren()
          Method loadChildren Loads the children of this node.
 
Methods inherited from class com.tensegrity.gui.swing.control.tree.VisualGraphObjectTreeNode
getID, getUIManager, 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
 

Constructor Detail

VisualNodeTreeNode

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

Constructor for VisualNodeTreeNode.

Parameters:
userObject - The required UserObject for this node. Preferable a VisualNode.

VisualNodeTreeNode

public VisualNodeTreeNode(java.lang.Object userObject,
                          UIManager uimanager)

Constructor for VisualNodeTreeNode.

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
Overrides:
loadChildren in class VisualGraphObjectTreeNode
See Also:
com.tensegrity.swing.tree.DynamicTreeNode#loadChildren()

getLabel

public java.lang.String getLabel()
Description copied from interface: LabeledTreeNode
Method getLabel returns the label suitable for this node.

Returns:
String


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