Xj3D VRML/X3D Code API

vrml.field
Class ConstMFNode

java.lang.Object
  extended byvrml.Field
      extended byvrml.ConstField
          extended byvrml.ConstMField
              extended byvrml.field.ConstMFNode
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFNode
extends ConstMField

Constant VRML JSAI type class containing multiple time fields.

Version:
$Revision: 1.6 $
Author:
Alan Hudson, Justin Couch

Field Summary
protected  BaseNode[] data
          The data that the field contains
 
Fields inherited from class vrml.ConstMField
numElements
 
Fields inherited from class vrml.Field
valueChanged
 
Constructor Summary
protected ConstMFNode()
          Construct an instance with default values.
  ConstMFNode(BaseNode[] values)
          Construct a new constant field based on all the given values.
  ConstMFNode(int size, BaseNode[] values)
          Construct new constant field based on the subset of the given values.
 
Method Summary
 java.lang.Object clone()
          Make a clone of this object.
 BaseNode get1Value(int index)
          Fetch the value at the given array index position
 void getValue(BaseNode[] values)
          Copy the values of this array BaseNodeo the user provided array.
 java.lang.String toString()
          Create a string representation of the field values.
 
Methods inherited from class vrml.ConstMField
getSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected BaseNode[] data
The data that the field contains

Constructor Detail

ConstMFNode

protected ConstMFNode()
Construct an instance with default values. Not available to mere mortals.


ConstMFNode

public ConstMFNode(BaseNode[] values)
Construct a new constant field based on all the given values.

Parameters:
values - The values to copy

ConstMFNode

public ConstMFNode(int size,
                   BaseNode[] values)
Construct new constant field based on the subset of the given values.

Parameters:
size - The number of items to copy
values - The source values to copy
Method Detail

getValue

public void getValue(BaseNode[] values)
Copy the values of this array BaseNodeo the user provided array.

Parameters:
values - The array to copy data BaseNodeo

get1Value

public BaseNode get1Value(int index)
Fetch the value at the given array index position

Parameters:
index - The position to ask the value of
Returns:
The value at that position

toString

public java.lang.String toString()
Create a string representation of the field values.

Returns:
A string representing the values.

clone

public java.lang.Object clone()
Make a clone of this object.

Specified by:
clone in class Field
Returns:
A copy of the field and its data

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium