org.apache.batik.dom.svg

Class AbstractSVGAnimatedLength.AnimSVGLength

protected class AbstractSVGAnimatedLength.AnimSVGLength extends AbstractSVGLength

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

getAssociatedElement

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

getUnitType

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

getValue

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

getValueAsString

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

getValueInSpecifiedUnits

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

newValueSpecifiedUnits

public void newValueSpecifiedUnits(short unit, float value)
DOM: Implements {@link 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 {@link SVGLength#setValue(float)}.

setValueAsString

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

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float value)
DOM: Implements {@link SVGLength#setValueInSpecifiedUnits(float)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.