|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.ui.tree.SurfaceTreeNode
A SurfaceTreeNode object allows SurfaceUI objects to be represented by TreeNode components that can be added to a JTree component.
| Constructor Summary | |
SurfaceTreeNode(SurfaceUI surface,
TreeNode parent)
Constructs a new SurfaceTreeNode object using the specified SurfaceUI object with the specified parent. |
|
| Method Summary | |
java.util.Enumeration |
children()
Returns the children of this SurfaceTreeNode object as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if this SurfaceTreeNode object allows children. |
javax.swing.tree.TreeNode |
getChildAt(int index)
Returns the child of this SurfaceTreeNode object at the specified index. |
int |
getChildCount()
Returns the number of children contained by this SurfaceTreeNode object. |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of the specified TreeNode object in this SurfaceTreeNode object's children. |
javax.swing.tree.TreeNode |
getParent()
Returns the parent of this SurfaceTreeNode object. |
SurfaceUI |
getSurface()
Returns the SurfaceUI object stored by this SurfaceTreeNode object. |
boolean |
isLeaf()
Returns true if this SurfaceTreeNode object has no children. |
java.lang.String |
toString()
Returns the name of the SurfaceUI object represented by this SurfaceTreeNode object. |
void |
updateChildren()
Updates the children of this SurfaceTreeNode object so that they match the stored SurfaceUI object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SurfaceTreeNode(SurfaceUI surface,
TreeNode parent)
| Method Detail |
public SurfaceUI getSurface()
public void updateChildren()
public java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic java.lang.String toString()
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||