|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFTime
public class MFTime
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 |
---|
public MFTime()
public MFTime(int size, double[] times)
size
- Number of values passed in.times
- List of times to initialize object with.public MFTime(double[] times)
times
- List of times to initialize object with.Method Detail |
---|
public int getSize()
MField
getSize
in class MField
public void clear()
MField
clear
in class MField
public void delete(int index)
MField
delete
in class MField
index
- Index of field to delete.public void getValue(double[] times)
times
- List of times contained in field.public double get1Value(int index)
index
- Position of desired element.
public void setValue(double[] times)
times
- New value for field.public void setValue(int size, double[] times)
size
- Size of new value for field.times
- New value for field.public void setValue(MFTime times)
times
- New value for field.public void setValue(ConstMFTime times)
times
- New value for field.public void set1Value(int index, double time)
index
- Position of element to update.time
- New value for element.public void set1Value(int index, ConstSFTime time)
index
- Position of element to update.time
- New value for element.public void set1Value(int index, SFTime time)
index
- Position of element to update.time
- New value for element.public void addValue(double time)
time
- Element to add.public void addValue(ConstSFTime time)
time
- Element to add.public void addValue(SFTime time)
time
- Element to add.public void insertValue(int index, double time)
index
- Position to insert new element at.time
- Value to insert.public void insertValue(int index, ConstSFTime time)
index
- Position to insert new element at.time
- Value to insert.public void insertValue(int index, SFTime time)
index
- Position to insert new element at.time
- Value to insert.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |