public abstract class ControlAnimation extends java.lang.Object implements UpdateListener
Modifier and Type | Class and Description |
---|---|
static interface |
ControlAnimation.AnimationFinished |
Modifier and Type | Field and Description |
---|---|
protected Control |
c |
int |
delayAfterFinish
A delay issued right after the animation finishes
|
protected int |
executedTime |
protected boolean |
releaseScreenShot |
protected int |
totalTime |
boolean |
useOffscreen
Use or not the offscreen.
|
Constructor and Description |
---|
ControlAnimation(Control c) |
ControlAnimation(Control c,
ControlAnimation.AnimationFinished animFinish) |
ControlAnimation(Control c,
ControlAnimation.AnimationFinished animFinish,
int totalTime) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
animate() |
protected double |
computeSpeed(double distance) |
void |
setAnimationFinishedAction(ControlAnimation.AnimationFinished animationFinished)
Sets the action that will be performed after the animation finishes
|
void |
start() |
void |
stop(boolean abort) |
ControlAnimation |
then(ControlAnimation other) |
void |
updateListenerTriggered(int elapsedMilliseconds)
Called regularly by the system.
|
ControlAnimation |
with(ControlAnimation other) |
protected Control c
protected int totalTime
protected int executedTime
protected boolean releaseScreenShot
public int delayAfterFinish
public boolean useOffscreen
public ControlAnimation(Control c, ControlAnimation.AnimationFinished animFinish, int totalTime)
public ControlAnimation(Control c, ControlAnimation.AnimationFinished animFinish)
public ControlAnimation(Control c)
public void start()
public void stop(boolean abort)
protected double computeSpeed(double distance)
public ControlAnimation with(ControlAnimation other)
public ControlAnimation then(ControlAnimation other)
public void updateListenerTriggered(int elapsedMilliseconds)
UpdateListener
updateListenerTriggered
in interface UpdateListener
elapsedMilliseconds
- number of milliseconds since the last UpdateListenerTriggered callprotected abstract void animate()
public void setAnimationFinishedAction(ControlAnimation.AnimationFinished animationFinished)
animationFinished
-