com.frinika.sequencer.gui
Class TickSpinnerModel
java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerNumberModel
com.frinika.sequencer.gui.TickSpinnerModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.SpinnerModel
public class TickSpinnerModel
- extends javax.swing.SpinnerNumberModel
Model for TickSpinner.
- Author:
- Jens Gulden
- See Also:
TickSpinner
,
Serialized Form
Fields inherited from class javax.swing.AbstractSpinnerModel |
listenerList |
Methods inherited from class javax.swing.SpinnerNumberModel |
getMaximum, getMinimum, getNextValue, getNumber, getPreviousValue, getStepSize, getValue, setMaximum, setMinimum, setStepSize, setValue |
Methods inherited from class javax.swing.AbstractSpinnerModel |
addChangeListener, getChangeListeners, getListeners, removeChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
format
protected TimeFormat format
timeUtils
protected TimeUtils timeUtils
TickSpinnerModel
public TickSpinnerModel(TimeUtils timeUtils)
TickSpinnerModel
public TickSpinnerModel(TimeFormat format,
TimeUtils timeUtils)
TickSpinnerModel
public TickSpinnerModel(long value,
TimeUtils timeUtils)
TickSpinnerModel
public TickSpinnerModel(TimeFormat format,
long value,
TimeUtils timeUtils)
TickSpinnerModel
public TickSpinnerModel(TimeFormat format,
long value,
boolean allowNegative,
TimeUtils timeUtils)
getFormat
public TimeFormat getFormat()
stringToTicks
public long stringToTicks(java.lang.String s)
throws java.text.ParseException
- Throws:
java.text.ParseException
ticksToString
public java.lang.String ticksToString(long tick)
updateStepSize
public void updateStepSize(java.lang.String currentValue,
int caretPos)
fireStateChanged
protected void fireStateChanged()
- Overrides:
fireStateChanged
in class javax.swing.AbstractSpinnerModel
getStepSize
public int getStepSize(java.lang.String currentValue,
int caretPos)