|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.ui.tree.SceneTreeNode
public class 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 | |
|---|---|
Enumeration |
children()
|
void |
eventFired(Event event)
Method called when an event has been fired. |
boolean |
getAllowsChildren()
|
TreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
EventHandler |
getEventHandler()
Returns the EventHandler that is being used by this EventGenerator. |
int |
getIndex(TreeNode node)
|
TreeNode |
getParent()
|
Scene |
getScene()
Returns the Scene object stored by this SceneTreeNode object. |
void |
insert(MutableTreeNode node,
int index)
Does nothing. |
boolean |
isLeaf()
|
void |
remove(int index)
Removes the Surface object stored by the Scene backing this SceneTreeNode at the specified index and updates the children. |
void |
remove(MutableTreeNode node)
Does nothing. |
void |
removeFromParent()
Does nothing. |
void |
setEventHandler(EventHandler handler)
Sets the EventHandler that is used by this EventGenerator. |
void |
setParent(MutableTreeNode node)
Does nothing. |
void |
setUserObject(Object o)
Does nothing. |
String |
toString()
|
void |
updateChildren()
Updates the children of this SceneTreeNode object so that they match the stored Scene object. |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 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 | |||||||||