org.apache.batik.anim.values
public class AnimatableNumberOptionalNumberValue extends AnimatableValue
| Field Summary | |
|---|---|
| protected boolean | hasOptionalNumber
Whether the optional number is present. |
| protected float | number
The first number. |
| protected float | optionalNumber
The optional number. |
| Constructor Summary | |
|---|---|
| protected | AnimatableNumberOptionalNumberValue(AnimationTarget target)
Creates a new, uninitialized AnimatableNumberOptionalNumberValue. |
| AnimatableNumberOptionalNumberValue(AnimationTarget target, float n)
Creates a new AnimatableNumberOptionalNumberValue with one number. | |
| AnimatableNumberOptionalNumberValue(AnimationTarget target, float n, float on)
Creates a new AnimatableNumberOptionalNumberValue with two numbers. | |
| 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. |
| String | getCssText()
Returns the CSS text representation of the value. |
| float | getNumber()
Returns the first number. |
| float | getOptionalNumber()
Returns the optional number. |
| AnimatableValue | getZeroValue()
Returns a zero value of this AnimatableValue's type. |
| boolean | hasOptionalNumber()
Returns whether the optional number is present. |
| AnimatableValue | interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
Performs interpolation to the given value. |