public class TweenAnimation extends java.lang.Object implements Animation
Constructor and Description |
---|
TweenAnimation(boolean loop,
Tween... delegates) |
TweenAnimation(Tween... delegates) |
Modifier and Type | Method and Description |
---|---|
boolean |
animate(double tpf)
Called by the AnimationState to execute this animation.
|
void |
cancel()
Called by the AnimationState when this animation is canceled.
|
void |
fastForward(double t)
Fast-forwards the animation to the specified time value.
|
void |
fastForwardPercent(double t)
Fast-forwards the animation to the specified time as a
value between 0 and 1.0 that will be scaled to the animation
duration.
|
double |
getLength()
Returns the total duration for this animation or the time
of a single loop iteration if looping.
|
double |
getPercentRemaining()
Returns the remaining time as a scaled value between 0 and 1.0.
|
double |
getRemaining()
Returns the remaining time left for this animation.
|
double |
getTime()
Returns the current execution time for this animation, ie:
how far it has been run.
|
boolean |
isLooping()
Returns true if this is a looping animation.
|
boolean |
isRunning()
Returns true if the animation is currently running.
|
public TweenAnimation(Tween... delegates)
public TweenAnimation(boolean loop, Tween... delegates)
public boolean isLooping()
public boolean isRunning()
public double getLength()
public double getTime()
public double getRemaining()
public double getPercentRemaining()
public void fastForwardPercent(double t)
public void fastForward(double t)
public boolean animate(double tpf)