org.apache.batik.anim.values
public class AnimatableTransformListValue extends AnimatableValue
Field Summary | |
---|---|
protected static SVGOMTransform | IDENTITY_ROTATE
Identity transform value of type 'rotate'. |
protected static SVGOMTransform | IDENTITY_SCALE
Identity transform value of type 'scale'. |
protected static SVGOMTransform | IDENTITY_SKEWX
Identity transform value of type 'skewX'. |
protected static SVGOMTransform | IDENTITY_SKEWY
Identity transform value of type 'skewY'. |
protected static SVGOMTransform | IDENTITY_TRANSLATE
Identity transform value of type 'translate'. |
protected Vector | transforms
List of transforms. |
Constructor Summary | |
---|---|
protected | AnimatableTransformListValue(AnimationTarget target)
Creates a new, uninitialized AnimatableTransformListValue. |
AnimatableTransformListValue(AnimationTarget target, AbstractSVGTransform t)
Creates a new AnimatableTransformListValue with a single transform. | |
AnimatableTransformListValue(AnimationTarget target, List transforms)
Creates a new AnimatableTransformListValue with a transform list. |
Method Summary | |
---|---|
boolean | canPace()
Returns whether two values of this type can have their distance
computed, as needed by paced animation. |
float | distanceTo(AnimatableValue other)
Returns the absolute distance between this value and the specified other
value. |
float | distanceTo1(AnimatableValue other)
Returns the distance between this value's first component and the
specified other value's first component. |
float | distanceTo2(AnimatableValue other)
Returns the distance between this value's second component and the
specified other value's second component. |
float | distanceTo3(AnimatableValue other)
Returns the distance between this value's third component and the
specified other value's third component. |
Iterator | getTransforms()
Gets the transforms. |
AnimatableValue | getZeroValue()
Returns a zero value of this AnimatableValue's type. |
AnimatableValue | interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
Performs interpolation to the given value. |
static AnimatableTransformListValue | interpolate(AnimatableTransformListValue res, AnimatableTransformListValue value1, AnimatableTransformListValue value2, AnimatableTransformListValue to1, AnimatableTransformListValue to2, float interpolation1, float interpolation2, AnimatableTransformListValue accumulation, int multiplier)
Performs a two-way interpolation between the specified values.
value[12] and to[12] must all be of the same type, either scale or
translation transforms, or all null. |
static AnimatableTransformListValue | interpolate(AnimatableTransformListValue res, AnimatableTransformListValue value1, AnimatableTransformListValue value2, AnimatableTransformListValue value3, AnimatableTransformListValue to1, AnimatableTransformListValue to2, AnimatableTransformListValue to3, float interpolation1, float interpolation2, float interpolation3, AnimatableTransformListValue accumulation, int multiplier)
Performs a three-way interpolation between the specified values.
value[123] and to[123] must all be single rotation transforms,
or all null. |
String | toStringRep()
Returns the CSS text representation of the value. |