public class MotionAnimation extends InterpolatingAnimation
| Modifier and Type | Field | Description |
|---|---|---|
protected float[] |
keyPoints |
The points defining the distance along the path that the
keyTimes apply.
|
protected ExtendedGeneralPath |
path |
The path that describes the motion.
|
protected PathLength |
pathLength |
The path length calculation object.
|
protected float |
rotateAngle |
The angle of rotation (in radians) to use when automatic rotation is
not being used.
|
protected boolean |
rotateAuto |
Whether automatic rotation should be performed.
|
protected boolean |
rotateAutoReverse |
Whether the automatic rotation should be reversed.
|
animatableElement, beginTime, CALC_MODE_DISCRETE, CALC_MODE_LINEAR, CALC_MODE_PACED, CALC_MODE_SPLINE, composedValue, higherAnimation, isActive, isDirty, isFrozen, lowerAnimation, timedElement, toAnimation, usesUnderlyingValue, valueadditive, calcMode, cumulative, keySplineCubics, keySplines, keyTimes| Constructor | Description |
|---|---|
MotionAnimation(TimedElement timedElement,
AnimatableElement animatableElement,
int calcMode,
float[] keyTimes,
float[] keySplines,
boolean additive,
boolean cumulative,
AnimatableValue[] values,
AnimatableValue from,
AnimatableValue to,
AnimatableValue by,
ExtendedGeneralPath path,
float[] keyPoints,
boolean rotateAuto,
boolean rotateAutoReverse,
float rotateAngle,
short rotateAngleUnit) |
Creates a new MotionAnimation.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
sampledAtUnitTime(float unitTime,
int repeatIteration) |
Called when the element is sampled at the given unit time.
|
getComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValuesampledAt, sampledLastValue, willReplaceprotected ExtendedGeneralPath path
protected PathLength pathLength
protected float[] keyPoints
protected boolean rotateAuto
protected boolean rotateAutoReverse
protected float rotateAngle
public MotionAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative, AnimatableValue[] values, AnimatableValue from, AnimatableValue to, AnimatableValue by, ExtendedGeneralPath path, float[] keyPoints, boolean rotateAuto, boolean rotateAutoReverse, float rotateAngle, short rotateAngleUnit)
protected void sampledAtUnitTime(float unitTime,
int repeatIteration)
AbstractAnimation.value of the animation if active.sampledAtUnitTime in class InterpolatingAnimationCopyright ? 2018 Apache Software Foundation. All Rights Reserved.