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) short | unitType |
(package private) float | value |
unitType
short unitType
value
float value
SVGAngleImpl
public SVGAngleImpl()
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)