org.apache.batik.dom.svg
Class SVGOMAngle
public
class
SVGOMAngle
extends Object
implements SVGAngle
Implementation of an {@link SVGAngle} not associated with any attribute.
Field Summary |
protected static double[][] | K
Table of multipliers for angle unit conversion. |
protected short | unitType
The type of this angle. |
protected static String[] | UNITS
The unit string representations. |
protected float | value
The value of this angle. |
Method Summary |
void | convertToSpecifiedUnits(short unit)
DOM: Implements {@link
SVGAngle#convertToSpecifiedUnits(short)}. |
short | getUnitType()
DOM: Implements {@link SVGAngle#getUnitType()}. |
float | getValue()
DOM: Implements {@link SVGAngle#getValue()}. |
String | getValueAsString()
DOM: Implements {@link SVGAngle#getValueAsString()}. |
float | getValueInSpecifiedUnits()
DOM: Implements {@link SVGAngle#getValueInSpecifiedUnits()}. |
void | newValueSpecifiedUnits(short unit, float value)
DOM: Implements {@link
SVGAngle#newValueSpecifiedUnits(short,float)}. |
protected void | parse(String s)
Parse a String value as an SVGAngle. |
protected void | reset()
Resets the associated attribute value according to the current value.
|
protected void | revalidate()
Updates the values in this object according to the associated attribute
value. |
void | setValue(float value)
DOM: Implements {@link SVGAngle#setValue(float)}. |
void | setValueAsString(String value)
DOM: Implements {@link SVGAngle#setValueAsString(String)}. |
void | setValueInSpecifiedUnits(float value)
DOM: Implements {@link
SVGAngle#setValueInSpecifiedUnits(float)}. |
static float | toUnit(short fromUnit, float value, short toUnit)
Converts an angle from one unit to another. |
protected static double[][] K
Table of multipliers for angle unit conversion.
protected short unitType
The type of this angle.
protected static final String[] UNITS
The unit string representations.
protected float value
The value of this angle.
public void convertToSpecifiedUnits(short unit)
DOM: Implements {@link
SVGAngle#convertToSpecifiedUnits(short)}.
public short getUnitType()
DOM: Implements {@link SVGAngle#getUnitType()}.
public float getValue()
DOM: Implements {@link SVGAngle#getValue()}.
public String getValueAsString()
DOM: Implements {@link SVGAngle#getValueAsString()}.
public float getValueInSpecifiedUnits()
DOM: Implements {@link SVGAngle#getValueInSpecifiedUnits()}.
public void newValueSpecifiedUnits(short unit, float value)
DOM: Implements {@link
SVGAngle#newValueSpecifiedUnits(short,float)}.
protected void parse(String s)
Parse a String value as an SVGAngle.
protected void reset()
Resets the associated attribute value according to the current value.
This should be overridden in descendant classes that associate the
angle object with an attribute.
protected void revalidate()
Updates the values in this object according to the associated attribute
value. This should be overridden in descendant classes that associate
the angle object with an attribute.
public void setValue(float value)
DOM: Implements {@link SVGAngle#setValue(float)}.
public void setValueAsString(String value)
DOM: Implements {@link SVGAngle#setValueAsString(String)}.
public void setValueInSpecifiedUnits(float value)
DOM: Implements {@link
SVGAngle#setValueInSpecifiedUnits(float)}.
public static float toUnit(short fromUnit, float value, short toUnit)
Converts an angle from one unit to another.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.