mil.navy.nps.testing
Class ScriptNodeEventOutControl

java.lang.Object
  extended byvrml.BaseNode
      extended byvrml.node.Script
          extended bymil.navy.nps.testing.ScriptNodeEventOutControl

public class ScriptNodeEventOutControl
extends Script

Test script used by ScriptNodeEventOutControl.wrl to verify proper operation of the Java Script Authoring Interface (JSAI). Modifies SFNodes by using ROUTEs from Script node eventOuts.

Version:
2.0

Author:
Don Brutzman (http://web.nps.navy.mil/~brutzman)

Description:
VRML-Java paper: Brutzman, Don, "The Virtual Reality Modeling Language and Java," Communications of the ACM, vol. 41 no. 6, June 1998, pp. 57-64.

Location:
ScriptNodeEventOutControl.java
http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/testing/ScriptNodeEventOutControl.java
http://web.nps.navy.mil/~brutzman/vrtp/mil/navy/nps/testing/ScriptNodeEventOutControl.java

History:
5 April 99 Don Brutzman Revised to include Javadoc and exception handling.
12 June 2000 Don Brutzman Fully specified package for vrml.field.* types to avoid collisions with Java3D classes.

Debugging notes:
System.out.println text appears on the Netscape Java console when using CosmoPlayer,
or on WorldView's VRML console

See Also:
ScriptNodeFieldControl

Field Summary
static boolean DEBUG
           
 
Constructor Summary
ScriptNodeEventOutControl()
           
 
Method Summary
 java.lang.String getName()
          Utility method.
 void initialize()
          Called by VRML browser prior to first rendering the scene.
 void processEvent(Event touch)
          Called by VRML browser when the user touches the intermediate text in the test scene.
 
Methods inherited from class vrml.node.Script
eventsProcessed, getEventIn, getEventOut, getField, processEvents, shutdown, 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 final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

ScriptNodeEventOutControl

public ScriptNodeEventOutControl()
Method Detail

getName

public java.lang.String getName()
Utility method.


initialize

public void initialize()
Called by VRML browser prior to first rendering the scene.

Overrides:
initialize in class Script

processEvent

public void processEvent(Event touch)
Called by VRML browser when the user touches the intermediate text in the test scene.

Overrides:
processEvent in class Script