public class SimpleAnimation extends InterpolatingAnimation
Modifier and Type | Field and Description |
---|---|
protected AnimatableValue |
by
Relative offset value for the animation.
|
protected AnimatableValue |
from
Starting value of the animation.
|
protected AnimatableValue |
to
Ending value of the animation.
|
protected AnimatableValue[] |
values
Values between which to interpolate.
|
additive, calcMode, cumulative, keySplineCubics, keySplines, keyTimes
animatableElement, beginTime, CALC_MODE_DISCRETE, CALC_MODE_LINEAR, CALC_MODE_PACED, CALC_MODE_SPLINE, composedValue, higherAnimation, isActive, isDirty, isFrozen, lowerAnimation, timedElement, toAnimation, usesUnderlyingValue, value
Constructor and Description |
---|
SimpleAnimation(TimedElement timedElement,
AnimatableElement animatableElement,
int calcMode,
float[] keyTimes,
float[] keySplines,
boolean additive,
boolean cumulative,
AnimatableValue[] values,
AnimatableValue from,
AnimatableValue to,
AnimatableValue by)
Creates a new SimpleAnimation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
sampledAtUnitTime(float unitTime,
int repeatIteration)
Called when the element is sampled at the given unit time.
|
sampledAt, sampledLastValue, willReplace
getComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValue
protected AnimatableValue[] values
protected AnimatableValue from
protected AnimatableValue to
protected AnimatableValue by
public SimpleAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative, AnimatableValue[] values, AnimatableValue from, AnimatableValue to, AnimatableValue by)
protected void sampledAtUnitTime(float unitTime, int repeatIteration)
AbstractAnimation.value
of the animation if active.sampledAtUnitTime
in class InterpolatingAnimation
Copyright © 2022 Apache Software Foundation. All Rights Reserved.