Package vrml.field
Class SFTime
java.lang.Object
vrml.Field
vrml.field.SFTime
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a cloned copy of this nodedouble
getValue()
Return the value of this fieldvoid
setValue
(double time) Set the field to the new valuevoid
setValue
(ConstSFTime time) Set the value of the field to that of the given fieldvoid
Set the value of the field to that of the given fieldtoString()
Return a string form of this field suitable for parsing
-
Field Details
-
data
protected double dataThe value of this field
-
-
Constructor Details
-
SFTime
public SFTime()Construct a default field with the value set to 0 -
SFTime
public SFTime(double value) Construct a field using the given value.- Parameters:
value
- The value to set the field to
-
-
Method Details
-
getValue
public double getValue()Return the value of this field- Returns:
- The current field value
-
setValue
public void setValue(double time) Set the field to the new value- Parameters:
time
- The new value to use
-
setValue
Set the value of the field to that of the given field- Parameters:
time
- The field to use to set the value
-
setValue
Set the value of the field to that of the given field- Parameters:
time
- The field to use to set the value
-
toString
-
clone
-