|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractSpinnerModel
javax.swing.SpinnerNumberModel
app.gui.CyclicFrameIndexModel
public class CyclicFrameIndexModel
Cyclic frame number data model for use by a 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 Summary | |
|---|---|
CyclicFrameIndexModel()
Constructs a new cyclic frame number model. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.SpinnerNumberModel |
|---|
getStepSize, setMaximum, setMinimum, setStepSize |
| Methods inherited from class javax.swing.AbstractSpinnerModel |
|---|
addChangeListener, getChangeListeners, getListeners, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CyclicFrameIndexModel()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||