org.apache.batik.anim.values

Class AnimatableIntegerValue

public class AnimatableIntegerValue extends AnimatableValue

An integer in the animation engine.
Field Summary
protected intvalue
The value.
Constructor Summary
protected AnimatableIntegerValue(AnimationTarget target)
Creates a new, uninitialized AnimatableIntegerValue.
AnimatableIntegerValue(AnimationTarget target, int v)
Creates a new AnimatableIntegerValue.
Method Summary
booleancanPace()
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.
StringgetCssText()
Returns the CSS text representation of the value.
intgetValue()
Returns the integer value.
AnimatableValuegetZeroValue()
Returns a zero value of this AnimatableValue's type.
AnimatableValueinterpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
Performs interpolation to the given value.

Field Detail

value

protected int value
The value.

Constructor Detail

AnimatableIntegerValue

protected AnimatableIntegerValue(AnimationTarget target)
Creates a new, uninitialized AnimatableIntegerValue.

AnimatableIntegerValue

public AnimatableIntegerValue(AnimationTarget target, int v)
Creates a new AnimatableIntegerValue.

Method Detail

canPace

public boolean canPace()
Returns whether two values of this type can have their distance computed, as needed by paced animation.

distanceTo

public float distanceTo(AnimatableValue other)
Returns the absolute distance between this value and the specified other value.

getCssText

public String getCssText()
Returns the CSS text representation of the value.

getValue

public int getValue()
Returns the integer value.

getZeroValue

public AnimatableValue getZeroValue()
Returns a zero value of this AnimatableValue's type.

interpolate

public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier)
Performs interpolation to the given value.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.