|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.ui.tree.SurfaceTreeNode
public class 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 | |
|---|---|
Enumeration |
children()
|
boolean |
getAllowsChildren()
|
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. |
EventHandler |
getEventHandler()
Returns the EventHandler that is being used by this EventGenerator. |
int |
getIndex(TreeNode node)
Returns the index of the specified TreeNode object in this SurfaceTreeNode object's children. |
TreeNode |
getParent()
Returns the parent of this SurfaceTreeNode object. |
SurfaceUI |
getSurface()
Returns the SurfaceUI object stored by this SurfaceTreeNode object. |
void |
insert(MutableTreeNode node,
int index)
|
boolean |
isLeaf()
|
void |
remove(int index)
Does nothing. |
void |
remove(MutableTreeNode node)
Does nothing. |
void |
removeFromParent()
|
void |
setEventHandler(EventHandler handler)
Sets the EventHandler that is used by this EventGenerator. |
void |
setParent(MutableTreeNode node)
|
void |
setUserObject(Object o)
Sets the name of the SurfaceUI object stored to the specified value, if it is a String. |
String |
toString()
|
void |
updateChildren()
Updates the children of this SurfaceTreeNode object so that they match the stored SurfaceUI object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SurfaceTreeNode(SurfaceUI surface,
TreeNode parent)
| Method Detail |
|---|
public SurfaceUI getSurface()
public void updateChildren()
public Enumeration children()
children in interface TreeNodepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic String toString()
toString in class Object
public void insert(MutableTreeNode node,
int index)
insert in interface MutableTreeNodepublic void remove(int index)
remove in interface MutableTreeNodepublic void remove(MutableTreeNode node)
remove in interface MutableTreeNodepublic void setUserObject(Object o)
setUserObject in interface MutableTreeNodepublic void removeFromParent()
removeFromParent in interface MutableTreeNodepublic void setParent(MutableTreeNode node)
setParent in interface MutableTreeNodepublic void setEventHandler(EventHandler handler)
EventGenerator
setEventHandler in interface EventGeneratorpublic EventHandler getEventHandler()
EventGenerator
getEventHandler in interface EventGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||