public interface ILcdAnimation
ALcdAnimationManager
. Playback of an animation is performed by
repeated calls to the setTime(double)
method. The animation must specify its
own duration
(in seconds). The start()
and
stop()
methods are invoked before and after the sequence of
setTime
calls, respectively.
It is recommended to extend from ALcdAnimation
to implement custom animations,
especially when the animation needs to invalidate one or more views.
Modifier and Type | Method and Description |
---|---|
double |
getDuration()
Returns the duration of this animation in seconds.
|
boolean |
isLoop()
If true,
ALcdAnimationManager will play this animation repeatedly
until it is explicitly terminated. |
void |
restart()
Called by
ALcdAnimationManager when this animation is looped and needs to
start a new loop. |
void |
setTime(double aTime)
Updates the animation in function of the time elapsed since its start.
|
void |
start()
Called by
ALcdAnimationManager when this animation is added
to the manager and needs to starts playing. |
void |
stop()
Called by
ALcdAnimationManager when this animation is removed from
the manager and needs to stops playing. |
double getDuration()
void start()
ALcdAnimationManager
when this animation is added
to the manager and needs to starts playing.void stop()
ALcdAnimationManager
when this animation is removed from
the manager and needs to stops playing.boolean isLoop()
ALcdAnimationManager
will play this animation repeatedly
until it is explicitly terminated. Each successive playback will be
surrounded with a call to start()
and stop()
.void setTime(double aTime)
aTime
- the duration (in seconds) for which the animation has been runningvoid restart()
ALcdAnimationManager
when this animation is looped and needs to
start a new loop.