|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.playable.AbstractPlayable
org.robokind.api.animation.messaging.RemoteAnimationJob
public class RemoteAnimationJob
Field Summary |
---|
Fields inherited from class org.robokind.api.common.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.robokind.api.common.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.robokind.api.common.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 AnimationJob
public void addAnimationListener(AnimationJobListener listener)
AnimationJob
addAnimationListener
in interface AnimationJob
listener
- AnimationListener to addpublic void removeAnimationListener(AnimationJobListener listener)
AnimationJob
removeAnimationListener
in interface AnimationJob
listener
- AnimationListener to removepublic Animation getAnimation()
AnimationJob
getAnimation
in interface AnimationJob
public Long getCurrentTime(long time)
public Map<Integer,Double> advanceAnimation(long time, long interval)
AnimationJob
advanceAnimation
in interface AnimationJob
time
- current timeinterval
- preferred time between advancements
public boolean onStart(long time)
onStart
in class org.robokind.api.common.playable.AbstractPlayable
public Long getAnimationLength()
AnimationJob
getAnimationLength
in interface AnimationJob
public Long getRemainingTime(long time)
AnimationJob
getRemainingTime
in interface AnimationJob
time
- current time
protected boolean onPause(long time)
onPause
in class org.robokind.api.common.playable.AbstractPlayable
protected boolean onResume(long time)
onResume
in class org.robokind.api.common.playable.AbstractPlayable
protected boolean onStop(long time)
onStop
in class org.robokind.api.common.playable.AbstractPlayable
protected boolean onComplete(long time)
onComplete
in class org.robokind.api.common.playable.AbstractPlayable
public void setLoop(boolean loop)
AnimationJob
setLoop
in interface AnimationJob
loop
- 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 |