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

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

public class VisualEdgeTreeNode
extends VisualGraphObjectTreeNode

A node representing VisualEdge instances.

Version:
$Id: VisualEdgeTreeNode.java,v 1.8 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
VisualEdgeTreeNode(java.lang.Object userObject)
          Deprecated. use the constructor with the UIManager as parameter instead.
VisualEdgeTreeNode(java.lang.Object userObject, UIManager uimanager)
           Constructor for this VisualEdgeTreeNode
 
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

VisualEdgeTreeNode

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

Constructor for this VisualEdgeTreeNode

Parameters:
userObject - the VisualNode this node should represent.

VisualEdgeTreeNode

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

Constructor for this VisualEdgeTreeNode

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.