Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.jsai
Class JSAINode

java.lang.Object
  extended by vrml.BaseNode
      extended by vrml.node.Node
          extended by org.web3d.vrml.scripting.jsai.JSAINode

public class JSAINode
extends Node

Local wrapper for the JSAI Node class.

Version:
$Revision: 1.6 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class vrml.BaseNode
browser, nodeName, realNode
 
Constructor Summary
JSAINode(VRMLNodeType node, Browser b, FieldFactory factory)
          Construct a new node instance based on the underlying VRML node
 
Method Summary
protected  ConstField createConstField(java.lang.String name)
          Create a constant field that represents an eventOut.
protected  Field createField(java.lang.String name, boolean checkEventIn)
          Create a field given a name.
 
Methods inherited from class vrml.node.Node
getEventIn, getEventOut, getExposedField
 
Methods inherited from class vrml.BaseNode
getBrowser, getImplNode, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSAINode

public JSAINode(VRMLNodeType node,
                Browser b,
                FieldFactory factory)
Construct a new node instance based on the underlying VRML node

Parameters:
node - The node to use
b - The browser to use with this node
factory - The Factory used to create fields
Throws:
java.lang.NullPointerException - The node reference was null
Method Detail

createField

protected Field createField(java.lang.String name,
                            boolean checkEventIn)
Create a field given a name.

Specified by:
createField in class Node
Parameters:
name - The name of the field to fetch
checkEventIn - true if we should check for an event in
Returns:
An instance of the field class representing the field
Throws:
InvalidEventInException - The field is not an eventIn
InvalidExposedFieldException - The field is not an exposedField

createConstField

protected ConstField createConstField(java.lang.String name)
Create a constant field that represents an eventOut.

Specified by:
createConstField in class Node
Parameters:
name - The name of the field to fetch
Returns:
An instance of the field class representing the field
Throws:
InvalidEventInException - The field is not an eventOut

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium