Class JaxoSpinnerRotationModel

java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerNumberModel
net.sf.jaxodraw.gui.swing.spinner.JaxoSpinnerRotationModel
All Implemented Interfaces:
Serializable, SpinnerModel

public class JaxoSpinnerRotationModel extends SpinnerNumberModel
Specialization of SpinnerNumberModel that only allows integers to avoid rounding issues. Treats them as rotation angles, normalizing to the interval ]-180, 180]. getPrevious/NextValue also act circularly. The minimum and maximum are always set to [-179, 180] and should not be changed.
Since:
2.0
See Also: