public interface Animation
#animate
method applies an animation effect
to an animation target over the animation's duration.TODO: Consider renaming #animate to #applyEffect, then rename AbstractApplication #applyEffect to something similar that indicates the implementation aspect.
AbstractAnimation
,
Animations
Modifier and Type | Method and Description |
---|---|
void |
addAnimationListener(AnimationListener listener)
Adds the given
AnimationListener to this animation. |
void |
animate(long time)
Animates for the given time, that is, applies the animation effect
to the animation target and fires events when the animation is
started, stopped or repeated.
|
long |
duration()
Returns this animation's duration.
|
void |
removeAnimationListener(AnimationListener listener)
Removes the given
AnimationListener from this animation. |
long duration()
void animate(long time)
time
- the time used to determine the animation effectvoid addAnimationListener(AnimationListener listener)
AnimationListener
to this animation.listener
- the AnimationListener
to addvoid removeAnimationListener(AnimationListener listener)
AnimationListener
from this animation.listener
- the AnimationListener
to removeCopyright © 2016 JGoodies Software GmbH. All rights reserved.