public class AnimatablePercentageValue extends AnimatableNumberValue
valuedecimalFormat, 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 |
|---|---|
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, getValueformatNumber, hasChanged, toString, toStringRepprotected 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 AnimatableNumberValueresult - 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 AnimatableNumberValuepublic String getCssText()
getCssText in class AnimatableNumberValueCopyright © 2000–2021 Apache Software Foundation. All rights reserved.