|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsyn3d.base.ActiveNode
syn3d.nodes.GroupNode
syn3d.nodes.SwitchNode
public class SwitchNode
| Nested Class Summary | |
|---|---|
protected static class |
SwitchNode.Action
|
| Field Summary | |
|---|---|
protected static int |
anonymousNodeNumber
|
protected static javax.swing.Icon |
icon
|
protected java.util.BitSet |
status
|
| Fields inherited from class syn3d.base.ActiveNode |
|---|
children, name, parent |
| Constructor Summary | |
|---|---|
SwitchNode(ActiveNode parent)
|
|
| Method Summary | |
|---|---|
protected void |
addChild(ActiveNode child)
Internal use function. |
void |
doAction(java.lang.Object action)
When the user has selected an action in the list return by getActions(), this method is called. |
java.util.List |
getActions()
Returns a list of possible actions on this node. |
javax.swing.Icon |
getIcon()
Utility method to specialize the swing tree renderer. |
boolean |
getStatus(ActiveNode child)
|
protected void |
removeChild(ActiveNode child)
Internal use function. |
void |
restoreReferences(ActiveNode parent)
Restore a serialized object to the scene graph. |
boolean |
saveChildren()
The scene/swing tree is serialized from root to leaf, hierachically. |
void |
setStatus(ActiveNode child,
boolean status)
|
| Methods inherited from class syn3d.nodes.GroupNode |
|---|
getScene |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.BitSet status
protected static int anonymousNodeNumber
protected static javax.swing.Icon icon
| Constructor Detail |
|---|
public SwitchNode(ActiveNode parent)
| Method Detail |
|---|
protected void addChild(ActiveNode child)
ActiveNode
addChild in class ActiveNodeprotected void removeChild(ActiveNode child)
ActiveNode
removeChild in class ActiveNodepublic java.util.List getActions()
ActiveNode
getActions in class ActiveNodepublic void doAction(java.lang.Object action)
ActiveNode
doAction in class ActiveNodeaction - An action previously declared by the getActions method.public javax.swing.Icon getIcon()
ActiveNode
getIcon in class ActiveNodepublic void restoreReferences(ActiveNode parent)
ActiveNode
restoreReferences in class ActiveNodeparent - The active node to attach this one to once it has been successfully de-serializedpublic boolean saveChildren()
ActiveNode
saveChildren in class ActiveNode
public void setStatus(ActiveNode child,
boolean status)
public boolean getStatus(ActiveNode child)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||