org.apache.batik.dom.svg

Class AbstractSVGAnimatedLength.AnimSVGLength

protected class AbstractSVGAnimatedLength.AnimSVGLength extends AbstractSVGLength

This class represents the SVGLength returned by getAnimVal.
Constructor Summary
AnimSVGLength(short direction)
Creates a new AnimSVGLength.
Method Summary
voidconvertToSpecifiedUnits(short unit)
DOM: Implements SVGLength#convertToSpecifiedUnits(short).
protected SVGOMElementgetAssociatedElement()
Returns the element this length is associated with.
shortgetUnitType()
DOM: Implements SVGLength#getUnitType().
floatgetValue()
DOM: Implements SVGLength#getValue().
StringgetValueAsString()
DOM: Implements SVGLength#getValueAsString().
floatgetValueInSpecifiedUnits()
DOM: Implements SVGLength#getValueInSpecifiedUnits().
voidnewValueSpecifiedUnits(short unit, float value)
DOM: Implements SVGLength#newValueSpecifiedUnits(short,float).
protected voidsetAnimatedValue(int type, float val)
Sets the animated value.
voidsetValue(float value)
DOM: Implements SVGLength#setValue(float).
voidsetValueAsString(String value)
DOM: Implements SVGLength#setValueAsString(String).
voidsetValueInSpecifiedUnits(float value)
DOM: Implements SVGLength#setValueInSpecifiedUnits(float).

Constructor Detail

AnimSVGLength

public AnimSVGLength(short direction)
Creates a new AnimSVGLength.

Parameters: direction is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH

Method Detail

convertToSpecifiedUnits

public void convertToSpecifiedUnits(short unit)
DOM: Implements SVGLength#convertToSpecifiedUnits(short).

getAssociatedElement

protected SVGOMElement getAssociatedElement()
Returns the element this length is associated with.

getUnitType

public short getUnitType()
DOM: Implements SVGLength#getUnitType().

getValue

public float getValue()
DOM: Implements SVGLength#getValue().

getValueAsString

public String getValueAsString()
DOM: Implements SVGLength#getValueAsString().

getValueInSpecifiedUnits

public float getValueInSpecifiedUnits()
DOM: Implements SVGLength#getValueInSpecifiedUnits().

newValueSpecifiedUnits

public void newValueSpecifiedUnits(short unit, float value)
DOM: Implements SVGLength#newValueSpecifiedUnits(short,float).

setAnimatedValue

protected void setAnimatedValue(int type, float val)
Sets the animated value.

Parameters: type one of the values defines in org.w3c.dom.svg.SVGLength val the length

setValue

public void setValue(float value)
DOM: Implements SVGLength#setValue(float).

setValueAsString

public void setValueAsString(String value)
DOM: Implements SVGLength#setValueAsString(String).

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float value)
DOM: Implements SVGLength#setValueInSpecifiedUnits(float).
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.