public class AnimatableTransformListValue extends AnimatableValue
Modifier and Type | Field and Description |
---|---|
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 java.util.Vector |
transforms
List of transforms.
|
decimalFormat, hasChanged, target
Modifier | Constructor and Description |
---|---|
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,
java.util.List transforms)
Creates a new AnimatableTransformListValue with a transform list.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.Iterator |
getTransforms()
Gets the transforms.
|
AnimatableValue |
getZeroValue()
Returns a zero value of this AnimatableValue's type.
|
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.
|
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.
|
AnimatableValue |
interpolate(AnimatableValue result,
AnimatableValue to,
float interpolation,
AnimatableValue accumulation,
int multiplier)
Performs interpolation to the given value.
|
java.lang.String |
toStringRep()
Returns the CSS text representation of the value.
|
formatNumber, getCssText, hasChanged, toString
protected static SVGOMTransform IDENTITY_SKEWX
protected static SVGOMTransform IDENTITY_SKEWY
protected static SVGOMTransform IDENTITY_SCALE
protected static SVGOMTransform IDENTITY_ROTATE
protected static SVGOMTransform IDENTITY_TRANSLATE
protected java.util.Vector transforms
protected AnimatableTransformListValue(AnimationTarget target)
public AnimatableTransformListValue(AnimationTarget target, AbstractSVGTransform t)
public AnimatableTransformListValue(AnimationTarget target, java.util.List transforms)
public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
interpolate
in class AnimatableValue
result
- the object in which to store the result of the
interpolation, or null if a new object should be createdto
- the value this value should be interpolated towards, or null
if no actual interpolation should be performedinterpolation
- the interpolation distance, 0 <= interpolation
<= 1accumulation
- an accumulation to add to the interpolated valuemultiplier
- an amount the accumulation values should be multiplied
by before being added to the interpolated valuepublic static AnimatableTransformListValue interpolate(AnimatableTransformListValue res, AnimatableTransformListValue value1, AnimatableTransformListValue value2, AnimatableTransformListValue to1, AnimatableTransformListValue to2, float interpolation1, float interpolation2, AnimatableTransformListValue accumulation, int multiplier)
public 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)
public java.util.Iterator getTransforms()
public boolean canPace()
canPace
in class AnimatableValue
public float distanceTo(AnimatableValue other)
distanceTo
in class AnimatableValue
public float distanceTo1(AnimatableValue other)
public float distanceTo2(AnimatableValue other)
public float distanceTo3(AnimatableValue other)
public AnimatableValue getZeroValue()
getZeroValue
in class AnimatableValue
public java.lang.String toStringRep()
toStringRep
in class AnimatableValue
Copyright © 2022 Apache Software Foundation. All Rights Reserved.