org.apache.batik.anim.values

Class AnimatablePercentageValue

public class AnimatablePercentageValue extends AnimatableNumberValue

A percentage value in the animation system.
Constructor Summary
protected AnimatablePercentageValue(AnimationTarget target)
Creates a new, uninitialized AnimatablePercentageValue.
AnimatablePercentageValue(AnimationTarget target, float v)
Creates a new AnimatablePercentageValue.
Method Summary
StringgetCssText()
Returns the CSS text representation of the 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.

Constructor Detail

AnimatablePercentageValue

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

AnimatablePercentageValue

public AnimatablePercentageValue(AnimationTarget target, float v)
Creates a new AnimatablePercentageValue.

Method Detail

getCssText

public String getCssText()
Returns the CSS text representation of the 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.