public interface AnimationStepListener
Modifier and Type | Method and Description |
---|---|
void |
initialize(int start,
int stop,
Widget from,
Widget to,
boolean forward)
An animation is starting with the given properties.
|
void |
onStep(int value)
A step of an animation is done.
|
void initialize(int start, int stop, Widget from, Widget to, boolean forward)
The onStep(int)
method will be called with a value between the given start and stop. Whatever the way
(forward or backward), this value goes from start to stop.
start
- the animation start value.stop
- the animation stop value.from
- the widget before the animation.to
- the widget after the animation.forward
- true
if going forward, false
otherwise.void onStep(int value)
value
- the step value.