public final class Animation
extends java.lang.Object
AnimationListeners to be informed about the progress of the
animation, including the current time and the (interpolated) values
for this time point.| Constructor and Description |
|---|
Animation(float[] timesS,
float[][] values,
InterpolatorType interpolatorType)
Creates a new animation with the given time key frames and the
corresponding values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimationListener(AnimationListener listener)
Add the given
AnimationListener to be informed about any
progress in this animation |
void |
removeAnimationListener(AnimationListener listener)
Remove the given
AnimationListener |
public Animation(float[] timesS,
float[][] values,
InterpolatorType interpolatorType)
timesS - The time key frames, in secondsvalues - The values. Each element of this array consists of the
values for the corresponding key frame time.interpolatorType - The InterpolatorType that will be
used for interpolating the valuesjava.lang.NullPointerException - If either of the given parameters is
null, or the given values array contains null
elementsjava.lang.IllegalArgumentException - If any of the given arrays has a
length of 0java.lang.IllegalArgumentException - If any of the given values arrays
has a length that is different from the length of the times array.public void addAnimationListener(AnimationListener listener)
AnimationListener to be informed about any
progress in this animationlistener - The listener to addpublic void removeAnimationListener(AnimationListener listener)
AnimationListenerlistener - The listener to removeCopyright © 2022. All Rights Reserved.