Class ScriptNodeEventOutControl

java.lang.Object
  extended by vrml.BaseNode
      extended by vrml.node.Script
          extended by ScriptNodeEventOutControl

public class ScriptNodeEventOutControl
extends Script

ScriptNodeEventOutControl provides Script functionality for 3D scenes ScriptNodeEventOutControl-Java (xml, wrl), serving as a simple example & conformance test.

Related scene:

Version:
10 October 2002
Author:
Don Brutzman

Field Summary
static boolean DEBUG
          DEBUG allows developers to turn execution-trace messages on/off - these System.out.println messages appear in the Java Console window.
 
Constructor Summary
ScriptNodeEventOutControl()
           
 
Method Summary
 boolean getDEBUG()
          accessor method to get DEBUG value.
 java.lang.String getName()
          toString() overrides a utility method in Object, allowing run-time inspection of class name.
 void initialize()
          Initialize scene variables prior to rendering.
 void processEvent(Event touchEvent)
          processEvent() is called automatically when the script receives any event.
 void setDEBUG(boolean newValue)
          accessor method to set DEBUG value.
 void shutdown()
          shutdown () is called when this Script node is deleted.
 
Methods inherited from class vrml.node.Script
eventsProcessed, getEventIn, getEventOut, getField, processEvents, toString
 
Methods inherited from class vrml.BaseNode
getBrowser, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
DEBUG allows developers to turn execution-trace messages on/off - these System.out.println messages appear in the Java Console window.

Constructor Detail

ScriptNodeEventOutControl

public ScriptNodeEventOutControl()
Method Detail

setDEBUG

public void setDEBUG(boolean newValue)
accessor method to set DEBUG value.


getDEBUG

public boolean getDEBUG()
accessor method to get DEBUG value.


getName

public java.lang.String getName()
toString() overrides a utility method in Object, allowing run-time inspection of class name.

See Also:
Object.toString()

initialize

public void initialize()
Initialize scene variables prior to rendering. Reference: http://www.web3D.org/technicalinfo/specifications/vrml97/part1/java.html#B.4.6

Overrides:
initialize in class Script

processEvent

public void processEvent(Event touchEvent)
processEvent() is called automatically when the script receives any event.

Overrides:
processEvent in class Script
Parameters:
touchEvent - provides the user's "click" Event ROUTEd into the Script.

shutdown

public void shutdown()
shutdown () is called when this Script node is deleted. Use is optional, typically only needed for cleanup such as shutting down socket connections. Reference: http://www.web3D.org/technicalinfo/specifications/vrml97/part1/java.html#B.4.5

Overrides:
shutdown in class Script