public class Animator extends Object
The animator loops on:
Util.platformTimeMillis(),Animation.tick(long) of all the registered animations,Only one animator can be running at any time.
| Constructor and Description |
|---|
Animator()
Creates an animator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
startAnimation(Animation animation)
Starts an animation.
|
void |
stopAnimation(Animation animation)
Stops an animation.
|
public Animator()
Multiple animators may be created but only one can be running at any time.
public void startAnimation(Animation animation)
The animation tick method is then called every period.
animation - the animation to start.Animation.tick(long)public void stopAnimation(Animation animation)
The animation tick method will not be called anymore by this animator.
animation - the animation to stop.