|
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.SceneTreeNode
A SceneTreeNode object allows a Scene object to be represented by a TreeNode component that can be added to a JTree component.
| Constructor Summary | |
SceneTreeNode(Scene scene)
Constructs a new SceneTreeNode object using the specified Scene object. |
|
| Method Summary | |
java.util.Enumeration |
children()
Returns the children of this SceneTreeNode object as an Enumeration. |
void |
eventFired(Event event)
Method called when an event has been fired. |
boolean |
getAllowsChildren()
Returns true (A SceneTreeNode always allows children). |
javax.swing.tree.TreeNode |
getChildAt(int index)
Returns the child of this SceneTreeNode object at the specified index. |
int |
getChildCount()
Returns the number of children contained by this SceneTreeNode object. |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of the specified TreeNode object in this SceneTreeNode object's children. |
javax.swing.tree.TreeNode |
getParent()
Returns null (A SceneTreeNode is a root node and has no parent). |
Scene |
getScene()
Returns the Scene object stored by this SceneTreeNode object. |
boolean |
isLeaf()
Returns false (A SceneTreeNode is never a leaf). |
java.lang.String |
toString()
Returns "Scene". |
void |
updateChildren()
Updates the children of this SceneTreeNode object so that they match the stored Scene object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SceneTreeNode(Scene scene)
| Method Detail |
public Scene getScene()
public void updateChildren()
public void eventFired(Event event)
eventFired in interface EventListenerpublic 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 | |||||||||