org.apache.batik.anim.values

Class AnimatableMotionPointValue

public class AnimatableMotionPointValue extends AnimatableValue

A point value in the animation system from a motion animation.
Field Summary
protected floatangle
The rotation angle in radians.
protected floatx
The x coordinate.
protected floaty
The y coordinate.
Constructor Summary
protected AnimatableMotionPointValue(AnimationTarget target)
Creates a new, uninitialized AnimatableMotionPointValue.
AnimatableMotionPointValue(AnimationTarget target, float x, float y, float angle)
Creates a new AnimatableMotionPointValue with one x.
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.
floatgetAngle()
Returns the rotation angle.
floatgetX()
Returns the x coordinate.
floatgetY()
Returns the y coordinate.
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.
StringtoStringRep()
Returns a string representation of this object.

Field Detail

angle

protected float angle
The rotation angle in radians.

x

protected float x
The x coordinate.

y

protected float y
The y coordinate.

Constructor Detail

AnimatableMotionPointValue

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

AnimatableMotionPointValue

public AnimatableMotionPointValue(AnimationTarget target, float x, float y, float angle)
Creates a new AnimatableMotionPointValue with one x.

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.

getAngle

public float getAngle()
Returns the rotation angle.

getX

public float getX()
Returns the x coordinate.

getY

public float getY()
Returns the y coordinate.

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.

toStringRep

public String toStringRep()
Returns a string representation of this object.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.