|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.batik.anim.values.AnimatableValue
org.apache.batik.anim.values.AnimatableNumberValue
org.apache.batik.anim.values.AnimatableAngleValue
An SVG angle value in the animation system.
| Field Summary | |
protected short |
unit
The angle unit. |
protected static String[] |
UNITS
The unit string representations. |
| Fields inherited from class org.apache.batik.anim.values.AnimatableNumberValue |
value |
| Fields inherited from class org.apache.batik.anim.values.AnimatableValue |
decimalFormat, hasChanged, target |
| Constructor Summary | |
AnimatableAngleValue(AnimationTarget target)
Creates a new, uninitialized AnimatableAngleValue. |
|
AnimatableAngleValue(AnimationTarget target,
float v,
short unit)
Creates a new AnimatableAngleValue. |
|
| Method Summary | |
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. |
short |
getUnit()
Returns the angle unit. |
AnimatableValue |
getZeroValue()
Returns a zero value of this AnimatableValue's type. |
AnimatableValue |
interpolate(AnimatableValue result,
AnimatableValue to,
float interpolation,
AnimatableValue accumulation,
int multiplier)
Performs interpolation to the given value. |
static float |
rad(float v,
short unit)
Converts an angle value to radians. |
| Methods inherited from class org.apache.batik.anim.values.AnimatableNumberValue |
canPace, getValue |
| Methods inherited from class org.apache.batik.anim.values.AnimatableValue |
formatNumber, hasChanged, toString, toStringRep |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final String[] UNITS
protected short unit
| Constructor Detail |
public AnimatableAngleValue(AnimationTarget target)
public AnimatableAngleValue(AnimationTarget target,
float v,
short unit)
| Method Detail |
public AnimatableValue interpolate(AnimatableValue result,
AnimatableValue to,
float interpolation,
AnimatableValue accumulation,
int multiplier)
interpolate in class AnimatableNumberValuepublic short getUnit()
public float distanceTo(AnimatableValue other)
distanceTo in class AnimatableNumberValuepublic AnimatableValue getZeroValue()
getZeroValue in class AnimatableNumberValuepublic String getCssText()
getCssText in class AnimatableNumberValue
public static float rad(float v,
short unit)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||