Package org.web3d.vrml.scripting.jsai
Interface FieldFactory
- All Known Implementing Classes:
JSAIFieldFactory
public interface FieldFactory
Factory abstract interface for generating fields from a given node.
The idea of this factory is to break a circular compile dependency between JSAINode and JSAISFNode/JSAIMFNode.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptioncreateConstField
(VRMLNodeType node, String field) Create a constant field that represents an eventOut.createField
(VRMLNodeType node, String field, boolean checkEventIn) Create a field given a name from the node.
-
Method Details
-
createField
Create a field given a name from the node.- Parameters:
node
- The node to create the field fromfield
- The name of the field to fetchcheckEventIn
- true if we should check for an event in- Returns:
- An instance of the field class representing the field
-
createConstField
Create a constant field that represents an eventOut.- Parameters:
node
- The node to create the field fromfield
- The name of the field to fetch- Returns:
- An instance of the field class representing the field
-