vrml.field
Class ConstMFDouble

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.ConstMField
              extended by vrml.field.ConstMFDouble
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFDouble
extends ConstMField

Represents a read-only VRML MFDouble field in Java.


Constructor Summary
ConstMFDouble(double[] values)
          Construct a read-only MFDouble field.
ConstMFDouble(int size, double[] values)
          Construct a read-only MFDouble field.
 
Method Summary
 double get1Value(int index)
          Retrieves a specific SFDouble element in an MFDouble and returns it as a double.
 int getSize()
          Number of elements contained in the MField.
 void getValue(double[] values)
          Retrieves the value of an MFDouble field.
 
Methods inherited from class vrml.ConstField
clone
 
Methods inherited from class vrml.Field
dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstMFDouble

public ConstMFDouble(int size,
                     double[] values)
Construct a read-only MFDouble field.

Parameters:
size - Number of SFDouble elements passed in.
values - Array of SFDouble values.

ConstMFDouble

public ConstMFDouble(double[] values)
Construct a read-only MFDouble field.

Parameters:
values - An array of SFDouble values.
Method Detail

getSize

public int getSize()
Description copied from class: ConstMField
Number of elements contained in the MField.

Specified by:
getSize in class ConstMField
Returns:
the number of elements.

getValue

public void getValue(double[] values)
Retrieves the value of an MFDouble field.

Parameters:
values - Array of double values to be returned.

get1Value

public double get1Value(int index)
Retrieves a specific SFDouble element in an MFDouble and returns it as a double.

Parameters:
index - Position of desired SFDouble
Returns:
Value of SFDouble at index.