vrml.field
Class MFTime

java.lang.Object
  extended by vrml.Field
      extended by vrml.MField
          extended by vrml.field.MFTime
All Implemented Interfaces:
java.lang.Cloneable

public class MFTime
extends MField

Represents a VRML MFTime field in Java.


Constructor Summary
MFTime()
          Default constructor.
MFTime(double[] times)
          Construct an MFTime field.
MFTime(int size, double[] times)
          Construct an MFTime field.
 
Method Summary
 void addValue(ConstSFTime time)
          Add a new element at the end of the list.
 void addValue(double time)
          Add a new element at the end of the list.
 void addValue(SFTime time)
          Add a new element at the end of the list.
 void clear()
          Removes all fields from the MField.
 void delete(int index)
          Deletes a field from the MField.
 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.
 void insertValue(int index, ConstSFTime time)
          Insert a new element at the specified position.
 void insertValue(int index, double time)
          Insert a new element at the specified position.
 void insertValue(int index, SFTime time)
          Insert a new element at the specified position.
 void set1Value(int index, ConstSFTime time)
          Set a specified element in the field.
 void set1Value(int index, double time)
          Set a specified element in the field.
 void set1Value(int index, SFTime time)
          Set a specified element in the field.
 void setValue(ConstMFTime times)
          Set the value of the field.
 void setValue(double[] times)
          Set the value of the field.
 void setValue(int size, double[] times)
          Set the value of the field.
 void setValue(MFTime times)
          Set the value of the field.
 
Methods inherited from class vrml.Field
clone, dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MFTime

public MFTime()
Default constructor.


MFTime

public MFTime(int size,
              double[] times)
Construct an MFTime field.

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

MFTime

public MFTime(double[] times)
Construct an MFTime field.

Parameters:
times - List of times to initialize object with.
Method Detail

getSize

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

Specified by:
getSize in class MField
Returns:
Number of elements.

clear

public void clear()
Description copied from class: MField
Removes all fields from the MField.

Specified by:
clear in class MField

delete

public void delete(int index)
Description copied from class: MField
Deletes a field from the MField.

Specified by:
delete in class MField
Parameters:
index - Index of field to delete.

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.

setValue

public void setValue(double[] times)
Set the value of the field.

Parameters:
times - New value for field.

setValue

public void setValue(int size,
                     double[] times)
Set the value of the field.

Parameters:
size - Size of new value for field.
times - New value for field.

setValue

public void setValue(MFTime times)
Set the value of the field.

Parameters:
times - New value for field.

setValue

public void setValue(ConstMFTime times)
Set the value of the field.

Parameters:
times - New value for field.

set1Value

public void set1Value(int index,
                      double time)
Set a specified element in the field.

Parameters:
index - Position of element to update.
time - New value for element.

set1Value

public void set1Value(int index,
                      ConstSFTime time)
Set a specified element in the field.

Parameters:
index - Position of element to update.
time - New value for element.

set1Value

public void set1Value(int index,
                      SFTime time)
Set a specified element in the field.

Parameters:
index - Position of element to update.
time - New value for element.

addValue

public void addValue(double time)
Add a new element at the end of the list.

Parameters:
time - Element to add.

addValue

public void addValue(ConstSFTime time)
Add a new element at the end of the list.

Parameters:
time - Element to add.

addValue

public void addValue(SFTime time)
Add a new element at the end of the list.

Parameters:
time - Element to add.

insertValue

public void insertValue(int index,
                        double time)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
time - Value to insert.

insertValue

public void insertValue(int index,
                        ConstSFTime time)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
time - Value to insert.

insertValue

public void insertValue(int index,
                        SFTime time)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
time - Value to insert.