|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.anim.AbstractAnimation
org.apache.batik.anim.InterpolatingAnimation
public abstract class InterpolatingAnimation
An abstract animation class for those animations that interpolate values. Specifically, this is for animations that have the 'calcMode', 'keyTimes', 'keySplines', 'additive' and 'cumulative' attributes.
Field Summary | |
---|---|
protected boolean |
additive
Whether this animation adds to ones below it in the animation sandwich or replaces them. |
protected int |
calcMode
The interpolation mode of this animator. |
protected boolean |
cumulative
Whether this animation accumulates from previous iterations. |
protected Cubic[] |
keySplineCubics
Cubics built from the bezier control points in keySplines . |
protected float[] |
keySplines
Bezier control points that control the pacing of the animation. |
protected float[] |
keyTimes
Time values to control the pacing of the animation. |
Fields inherited from class org.apache.batik.anim.AbstractAnimation |
---|
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 Summary | |
---|---|
InterpolatingAnimation(TimedElement timedElement,
AnimatableElement animatableElement,
int calcMode,
float[] keyTimes,
float[] keySplines,
boolean additive,
boolean cumulative)
Creates a new InterpolatingAnimation. |
Method Summary | |
---|---|
protected void |
sampledAt(float simpleTime,
float simpleDur,
int repeatIteration)
Called when the element is sampled at the given time. |
protected abstract void |
sampledAtUnitTime(float unitTime,
int repeatIteration)
Called when the element is sampled at the given unit time. |
protected void |
sampledLastValue(int repeatIteration)
Called when the element is sampled for its "last" value. |
protected boolean |
willReplace()
Returns whether this animation will replace values on animations lower in the sandwich. |
Methods inherited from class org.apache.batik.anim.AbstractAnimation |
---|
getComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int calcMode
AbstractAnimation
.
protected float[] keyTimes
protected float[] keySplines
protected Cubic[] keySplineCubics
keySplines
.
protected boolean additive
protected boolean cumulative
Constructor Detail |
---|
public InterpolatingAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative)
Method Detail |
---|
protected boolean willReplace()
willReplace
in class AbstractAnimation
protected void sampledLastValue(int repeatIteration)
sampledLastValue
in class AbstractAnimation
protected void sampledAt(float simpleTime, float simpleDur, int repeatIteration)
sampledAt
in class AbstractAnimation
protected abstract void sampledAtUnitTime(float unitTime, int repeatIteration)
AbstractAnimation.value
of the animation if active.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |