org.apache.batik.anim.values

Class AnimatableAngleValue

public class AnimatableAngleValue extends AnimatableNumberValue

An SVG angle value in the animation system.
Field Summary
protected shortunit
The angle unit.
protected static String[]UNITS
The unit string representations.
Constructor Summary
AnimatableAngleValue(AnimationTarget target)
Creates a new, uninitialized AnimatableAngleValue.
AnimatableAngleValue(AnimationTarget target, float v, short unit)
Creates a new AnimatableAngleValue.
Method Summary
floatdistanceTo(AnimatableValue other)
Returns the absolute distance between this value and the specified other value.
StringgetCssText()
Returns the CSS text representation of the value.
shortgetUnit()
Returns the angle unit.
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.
static floatrad(float v, short unit)
Converts an angle value to radians.

Field Detail

unit

protected short unit
The angle unit.

UNITS

protected static final String[] UNITS
The unit string representations.

Constructor Detail

AnimatableAngleValue

public AnimatableAngleValue(AnimationTarget target)
Creates a new, uninitialized AnimatableAngleValue.

AnimatableAngleValue

public AnimatableAngleValue(AnimationTarget target, float v, short unit)
Creates a new AnimatableAngleValue.

Method Detail

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.

getUnit

public short getUnit()
Returns the angle unit.

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.

rad

public static float rad(float v, short unit)
Converts an angle value to radians.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.