|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
net.infonode.properties.types.FloatProperty
public class FloatProperty
A float property.
Field Summary | |
---|---|
private float |
maxValue
|
private float |
minValue
|
private float |
preferredDelta
|
private int |
preferredDigitCount
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty |
---|
getValue, removeValue, setValue, valueIsRemovable, valueIsSet |
Methods inherited from class net.infonode.properties.util.AbstractProperty |
---|
getDescription, getGroup, getName, getType, isMutable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private float minValue
private float maxValue
private int preferredDigitCount
private float preferredDelta
Constructor Detail |
---|
public 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 byMethod Detail |
---|
public float getPreferredDelta()
public float getMinValue()
public float getMaxValue()
public int getPreferredDigitCount()
public float get(java.lang.Object valueContainer)
valueContainer
- the value container
public void set(java.lang.Object valueContainer, float value)
valueContainer
- the value containervalue
- the float valuepublic boolean canBeAssiged(java.lang.Object value)
Property
canBeAssiged
in interface Property
canBeAssiged
in class AbstractProperty
value
- the value to assign
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |