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 shortunitType
The type of this angle.
protected static String[]UNITS
The unit string representations.
protected floatvalue
The value of this angle.
Method Summary
voidconvertToSpecifiedUnits(short unit)
DOM: Implements {@link SVGAngle#convertToSpecifiedUnits(short)}.
shortgetUnitType()
DOM: Implements {@link SVGAngle#getUnitType()}.
floatgetValue()
DOM: Implements {@link SVGAngle#getValue()}.
StringgetValueAsString()
DOM: Implements {@link SVGAngle#getValueAsString()}.
floatgetValueInSpecifiedUnits()
DOM: Implements {@link SVGAngle#getValueInSpecifiedUnits()}.
voidnewValueSpecifiedUnits(short unit, float value)
DOM: Implements {@link SVGAngle#newValueSpecifiedUnits(short,float)}.
protected voidparse(String s)
Parse a String value as an SVGAngle.
protected voidreset()
Resets the associated attribute value according to the current value.
protected voidrevalidate()
Updates the values in this object according to the associated attribute value.
voidsetValue(float value)
DOM: Implements {@link SVGAngle#setValue(float)}.
voidsetValueAsString(String value)
DOM: Implements {@link SVGAngle#setValueAsString(String)}.
voidsetValueInSpecifiedUnits(float value)
DOM: Implements {@link SVGAngle#setValueInSpecifiedUnits(float)}.
static floattoUnit(short fromUnit, float value, short toUnit)
Converts an angle from one unit to another.

Field Detail

K

protected static double[][] K
Table of multipliers for angle unit conversion.

unitType

protected short unitType
The type of this angle.

UNITS

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

value

protected float value
The value of this angle.

Method Detail

convertToSpecifiedUnits

public void convertToSpecifiedUnits(short unit)
DOM: Implements {@link SVGAngle#convertToSpecifiedUnits(short)}.

getUnitType

public short getUnitType()
DOM: Implements {@link SVGAngle#getUnitType()}.

getValue

public float getValue()
DOM: Implements {@link SVGAngle#getValue()}.

getValueAsString

public String getValueAsString()
DOM: Implements {@link SVGAngle#getValueAsString()}.

getValueInSpecifiedUnits

public float getValueInSpecifiedUnits()
DOM: Implements {@link SVGAngle#getValueInSpecifiedUnits()}.

newValueSpecifiedUnits

public void newValueSpecifiedUnits(short unit, float value)
DOM: Implements {@link SVGAngle#newValueSpecifiedUnits(short,float)}.

parse

protected void parse(String s)
Parse a String value as an SVGAngle.

reset

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.

revalidate

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.

setValue

public void setValue(float value)
DOM: Implements {@link SVGAngle#setValue(float)}.

setValueAsString

public void setValueAsString(String value)
DOM: Implements {@link SVGAngle#setValueAsString(String)}.

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float value)
DOM: Implements {@link SVGAngle#setValueInSpecifiedUnits(float)}.

toUnit

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.