gui.run
Class ExponentialSpinnerNumberModel
java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerNumberModel
gui.run.ExponentialSpinnerNumberModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.SpinnerModel
public class ExponentialSpinnerNumberModel
- extends javax.swing.SpinnerNumberModel
User: lyon
Date: Jan 3, 2007
Time: 11:37:50 AM
Copyright DocJava, Inc. 2005.
- See Also:
- Serialized Form
|
Constructor Summary |
ExponentialSpinnerNumberModel(double value,
double minimum,
double maximum)
Constructs a SpinnerNumberModel with the specified
value, minimum/maximum bounds,
and stepSize. |
| Methods inherited from class javax.swing.SpinnerNumberModel |
getMaximum, getMinimum, getNumber, getStepSize, getValue, setMaximum, setMinimum, setStepSize, setValue |
| Methods inherited from class javax.swing.AbstractSpinnerModel |
addChangeListener, getChangeListeners, getListeners, removeChangeListener |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExponentialSpinnerNumberModel
public ExponentialSpinnerNumberModel(double value,
double minimum,
double maximum)
- Constructs a
SpinnerNumberModel with the specified
value, minimum/maximum bounds,
and stepSize.
- Parameters:
value - the current value of the modelminimum - the first number in the sequencemaximum - the last number in the sequence
- Throws:
java.lang.IllegalArgumentException - if the following expression is false:
minimum <= value <= maximum
getNextValue
public java.lang.Object getNextValue()
- Specified by:
getNextValue in interface javax.swing.SpinnerModel- Overrides:
getNextValue in class javax.swing.SpinnerNumberModel
getPreviousValue
public java.lang.Object getPreviousValue()
- Specified by:
getPreviousValue in interface javax.swing.SpinnerModel- Overrides:
getPreviousValue in class javax.swing.SpinnerNumberModel
main
public static void main(java.lang.String[] args)