mil.navy.nps.testing
Class ScriptNodeFieldControl

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

public class ScriptNodeFieldControl
extends Script

Test script used by ScriptNodeFieldControl.wrl to verify proper operation of the Java Script Authoring Interface (JSAI). Uses SFNodes as directly modifiable Script node fields.

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:
ScriptNodeFieldControl.java
http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/testing/ScriptNodeFieldControl.java
http://web.nps.navy.mil/~brutzman/vrtp/mil/navy/nps/testing/ScriptNodeFieldControl.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:
ScriptNodeEventOutControl

Field Summary
static boolean DEBUG
           
 
Constructor Summary
ScriptNodeFieldControl()
           
 
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

ScriptNodeFieldControl

public ScriptNodeFieldControl()
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