|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnimationJob
An AnimationJob is able to play an animation for some rendering system.
| Method Summary | |
|---|---|
void |
addAnimationListener(AnimationJobListener listener)
Adds an AnimationListener to be notified as the Animation advances. |
Map<Integer,Double> |
advanceAnimation(long time,
long interval)
Advances the Animation to the given time. |
Animation |
getAnimation()
Returns the Animation this AnimationJob is playing. |
Long |
getAnimationLength()
Returns the length of the Animation being played in milliseconds. |
boolean |
getLoop()
Returns the looping status of the AnimationJob. |
Long |
getRemainingTime(long time)
Returns the time remaining in the Animation at the given time in milliseconds. |
AnimationPlayer |
getSource()
Returns the AnimationPlayer which created this AnimationJob. |
void |
removeAnimationListener(AnimationJobListener listener)
Removes an AnimationListener from listening to the Animation. |
void |
setLoop(boolean loop)
If set true, the AnimationJob will loop, replaying after finishing. |
| Methods inherited from interface org.jflux.api.common.rk.playable.Playable |
|---|
addPlayableListener, complete, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stop |
| Method Detail |
|---|
void addAnimationListener(AnimationJobListener listener)
listener - AnimationListener to addvoid removeAnimationListener(AnimationJobListener listener)
listener - AnimationListener to removeAnimation getAnimation()
Long getAnimationLength()
Long getRemainingTime(long time)
time - current time
Map<Integer,Double> advanceAnimation(long time,
long interval)
time - current timeinterval - preferred time between advancements
AnimationPlayer getSource()
void setLoop(boolean loop)
loop - looping statusboolean getLoop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||