Class dnx.lr.Field
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.Field

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Field

public class Field
extends DNXObject
implements Cloneable
This is the base class of all fields. For each field in each node, there's a corresponding object that is a subclass of this class. This contains a back pointer to the Node it's contained in as well as the actual data stored in the field. All of the actual field classes are contained in the dnx.lr.field package.

Variable Index

 o owner
This is the Node that this field is in.
 o showInstanceNumber

Constructor Index

 o Field()

Method Index

 o clone()
 o clone(Node)
This is used, among other things, when a new node is created -- the fields representing the default values (which are stored in the NodeDefinition) are cloned to produce the fields in a Node.
 o copy(Field)
 o createField(String)
Creates a field of a specified type.
 o free()
 o getNodeTreeContext()
 o getOwner()
 o getSceneContext()
 o print(PrintAction)
 o read(ReadAction)
Read in the value of the field from a source.
 o readInternal(ReadAction)
Implementation of read().
 o toString()
 o typeName()
Get the type name of this field.

Variables

 o owner
  protected Node owner
This is the Node that this field is in. Fields are static in a Node -- they can never be deleted from a node and never inserted (except at creation time).
 o showInstanceNumber
  public static boolean showInstanceNumber

Constructors

 o Field
  public Field()

Methods

 o getOwner
  public Node getOwner()
 o getNodeTreeContext
  public NodeTreeContext getNodeTreeContext()
 o getSceneContext
  public SceneContext getSceneContext()
 o read
  public final void read(ReadAction r) throws IOException, VRMLSyntaxException
Read in the value of the field from a source. For simple fields like SFFloats, this just reads in a number. For some fields like SFImage or MFVec3f, this will do a lot more.
 o readInternal
  protected abstract void readInternal(ReadAction r) throws IOException, VRMLSyntaxException
Implementation of read(). Fields should override this.
 o print
  public void print(PrintAction p)
 o free
  public abstract void free()
 o copy
  public abstract void copy(Field f)
 o clone
  protected Object clone(Node owner)
This is used, among other things, when a new node is created -- the fields representing the default values (which are stored in the NodeDefinition) are cloned to produce the fields in a Node.
 o clone
  public Object clone()
Overrides:
clone in class Object
 o typeName
  public String typeName()
Get the type name of this field. The type name is the field name used in PROTO definitions--just the class name without the package prefix.
Overrides:
typeName in class DNXObject
 o toString
  public String toString()
Overrides:
toString in class Object
 o createField
  public static Field createField(String fieldName)
Creates a field of a specified type. It returns null if the field could not be created (because the class couldn't be found or instanced.)

All Packages  Class Hierarchy  This Package  Previous  Next  Index