public class RemoteAnimationJob extends org.jflux.api.common.rk.playable.AbstractPlayable implements AnimationJob
| Modifier and Type | Method and Description |
|---|---|
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.
|
Long |
getCurrentTime(long time) |
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.
|
protected boolean |
onComplete(long time) |
protected boolean |
onPause(long time) |
protected boolean |
onResume(long time) |
boolean |
onStart(long time) |
protected boolean |
onStop(long time) |
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.
|
addPlayableListener, afterComplete, complete, firePlayStateChanged, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stoppublic AnimationPlayer getSource()
AnimationJobgetSource in interface AnimationJobpublic void addAnimationListener(AnimationJobListener listener)
AnimationJobaddAnimationListener in interface AnimationJoblistener - AnimationListener to addpublic void removeAnimationListener(AnimationJobListener listener)
AnimationJobremoveAnimationListener in interface AnimationJoblistener - AnimationListener to removepublic Animation getAnimation()
AnimationJobgetAnimation in interface AnimationJobpublic Long getCurrentTime(long time)
public Map<Integer,Double> advanceAnimation(long time, long interval)
AnimationJobadvanceAnimation in interface AnimationJobtime - current timeinterval - preferred time between advancementspublic boolean onStart(long time)
onStart in class org.jflux.api.common.rk.playable.AbstractPlayablepublic Long getAnimationLength()
AnimationJobgetAnimationLength in interface AnimationJobpublic Long getRemainingTime(long time)
AnimationJobgetRemainingTime in interface AnimationJobtime - current timeprotected boolean onPause(long time)
onPause in class org.jflux.api.common.rk.playable.AbstractPlayableprotected boolean onResume(long time)
onResume in class org.jflux.api.common.rk.playable.AbstractPlayableprotected boolean onStop(long time)
onStop in class org.jflux.api.common.rk.playable.AbstractPlayableprotected boolean onComplete(long time)
onComplete in class org.jflux.api.common.rk.playable.AbstractPlayablepublic void setLoop(boolean loop)
AnimationJobsetLoop in interface AnimationJobloop - looping statuspublic boolean getLoop()
AnimationJobgetLoop in interface AnimationJobCopyright © 2011-2016. All Rights Reserved.