Package vrml.field
Class SFFloat
java.lang.Object
vrml.Field
vrml.field.SFFloat
-
Field Summary
FieldsFields inherited from class vrml.Field
valueChanged
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a cloned copy of this nodefloat
getValue()
Return the value of this fieldvoid
setValue
(float f) Set the field to the new valuevoid
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 float dataThe value of this field
-
-
Constructor Details
-
SFFloat
public SFFloat()Construct a default field with the value set to 0 -
SFFloat
public SFFloat(float value) Construct a field using the given value.- Parameters:
value
- The value to set the field to
-
-
Method Details
-
getValue
public float getValue()Return the value of this field- Returns:
- The current field value
-
setValue
public void setValue(float f) Set the field to the new value- Parameters:
f
- The new value to use
-
setValue
Set the value of the field to that of the given field- Parameters:
f
- The field to use to set the value
-
setValue
Set the value of the field to that of the given field- Parameters:
f
- The field to use to set the value
-
toString
-
clone
-