com.eteks.sweethome3d.swing
Class NullableSpinner.NullableSpinnerLengthModel
java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerNumberModel
com.eteks.sweethome3d.swing.NullableSpinner.NullableSpinnerNumberModel
com.eteks.sweethome3d.swing.NullableSpinner.NullableSpinnerLengthModel
- All Implemented Interfaces:
- Serializable, SpinnerModel
- Enclosing class:
- NullableSpinner
public static class NullableSpinner.NullableSpinnerLengthModel
- extends NullableSpinner.NullableSpinnerNumberModel
Nullable spinner model displaying length values matching preferences unit.
- See Also:
- Serialized Form
Method Summary |
Float |
getLength()
Returns the displayed value in centimeter. |
void |
setLength(Float length)
Sets the length in centimeter displayed in this model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullableSpinner.NullableSpinnerLengthModel
public NullableSpinner.NullableSpinnerLengthModel(UserPreferences preferences,
float minimum,
float maximum)
- Creates a model managing lengths between the given
minimum
and maximum
values in centimeter.
NullableSpinner.NullableSpinnerLengthModel
public NullableSpinner.NullableSpinnerLengthModel(UserPreferences preferences,
float value,
float minimum,
float maximum)
- Creates a model managing lengths between the given
minimum
and maximum
values in centimeter.
getLength
public Float getLength()
- Returns the displayed value in centimeter.
setLength
public void setLength(Float length)
- Sets the length in centimeter displayed in this model.