org.apache.fop.dom.svg
Class SVGAngleImpl


public class SVGAngleImpl
implements SVGAngle

SVG Angle.

Author:
Keiron Liddle modified Nov 14,2000 Mike Crowe , Fop internal representation of angles is in degrees, added convert before doing any trig function

Field Summary
 (package private) shortunitType
           
 (package private) floatvalue
           

Constructor Summary
SVGAngleImpl()
           

Method Summary
 voidconvertToSpecifiedUnits(short unitType)
           
 floatgetAnimatedValue()
           
 shortgetUnitType()
           
 floatgetValue()
           
 StringgetValueAsString()
           
 floatgetValueInSpecifiedUnits()
           
 voidnewValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits)
           
 voidsetValue(float value)
           
 voidsetValueAsString(String valueAsString)
          The following is from CR-SVG-20000802 4.1 Basic Data Types; : An angle value is a optionally followed immediately with an angle unit identifier.
 voidsetValueInSpecifiedUnits(float valueInSpecifiedUnits)
           

Field Detail

unitType

short unitType

value

float value
Constructor Detail

SVGAngleImpl

public SVGAngleImpl()
Method Detail

convertToSpecifiedUnits

public void convertToSpecifiedUnits(short unitType)
throws SVGException

getAnimatedValue

public float getAnimatedValue()

getUnitType

public short getUnitType()

getValue

public float getValue()

getValueAsString

public String getValueAsString()

getValueInSpecifiedUnits

public float getValueInSpecifiedUnits()

newValueSpecifiedUnits

public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits)
throws SVGException

setValue

public void setValue(float value)

setValueAsString

public void setValueAsString(String valueAsString)
The following is from CR-SVG-20000802 4.1 Basic Data Types; : An angle value is a optionally followed immediately with an angle unit identifier. Angle unit identifiers are: deg: degrees m grad: grads m rad: radians m For properties defined in [CSS2], an angle unit identifier must be provided. For SVG-specific attributes and properties, the angle unit identifier is optional. If not provided, the angle value is assumed to be in degrees.

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float valueInSpecifiedUnits)