com.jgraph.example
Class GraphSelectionDemo.GraphModelTreeNode

java.lang.Object
  extended by com.jgraph.example.GraphSelectionDemo.GraphModelTreeNode
All Implemented Interfaces:
javax.swing.tree.TreeNode
Enclosing class:
GraphSelectionDemo

public static class GraphSelectionDemo.GraphModelTreeNode
extends java.lang.Object
implements javax.swing.tree.TreeNode

See the GraphModelTree demo


Constructor Summary
GraphSelectionDemo.GraphModelTreeNode(org.jgraph.graph.GraphModel model)
           
 
Method Summary
 java.util.Enumeration children()
           
 boolean getAllowsChildren()
           
 javax.swing.tree.TreeNode getChildAt(int childIndex)
           
 int getChildCount()
           
 int getIndex(javax.swing.tree.TreeNode node)
           
 javax.swing.tree.TreeNode getParent()
           
 boolean isLeaf()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphSelectionDemo.GraphModelTreeNode

public GraphSelectionDemo.GraphModelTreeNode(org.jgraph.graph.GraphModel model)
Method Detail

children

public java.util.Enumeration children()
Specified by:
children in interface javax.swing.tree.TreeNode

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode

getChildAt

public javax.swing.tree.TreeNode getChildAt(int childIndex)
Specified by:
getChildAt in interface javax.swing.tree.TreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface javax.swing.tree.TreeNode

getIndex

public int getIndex(javax.swing.tree.TreeNode node)
Specified by:
getIndex in interface javax.swing.tree.TreeNode

getParent

public javax.swing.tree.TreeNode getParent()
Specified by:
getParent in interface javax.swing.tree.TreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object