public class AnimationManager
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
void |
add(Animation animation)
Adds the animation and starts it immediately, with the given speed
parameter indicating how many milliseconds to wait between animation
steps.
|
void |
run() |
static AnimationManager |
startNewAnimationManager(javax.swing.JComponent component)
Creates a new AnimationManager that will draw to the provided image and
then starts it in a daemon worker thread to manage the animations.
|
void |
stopAnimation(Animation animation)
Stops the given animation if it is in the current list of running
animations.
|
public static AnimationManager startNewAnimationManager(javax.swing.JComponent component)
image
- public void add(Animation animation)
animation
- speed
- public void stopAnimation(Animation animation)
animation
- speed
- public void run()
run
in interface java.lang.Runnable