public static class NullableSpinner.NullableSpinnerLengthModel extends NullableSpinner.NullableSpinnerNumberModel
Constructor and Description |
---|
NullableSpinnerLengthModel(UserPreferences preferences,
float minimum,
float maximum)
Creates a model managing lengths between the given
minimum and maximum values in centimeter. |
NullableSpinnerLengthModel(UserPreferences preferences,
float value,
float minimum,
float maximum)
Creates a model managing lengths between the given
minimum and maximum values in centimeter. |
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
getLength()
Returns the displayed value in centimeter.
|
void |
setLength(java.lang.Float length)
Sets the length in centimeter displayed in this model.
|
void |
setMinimumLength(float minimum)
Sets the minimum length in centimeter displayed in this model.
|
getNextValue, getNumber, getPreviousValue, getValue, isNullable, setNullable, setValue
getMaximum, getMinimum, getStepSize, setMaximum, setMinimum, setStepSize
public NullableSpinnerLengthModel(UserPreferences preferences, float minimum, float maximum)
minimum
and maximum
values in centimeter.public NullableSpinnerLengthModel(UserPreferences preferences, float value, float minimum, float maximum)
minimum
and maximum
values in centimeter.public java.lang.Float getLength()
public void setLength(java.lang.Float length)
public void setMinimumLength(float minimum)
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License