com.threerings.editor.swing
Class DraggableSpinner.NumberModel

java.lang.Object
  extended by javax.swing.AbstractSpinnerModel
      extended by javax.swing.SpinnerNumberModel
          extended by com.threerings.editor.swing.DraggableSpinner.NumberModel
All Implemented Interfaces:
Serializable, SpinnerModel
Enclosing class:
DraggableSpinner

protected static class DraggableSpinner.NumberModel
extends SpinnerNumberModel

Gets rid of pesky "negative zero" values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractSpinnerModel
listenerList
 
Constructor Summary
DraggableSpinner.NumberModel(Number value, Comparable minimum, Comparable maximum, Number stepSize)
           
 
Method Summary
 void setValue(Object value)
           
 
Methods inherited from class javax.swing.SpinnerNumberModel
getMaximum, getMinimum, getNextValue, getNumber, getPreviousValue, getStepSize, getValue, setMaximum, setMinimum, setStepSize
 
Methods inherited from class javax.swing.AbstractSpinnerModel
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DraggableSpinner.NumberModel

public DraggableSpinner.NumberModel(Number value,
                                    Comparable minimum,
                                    Comparable maximum,
                                    Number stepSize)
Method Detail

setValue

public void setValue(Object value)
Specified by:
setValue in interface SpinnerModel
Overrides:
setValue in class SpinnerNumberModel