public class JaxoSpinnerRotationModel
extends javax.swing.SpinnerNumberModel
Constructor | Description |
---|---|
JaxoSpinnerRotationModel() |
With initial value 0 and step size 1.
|
JaxoSpinnerRotationModel(int value) |
With given initial value and step size 1.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getNextValue() |
|
java.lang.Object |
getPreviousValue() |
|
int |
getRotationValue() |
SpinnerNumberModel.getValue() as an int. |
javax.swing.JSpinner |
newSpinner() |
A new JSpinner with an editor better fit to edit
angles than the default number editor.
|
void |
setRotationValue(int newValue) |
setValue(java.lang.Object) with int argument. |
void |
setValue(java.lang.Object value) |
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener
public JaxoSpinnerRotationModel()
public JaxoSpinnerRotationModel(int value)
value
- initial value.public final int getRotationValue()
SpinnerNumberModel.getValue()
as an int.public void setValue(java.lang.Object value)
setValue
in class javax.swing.SpinnerNumberModel
public final void setRotationValue(int newValue)
setValue(java.lang.Object)
with int argument.newValue
- new rotation value.public java.lang.Object getPreviousValue()
getPreviousValue
in class javax.swing.SpinnerNumberModel
public java.lang.Object getNextValue()
getNextValue
in class javax.swing.SpinnerNumberModel
public javax.swing.JSpinner newSpinner()
Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.