Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.jsai
Class JSAIFieldFactory

java.lang.Object
  extended by org.web3d.vrml.scripting.jsai.JSAIFieldFactory
All Implemented Interfaces:
FieldFactory

public class JSAIFieldFactory
extends java.lang.Object
implements FieldFactory

Factory class for generating fields from a given node.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Constructor Summary
JSAIFieldFactory()
           
 
Method Summary
 ConstField createConstField(VRMLNodeType node, java.lang.String fieldName)
          Create a constant field that represents an eventOut.
 Field createField(VRMLNodeType node, java.lang.String name, boolean checkEventIn)
          Create a field given a name from the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSAIFieldFactory

public JSAIFieldFactory()
Method Detail

createField

public Field createField(VRMLNodeType node,
                         java.lang.String name,
                         boolean checkEventIn)
Create a field given a name from the node.

Specified by:
createField in interface FieldFactory
Parameters:
node - The node to create the field from
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

public ConstField createConstField(VRMLNodeType node,
                                   java.lang.String fieldName)
Create a constant field that represents an eventOut.

Specified by:
createConstField in interface FieldFactory
Parameters:
node - The node to create the field from
fieldName - 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