Package org.apache.batik.anim
Class AbstractAnimation
java.lang.Object
org.apache.batik.anim.AbstractAnimation
- Direct Known Subclasses:
InterpolatingAnimation
,SetAnimation
An abstract base class for the different types of animation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnimatableElement
The AnimatableElement that gives access to underlying values in the document.protected float
The time at which this animation became active.static final short
static final short
static final short
static final short
protected AnimatableValue
The value of this animation composed with any others.protected AbstractAnimation
The animation that is higher in the sandwich.protected boolean
Whether this animation is active.protected boolean
Whether this animation needs recomputing.protected boolean
Whether this animation is frozen.protected AbstractAnimation
The animation that is lower in the sandwich.protected TimedElement
The TimedElement that controls the timing of this animation.protected boolean
Whether this animation is a 'to-animation'.protected boolean
Whether this animation depends on the underlying value.protected AnimatableValue
The value of this animation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAnimation
(TimedElement timedElement, AnimatableElement animatableElement) Creates a new Animation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the composed value of this animation, or null if it isn't active.Returns the TimedElement for this animation.getValue()
Returns the value of this animation, or null if it isn't active.protected void
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.toString()
Returns a string representation of this animation.boolean
Returns whether this animation depends on the underlying value.protected boolean
Returns whether this animation will replace values on animations lower in the sandwich.
-
Field Details
-
CALC_MODE_DISCRETE
public static final short CALC_MODE_DISCRETE- See Also:
-
CALC_MODE_LINEAR
public static final short CALC_MODE_LINEAR- See Also:
-
CALC_MODE_PACED
public static final short CALC_MODE_PACED- See Also:
-
CALC_MODE_SPLINE
public static final short CALC_MODE_SPLINE- See Also:
-
timedElement
The TimedElement that controls the timing of this animation. -
animatableElement
The AnimatableElement that gives access to underlying values in the document. -
lowerAnimation
The animation that is lower in the sandwich. -
higherAnimation
The animation that is higher in the sandwich. -
isDirty
protected boolean isDirtyWhether this animation needs recomputing. -
isActive
protected boolean isActiveWhether this animation is active. -
isFrozen
protected boolean isFrozenWhether this animation is frozen. -
beginTime
protected float beginTimeThe time at which this animation became active. Used for ensuring the sandwich order is correct when multiple animations become active simultaneously. -
value
The value of this animation. -
composedValue
The value of this animation composed with any others. -
usesUnderlyingValue
protected boolean usesUnderlyingValueWhether this animation depends on the underlying value. -
toAnimation
protected boolean toAnimationWhether this animation is a 'to-animation'.
-
-
Constructor Details
-
AbstractAnimation
Creates a new Animation.
-
-
Method Details
-
getTimedElement
Returns the TimedElement for this animation. -
getValue
Returns the value of this animation, or null if it isn't active. -
getComposedValue
Returns the composed value of this animation, or null if it isn't active. -
toString
Returns a string representation of this animation. -
usesUnderlyingValue
public boolean usesUnderlyingValue()Returns whether this animation depends on the underlying value. -
willReplace
protected boolean willReplace()Returns whether this animation will replace values on animations lower in the sandwich. -
markDirty
protected void markDirty()Marks this animation and any animation that depends on it as dirty. -
sampledLastValue
protected void sampledLastValue(int repeatIteration) Called when the element is sampled for its "last" value. -
sampledAt
protected abstract void sampledAt(float simpleTime, float simpleDur, int repeatIteration) Called when the element is sampled at the given time. This updates thevalue
of the animation if active.
-