org.apache.fop.dom.svg
Class SVGLengthImpl


public class SVGLengthImpl
implements SVGLength

a length quantity in SVG


Field Summary
 (package private) shortunitType
           

Constructor Summary
SVGLengthImpl(String len)
          set the length given a particular String specifying length and units
SVGLengthImpl()
           

Method Summary
 voidconvertToSpecifiedUnits(short unitType)
           
 floatgetAnimatedValue()
           
 shortgetUnitType()
           
 floatgetValue()
           
 StringgetValueAsString()
           
 floatgetValueInSpecifiedUnits()
           
 voidnewValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits)
           
 voidsetValue(float value)
           
 voidsetValueAsString(String valueAsString)
           
 voidsetValueInSpecifiedUnits(float valueInSpecifiedUnits)
           
 StringtoString()
           

Field Detail

unitType

short unitType
Constructor Detail

SVGLengthImpl

public SVGLengthImpl(String len)
set the length given a particular String specifying length and units

SVGLengthImpl

public SVGLengthImpl()
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)

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float valueInSpecifiedUnits)

toString

public String toString()