public class FloatProperty extends ValueHandlerProperty
| Constructor and Description |
|---|
FloatProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
PropertyValueHandler valueHandler)
Constructor.
|
FloatProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
PropertyValueHandler valueHandler,
float minValue,
float maxValue)
Constructor.
|
FloatProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
PropertyValueHandler valueHandler,
float minValue,
float maxValue,
int preferredDigitCount,
float preferredDelta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeAssiged(java.lang.Object value)
Returns true if the value can be assigned to this property.
|
float |
get(java.lang.Object valueContainer)
Returns the float value of this property in a value container.
|
float |
getMaxValue()
Returns the largest value that this property can have.
|
float |
getMinValue()
Returns the smallest value that this property can have.
|
float |
getPreferredDelta()
Returns the preferred amount to increase and decrease a property value by.
|
int |
getPreferredDigitCount()
Returns the preferred number of digits to allocate space for in an editor for a property value.
|
void |
set(java.lang.Object valueContainer,
float value)
Sets the float value of this property in a value container.
|
getValue, removeValue, setValue, valueIsRemovable, valueIsSetgetDescription, getGroup, getName, getType, isMutable, toStringpublic FloatProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
group - the property groupname - the property namedescription - the property descriptionvalueHandler - handles values for this propertypublic FloatProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler, float minValue, float maxValue)
group - the property groupname - the property namedescription - the property descriptionvalueHandler - handles values for this propertyminValue - the smallest value that this property can havemaxValue - the largest value that this property can havepublic FloatProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler, float minValue, float maxValue, int preferredDigitCount, float preferredDelta)
group - the property groupname - the property namedescription - the property descriptionvalueHandler - handles values for this propertyminValue - the smallest value that this property can havemaxValue - the largest value that this property can havepreferredDigitCount - the preferred number of digits to allocate space for in an editor for a property valuepreferredDelta - the preferred amount to increase and decrease a property value bypublic float getPreferredDelta()
public float getMinValue()
public float getMaxValue()
public int getPreferredDigitCount()
public float get(java.lang.Object valueContainer)
valueContainer - the value containerpublic void set(java.lang.Object valueContainer,
float value)
valueContainer - the value containervalue - the float valuepublic boolean canBeAssiged(java.lang.Object value)
PropertycanBeAssiged in interface PropertycanBeAssiged in class AbstractPropertyvalue - the value to assign