org.apache.batik.dom.svg
Class AbstractSVGAnimatedLength.AnimSVGLength

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGLength
      extended by org.apache.batik.dom.svg.AbstractSVGAnimatedLength.AnimSVGLength
Enclosing class:
AbstractSVGAnimatedLength

protected class AbstractSVGAnimatedLength.AnimSVGLength
extends AbstractSVGLength

This class represents the SVGLength returned by AbstractSVGAnimatedLength.getAnimVal().


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGLength
AbstractSVGLength.DefaultContext
 
Field Summary
 
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGLength
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_LENGTH
 
Constructor Summary
AbstractSVGAnimatedLength.AnimSVGLength(short direction)
          Creates a new AnimSVGLength.
 
Method Summary
 void convertToSpecifiedUnits(short unit)
          DOM: Implements AbstractSVGLength.convertToSpecifiedUnits(short).
protected  SVGOMElement getAssociatedElement()
          Returns the element this length is associated with.
 short getUnitType()
          DOM: Implements AbstractSVGLength.getUnitType().
 float getValue()
          DOM: Implements AbstractSVGLength.getValue().
 java.lang.String getValueAsString()
          DOM: Implements AbstractSVGLength.getValueAsString().
 float getValueInSpecifiedUnits()
          DOM: Implements AbstractSVGLength.getValueInSpecifiedUnits().
 void newValueSpecifiedUnits(short unit, float value)
          DOM: Implements AbstractSVGLength.newValueSpecifiedUnits(short,float).
protected  void setAnimatedValue(int type, float val)
          Sets the animated value.
 void setValue(float value)
          DOM: Implements AbstractSVGLength.setValue(float).
 void setValueAsString(java.lang.String value)
          DOM: Implements AbstractSVGLength.setValueAsString(String).
 void setValueInSpecifiedUnits(float value)
          DOM: Implements AbstractSVGLength.setValueInSpecifiedUnits(float).
 
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGLength
parse, reset, revalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSVGAnimatedLength.AnimSVGLength

public AbstractSVGAnimatedLength.AnimSVGLength(short direction)
Creates a new AnimSVGLength.

Parameters:
direction - is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH
Method Detail

getUnitType

public short getUnitType()
DOM: Implements AbstractSVGLength.getUnitType().

Overrides:
getUnitType in class AbstractSVGLength

getValue

public float getValue()
DOM: Implements AbstractSVGLength.getValue().

Overrides:
getValue in class AbstractSVGLength

getValueInSpecifiedUnits

public float getValueInSpecifiedUnits()
DOM: Implements AbstractSVGLength.getValueInSpecifiedUnits().

Overrides:
getValueInSpecifiedUnits in class AbstractSVGLength

getValueAsString

public java.lang.String getValueAsString()
DOM: Implements AbstractSVGLength.getValueAsString().

Overrides:
getValueAsString in class AbstractSVGLength

setValue

public void setValue(float value)
              throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGLength.setValue(float).

Overrides:
setValue in class AbstractSVGLength
Throws:
org.w3c.dom.DOMException

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float value)
                              throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGLength.setValueInSpecifiedUnits(float).

Overrides:
setValueInSpecifiedUnits in class AbstractSVGLength
Throws:
org.w3c.dom.DOMException

setValueAsString

public void setValueAsString(java.lang.String value)
                      throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGLength.setValueAsString(String).

Overrides:
setValueAsString in class AbstractSVGLength
Throws:
org.w3c.dom.DOMException

newValueSpecifiedUnits

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

Overrides:
newValueSpecifiedUnits in class AbstractSVGLength

convertToSpecifiedUnits

public void convertToSpecifiedUnits(short unit)
DOM: Implements AbstractSVGLength.convertToSpecifiedUnits(short).

Overrides:
convertToSpecifiedUnits in class AbstractSVGLength

getAssociatedElement

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

Specified by:
getAssociatedElement in class AbstractSVGLength

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


Copyright ? 2008 Apache Software Foundation. All Rights Reserved.