public interface AnimationJob
extends org.jflux.api.common.rk.playable.Playable
| 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.
|
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.
|
void addAnimationListener(AnimationJobListener listener)
listener - AnimationListener to addvoid removeAnimationListener(AnimationJobListener listener)
listener - AnimationListener to removeAnimation getAnimation()
Long getAnimationLength()
Long getRemainingTime(long time)
time - current timeMap<Integer,Double> advanceAnimation(long time, long interval)
time - current timeinterval - preferred time between advancementsAnimationPlayer getSource()
void setLoop(boolean loop)
loop - looping statusboolean getLoop()
Copyright © 2011-2016. All Rights Reserved.