Module io.sf.carte.echosvg.anim
Package io.sf.carte.echosvg.anim.values
Class AnimatableNumberOrIdentValue
java.lang.Object
io.sf.carte.echosvg.anim.values.AnimatableValue
io.sf.carte.echosvg.anim.values.AnimatableNumberValue
io.sf.carte.echosvg.anim.values.AnimatableNumberOrIdentValue
A number-or-identifier value in the animation system.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringThe identifier.protected booleanWhether this value is an identifier.protected booleanWhether numbers should be considered as numeric keywords, as with the font-weight property.Fields inherited from class io.sf.carte.echosvg.anim.values.AnimatableNumberValuevalueFields inherited from class io.sf.carte.echosvg.anim.values.AnimatableValuedecimalFormat, hasChanged, target
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a new, uninitialized AnimatableNumberOrIdentValue.AnimatableNumberOrIdentValue(AnimationTarget target, float v, boolean numericIdent) Creates a new AnimatableNumberOrIdentValue for a Number value.AnimatableNumberOrIdentValue(AnimationTarget target, String ident) Creates a new AnimatableNumberOrIdentValue for an identifier value.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanPace()Returns whether two values of this type can have their distance computed, as needed by paced animation.floatdistanceTo(AnimatableValue other) Returns the absolute distance between this value and the specified other value.Returns the CSS text representation of the value.Returns a zero value of this AnimatableValue's type.interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) Performs interpolation to the given value.Methods inherited from class io.sf.carte.echosvg.anim.values.AnimatableNumberValuegetValueMethods inherited from class io.sf.carte.echosvg.anim.values.AnimatableValueformatNumber, hasChanged, toString, toStringRep
- 
Field Details- 
isIdentprotected boolean isIdentWhether this value is an identifier.
- 
identThe identifier.
- 
numericIdentprotected boolean numericIdentWhether numbers should be considered as numeric keywords, as with the font-weight property.
 
- 
- 
Constructor Details- 
AnimatableNumberOrIdentValueCreates a new, uninitialized AnimatableNumberOrIdentValue.
- 
AnimatableNumberOrIdentValueCreates a new AnimatableNumberOrIdentValue for a Number value.
- 
AnimatableNumberOrIdentValueCreates a new AnimatableNumberOrIdentValue for an identifier value.
 
- 
- 
Method Details- 
canPacepublic boolean canPace()Returns whether two values of this type can have their distance computed, as needed by paced animation.- Overrides:
- canPacein class- AnimatableNumberValue
 
- 
distanceToReturns the absolute distance between this value and the specified other value.- Overrides:
- distanceToin class- AnimatableNumberValue
 
- 
getZeroValueReturns a zero value of this AnimatableValue's type.- Overrides:
- getZeroValuein class- AnimatableNumberValue
 
- 
getCssTextReturns the CSS text representation of the value.- Overrides:
- getCssTextin class- AnimatableNumberValue
 
- 
interpolatepublic AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) Performs interpolation to the given value.- Overrides:
- interpolatein class- AnimatableNumberValue
- Parameters:
- result- the object in which to store the result of the interpolation, or null if a new object should be created
- to- the value this value should be interpolated towards, or null if no actual interpolation should be performed
- interpolation- the interpolation distance, 0 <= interpolation <= 1
- accumulation- an accumulation to add to the interpolated value
- multiplier- an amount the accumulation values should be multiplied by before being added to the interpolated value
 
 
-