Package com.macrofocus.interval.adapter
Class BoundedIntervalSpinnerModel
- java.lang.Object
-
- javax.swing.AbstractSpinnerModel
-
- javax.swing.SpinnerNumberModel
-
- com.macrofocus.interval.adapter.BoundedIntervalSpinnerModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.SpinnerModel
public class BoundedIntervalSpinnerModel extends javax.swing.SpinnerNumberModel
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundedIntervalSpinnerModel.Type
-
Constructor Summary
Constructors Constructor Description BoundedIntervalSpinnerModel(MutableBoundedInterval interval)
BoundedIntervalSpinnerModel(MutableBoundedInterval interval, java.lang.Number stepSize)
BoundedIntervalSpinnerModel(MutableBoundedInterval interval, java.lang.Number stepSize, BoundedIntervalSpinnerModel.Type type)
BoundedIntervalSpinnerModel(java.lang.Number stepSize, BoundedIntervalSpinnerModel.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Comparable
getMaximum()
java.lang.Comparable
getMinimum()
java.lang.Object
getNextValue()
java.lang.Object
getPreviousValue()
java.lang.Number
getStepSize()
java.lang.Object
getValue()
void
setInterval(MutableBoundedInterval interval)
void
setStepSize(java.lang.Number stepSize)
void
setType(BoundedIntervalSpinnerModel.Type type)
void
setValue(java.lang.Object value)
-
-
-
Constructor Detail
-
BoundedIntervalSpinnerModel
public BoundedIntervalSpinnerModel(MutableBoundedInterval interval)
-
BoundedIntervalSpinnerModel
public BoundedIntervalSpinnerModel(MutableBoundedInterval interval, java.lang.Number stepSize)
-
BoundedIntervalSpinnerModel
public BoundedIntervalSpinnerModel(java.lang.Number stepSize, BoundedIntervalSpinnerModel.Type type)
-
BoundedIntervalSpinnerModel
public BoundedIntervalSpinnerModel(MutableBoundedInterval interval, java.lang.Number stepSize, BoundedIntervalSpinnerModel.Type type)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getValue
in classjavax.swing.SpinnerNumberModel
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejavax.swing.SpinnerModel
- Overrides:
setValue
in classjavax.swing.SpinnerNumberModel
-
getStepSize
public java.lang.Number getStepSize()
- Overrides:
getStepSize
in classjavax.swing.SpinnerNumberModel
-
setStepSize
public void setStepSize(java.lang.Number stepSize)
- Overrides:
setStepSize
in classjavax.swing.SpinnerNumberModel
-
getMinimum
public java.lang.Comparable getMinimum()
- Overrides:
getMinimum
in classjavax.swing.SpinnerNumberModel
-
getMaximum
public java.lang.Comparable getMaximum()
- Overrides:
getMaximum
in classjavax.swing.SpinnerNumberModel
-
getNextValue
public java.lang.Object getNextValue()
- Specified by:
getNextValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getNextValue
in classjavax.swing.SpinnerNumberModel
-
getPreviousValue
public java.lang.Object getPreviousValue()
- Specified by:
getPreviousValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getPreviousValue
in classjavax.swing.SpinnerNumberModel
-
setType
public void setType(BoundedIntervalSpinnerModel.Type type)
-
setInterval
public void setInterval(MutableBoundedInterval interval)
-
-