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