|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FrameSequencer
Used to control animation timing when displaying a MultiFrameImage. This interface
allows for constant framerates, or more sophisticated animation timing.
| Nested Class Summary | |
|---|---|
static class |
FrameSequencer.ConstantRate
A frame sequencer that delivers a constant frame rate in either one shot or looping mode. |
| Method Summary | |
|---|---|
void |
fastForward(long timeDelta)
Called if the display is paused for some length of time and then unpaused. |
int |
init(MultiFrameImage source)
Called prior to the execution of an animation sequence (not necessarily immediately, so time stamps should be obtained in the first call to tick). |
int |
tick(long tickStamp)
Called every display frame, the frame sequencer should return the index of the animation frame that should be displayed during this tick. |
| Method Detail |
|---|
int init(MultiFrameImage source)
source - the multi-frame image that is providing the animation frames.
int tick(long tickStamp)
void fastForward(long timeDelta)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||