Class EAINode
java.lang.Object
vrml.eai.Node
org.web3d.vrml.scripting.external.eai.EAINode
- All Implemented Interfaces:
Runnable
EAINode is a simple implementation of the vrml.eai.Node class.
It serves simply as a wrapper around the VRMLNodeType implementation,
although that task does include producing wrappers around the various
EventIn and EventOut classes.
- Version:
- 1.0
- Author:
- Brad Vender
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of this node's resources.booleangetEventIn(String eventName) Get an eventIn for this node.getEventOut(String eventName) Get an eventOut for this node.getType()Get the type of this node.voidrun()
-
Method Details
-
getEventIn
Description copied from class:NodeGet an eventIn for this node.If the basic field required is an exposedField you can use either the standard name (such as translation) or you can use the set_ modifier (such as set_translation).
- Specified by:
getEventInin classNode- Parameters:
eventName- The name of the eventIn that is required- Returns:
- A reference to the eventIn requested.
- Throws:
InvalidEventInException- The named eventIn does not exist for this node.InvalidNodeException- The node has had it's resources disposed of
-
getEventOut
Description copied from class:NodeGet an eventOut for this node.If the basic field required is an exposedField you can use either the standard name (such as translation) or you can use the _changed modifier (such as translation_changed).
- Specified by:
getEventOutin classNode- Parameters:
eventName- The name of the eventIn that is required- Returns:
- A reference to the eventIn requested.
- Throws:
InvalidEventOutException- The named eventIn does not exist for this node.InvalidNodeException- The node has had it's resources disposed of
-
getType
Description copied from class:NodeGet the type of this node. The string returned should be the name of the VRML node or the name of the proto instance this node represents.- Specified by:
getTypein classNode- Returns:
- The type of this node.
- Throws:
InvalidNodeException- The node has had it's resources disposed of
-
equals
-
dispose
Description copied from class:NodeDispose of this node's resources. This is used to indicate to the browser that the java side of the application does not require the resources represented by this node. The browser is now free to do what it likes with the node.This in no way implies that the browser is to remove this node from the scene graph, only that the java applet is no longer interested in this particular node through this reference.
Once this method has been called, any further calls to methods of this instance of the class is will generate an InvalidNodeException.
- Specified by:
disposein classNode- Throws:
InvalidNodeException- The node is no longer valid and can't be disposed of again.
-
run
-