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 nodefloatgetValue()Return the value of this fieldvoidsetValue(float f) Set the field to the new valuevoidSet the value of the field to that of the given fieldvoidSet 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
-