vrml.field
Class ConstMFTime

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

public class ConstMFTime
extends ConstMField

Represents a read-only VRML MFTime field in Java.


Constructor Summary
ConstMFTime(double[] times)
          Construct a read-only MFTime field.
ConstMFTime(int size, double[] times)
          Construct a read-only MFTime field.
 
Method Summary
 double get1Value(int index)
          Retrieve a particular element from an MFTime field.
 int getSize()
          Number of elements contained in the MField.
 void getValue(double[] times)
          Retrieves the complete list of times making up an MFTime 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

ConstMFTime

public ConstMFTime(int size,
                   double[] times)
Construct a read-only MFTime field.

Parameters:
size - Number of values passed in.
times - List of times to initialize object with.

ConstMFTime

public ConstMFTime(double[] times)
Construct a read-only MFTime field.

Parameters:
times - List of times to initialize object with.
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[] times)
Retrieves the complete list of times making up an MFTime field.

Parameters:
times - List of times contained in field.

get1Value

public double get1Value(int index)
Retrieve a particular element from an MFTime field.

Parameters:
index - Position of desired element.
Returns:
Value at specified position.