public abstract class AbstractAnimation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AnimatableElement |
animatableElement
The AnimatableElement that gives access to underlying values in the
document.
|
protected float |
beginTime
The time at which this animation became active.
|
static short |
CALC_MODE_DISCRETE |
static short |
CALC_MODE_LINEAR |
static short |
CALC_MODE_PACED |
static short |
CALC_MODE_SPLINE |
protected AnimatableValue |
composedValue
The value of this animation composed with any others.
|
protected AbstractAnimation |
higherAnimation
The animation that is higher in the sandwich.
|
protected boolean |
isActive
Whether this animation is active.
|
protected boolean |
isDirty
Whether this animation needs recomputing.
|
protected boolean |
isFrozen
Whether this animation is frozen.
|
protected AbstractAnimation |
lowerAnimation
The animation that is lower in the sandwich.
|
protected TimedElement |
timedElement
The TimedElement that controls the timing of this animation.
|
protected boolean |
toAnimation
Whether this animation is a 'to-animation'.
|
protected boolean |
usesUnderlyingValue
Whether this animation depends on the underlying value.
|
protected AnimatableValue |
value
The value of this animation.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnimation(TimedElement timedElement,
AnimatableElement animatableElement)
Creates a new Animation.
|
Modifier and Type | Method and Description |
---|---|
AnimatableValue |
getComposedValue()
Returns the composed value of this animation, or null if it isn't active.
|
TimedElement |
getTimedElement()
Returns the TimedElement for this animation.
|
AnimatableValue |
getValue()
Returns the value of this animation, or null if it isn't active.
|
protected void |
markDirty()
Marks this animation and any animation that depends on it
as dirty.
|
protected abstract void |
sampledAt(float simpleTime,
float simpleDur,
int repeatIteration)
Called when the element is sampled at the given time.
|
protected void |
sampledLastValue(int repeatIteration)
Called when the element is sampled for its "last" value.
|
java.lang.String |
toString()
Returns a string representation of this animation.
|
boolean |
usesUnderlyingValue()
Returns whether this animation depends on the underlying value.
|
protected boolean |
willReplace()
Returns whether this animation will replace values on animations
lower in the sandwich.
|
public static final short CALC_MODE_DISCRETE
public static final short CALC_MODE_LINEAR
public static final short CALC_MODE_PACED
public static final short CALC_MODE_SPLINE
protected TimedElement timedElement
protected AnimatableElement animatableElement
protected AbstractAnimation lowerAnimation
protected AbstractAnimation higherAnimation
protected boolean isDirty
protected boolean isActive
protected boolean isFrozen
protected float beginTime
protected AnimatableValue value
protected AnimatableValue composedValue
protected boolean usesUnderlyingValue
protected boolean toAnimation
protected AbstractAnimation(TimedElement timedElement, AnimatableElement animatableElement)
public TimedElement getTimedElement()
public AnimatableValue getValue()
public AnimatableValue getComposedValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean usesUnderlyingValue()
protected boolean willReplace()
protected void markDirty()
protected void sampledLastValue(int repeatIteration)
protected abstract void sampledAt(float simpleTime, float simpleDur, int repeatIteration)
value
of the animation if active.Copyright © 2022 Apache Software Foundation. All Rights Reserved.