public class SceneParsingDeclaration
extends java.lang.Object
Constructor and Description |
---|
SceneParsingDeclaration()
Constructor.
|
SceneParsingDeclaration(java.lang.String setting)
Constructor using the String representation.
|
SceneParsingDeclaration(java.lang.String name,
float value)
Constructor setting the name and value.
|
SceneParsingDeclaration(java.lang.String name,
java.lang.String value)
Constructor setting the name and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormattedValue() |
java.lang.String |
getName() |
float |
getValue() |
void |
setName(java.lang.String name) |
void |
setValue(float value) |
void |
setValue(java.lang.String value)
Sets the declaration value.
|
java.lang.String |
toString() |
public SceneParsingDeclaration()
public SceneParsingDeclaration(java.lang.String name, float value)
name
- The delcaration namevalue
- The delcaration valuepublic SceneParsingDeclaration(java.lang.String name, java.lang.String value)
name
- The delcaration namevalue
- The delcaration valuejava.lang.IllegalArgumentException
- it the given String value can not be
converted into a float value.public SceneParsingDeclaration(java.lang.String setting)
setting
- Format: NAME=VALUEjava.lang.IllegalArgumentException
- it the given String value can not be
converted into a float value.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The declaration name.public float getValue()
public java.lang.String getFormattedValue()
public void setValue(float value)
value
- The declaration value to be used.public void setValue(java.lang.String value)
value
- The declaration value to be used.java.lang.IllegalArgumentException
- if the declaration value can not be converted into a float.public java.lang.String toString()
toString
in class java.lang.Object