|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jflux.api.common.rk.playable.AbstractPlayable
org.mechio.api.animation.messaging.RemoteAnimationJob
public class RemoteAnimationJob
| Field Summary |
|---|
| Fields inherited from class org.jflux.api.common.rk.playable.AbstractPlayable |
|---|
myElapsedPauseTime, myPauseTime, myPlayableListeners, myPlayState, myResumeTime, myStartTime, myStopTime |
| 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. |
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. |
| Methods inherited from class org.jflux.api.common.rk.playable.AbstractPlayable |
|---|
addPlayableListener, afterComplete, complete, firePlayStateChanged, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
|---|
public AnimationPlayer getSource()
AnimationJob
getSource in interface AnimationJobpublic void addAnimationListener(AnimationJobListener listener)
AnimationJob
addAnimationListener in interface AnimationJoblistener - AnimationListener to addpublic void removeAnimationListener(AnimationJobListener listener)
AnimationJob
removeAnimationListener in interface AnimationJoblistener - AnimationListener to removepublic Animation getAnimation()
AnimationJob
getAnimation in interface AnimationJobpublic Long getCurrentTime(long time)
public Map<Integer,Double> advanceAnimation(long time,
long interval)
AnimationJob
advanceAnimation in interface AnimationJobtime - current timeinterval - preferred time between advancements
public boolean onStart(long time)
onStart in class org.jflux.api.common.rk.playable.AbstractPlayablepublic Long getAnimationLength()
AnimationJob
getAnimationLength in interface AnimationJobpublic Long getRemainingTime(long time)
AnimationJob
getRemainingTime in interface AnimationJobtime - current time
protected 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)
AnimationJob
setLoop in interface AnimationJobloop - looping statuspublic boolean getLoop()
AnimationJob
getLoop in interface AnimationJob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||