|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.nodes.runtime.BindableNodeManager
The manager of bindable/activatable nodes at runtime.
This common manager is responsible for handling the details of a single type of bindable or activatable node. The primary difference between the two types is that bindable nodes also have a bindTime field that must be set at the time they get bound.
| Constructor Summary | |
BindableNodeManager()
Create and initialise a route manager instance |
|
| Method Summary | |
void |
addNode(VRMLBindableNodeType node,
boolean isDefault)
Add a bindable node to the management system. |
void |
clearAll()
Clear all of the nodes that this manager is currently dealing with. |
VRMLBindableNodeType |
getBoundNode()
Get the currently bound node. |
VRMLBindableNodeType |
getFirstNode()
Fetch the first node that was added to the manager after it was cleared. |
void |
nodeIsBound(VRMLNodeType src,
boolean yes)
Notification that the environment has requested that this node be now bound or removed as the active node in the stack. |
void |
removeNode(VRMLBindableNodeType node)
Remove a bindable node from the management system. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
void |
setNodeChangeListener(BindableNodeListener l)
Set the handler for node bind change events. |
void |
setVRMLClock(VRMLClock clk)
Set the VRML clock instance that we are using so that we can set the bind time information for nodes that require it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BindableNodeManager()
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void setVRMLClock(VRMLClock clk)
clk - The new clock to setpublic VRMLBindableNodeType getBoundNode()
public VRMLBindableNodeType getFirstNode()
public void addNode(VRMLBindableNodeType node,
boolean isDefault)
node - The instance to add to this managerisDefault - Is this a default bindablepublic void removeNode(VRMLBindableNodeType node)
node - The instance to add to this managerpublic void clearAll()
public void setNodeChangeListener(BindableNodeListener l)
l - The listener to be used or null
public void nodeIsBound(VRMLNodeType src,
boolean yes)
nodeIsBound in interface VRMLBindableNodeListenersrc - The source node that is to be boundyes - true if the node is to becoming active
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||