public class CyclicFrameIndexModel
extends javax.swing.SpinnerNumberModel
FrameNumberSpinner
control. This model extends (in fact, largely supersedes) the
standard Swing SpinnerNumberModel. It is bound via a
FrameIndexScanAccess implemention to the animation
scan data used by a JA avatar player component.| Constructor and Description |
|---|
CyclicFrameIndexModel()
Constructs a new cyclic frame number model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccess()
Removes this model's current scan access, if any, and resets
the model's value, minimum and maximum all to zero.
|
java.lang.Comparable<?> |
getMaximum()
Returns the current maximum value for this spinner model
(as an
Integer). |
java.lang.Comparable<?> |
getMinimum()
Returns the current minimum value for this spinner model
(as an
Integer). |
java.lang.Object |
getNextValue()
Returns the next value (as an
Integer), cycling from
the current maximum to the current minimum if need be. |
java.lang.Number |
getNumber()
Returns this model's current value as an
Integer. |
java.lang.Object |
getPreviousValue()
Returns the previous value (as an
Integer), cycling from
the current minimum to the current maximum if need be. |
java.lang.Object |
getValue()
Returns this model's current value as an
Integer. |
void |
setAccess(player.FrameIndexScanAccess fisa)
Binds this spinner model to the given animation scan access.
|
void |
setValue(java.lang.Object value)
Sets this model's value to the one given, which must be an
Integer. |
getStepSize, setMaximum, setMinimum, setStepSizepublic CyclicFrameIndexModel()
public void clearAccess()
public void setAccess(player.FrameIndexScanAccess fisa)
public void setValue(java.lang.Object value)
Integer.setValue in interface javax.swing.SpinnerModelsetValue in class javax.swing.SpinnerNumberModelpublic java.lang.Number getNumber()
Integer.getNumber in class javax.swing.SpinnerNumberModelpublic java.lang.Object getValue()
Integer.getValue in interface javax.swing.SpinnerModelgetValue in class javax.swing.SpinnerNumberModelpublic java.lang.Comparable<?> getMinimum()
Integer).
If the underlying animation scan is in single-sign mode, then the
the minimum is the first frame index for the current sign.getMinimum in class javax.swing.SpinnerNumberModelpublic java.lang.Comparable<?> getMaximum()
Integer).
If the underlying animation scan is in single-sign mode, then the
the maximum is the final frame index for the current sign.getMaximum in class javax.swing.SpinnerNumberModelpublic java.lang.Object getNextValue()
Integer), cycling from
the current maximum to the current minimum if need be.getNextValue in interface javax.swing.SpinnerModelgetNextValue in class javax.swing.SpinnerNumberModelpublic java.lang.Object getPreviousValue()
Integer), cycling from
the current minimum to the current maximum if need be.getPreviousValue in interface javax.swing.SpinnerModelgetPreviousValue in class javax.swing.SpinnerNumberModel