public class AnimatablePercentageValue extends AnimatableNumberValue
value
decimalFormat, hasChanged, target
Modifier | Constructor and Description |
---|---|
protected |
AnimatablePercentageValue(AnimationTarget target)
Creates a new, uninitialized AnimatablePercentageValue.
|
|
AnimatablePercentageValue(AnimationTarget target,
float v)
Creates a new AnimatablePercentageValue.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssText()
Returns the CSS text representation of the value.
|
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.
|
canPace, distanceTo, getValue
formatNumber, hasChanged, toString, toStringRep
protected AnimatablePercentageValue(AnimationTarget target)
public AnimatablePercentageValue(AnimationTarget target, float v)
public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
interpolate
in class AnimatableNumberValue
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 AnimatableValue getZeroValue()
getZeroValue
in class AnimatableNumberValue
public java.lang.String getCssText()
getCssText
in class AnimatableNumberValue
Copyright © 2022 Apache Software Foundation. All Rights Reserved.