vrml.field
Class ConstMFFloat

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

public class ConstMFFloat
extends ConstMField

Represents a read-only VRML MFFloat field in Java.


Constructor Summary
ConstMFFloat(float[] values)
          Construct a read-only MFFloat field.
ConstMFFloat(int size, float[] values)
          Construct a read-only MFFloat field.
 
Method Summary
 float get1Value(int index)
          Retrieves a specific SFFloat element in an MFFloat and returns it as a float.
 int getSize()
          Number of elements contained in the MField.
 void getValue(float[] values)
          Retrieves the value of an MFFloat 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

ConstMFFloat

public ConstMFFloat(int size,
                    float[] values)
Construct a read-only MFFloat field.

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

ConstMFFloat

public ConstMFFloat(float[] values)
Construct a read-only MFFloat field.

Parameters:
values - An array of SFFloat 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(float[] values)
Retrieves the value of an MFFloat field.

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

get1Value

public float get1Value(int index)
Retrieves a specific SFFloat element in an MFFloat and returns it as a float.

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