Package org.apache.batik.anim.dom
Class AbstractSVGAnimatedLength.AnimSVGLength
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGLength
-
- org.apache.batik.anim.dom.AbstractSVGAnimatedLength.AnimSVGLength
-
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLength
- Enclosing class:
- AbstractSVGAnimatedLength
protected class AbstractSVGAnimatedLength.AnimSVGLength extends AbstractSVGLength
This class represents the SVGLength returned byAbstractSVGAnimatedLength.getAnimVal()
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.anim.dom.AbstractSVGLength
AbstractSVGLength.DefaultContext
-
-
Field Summary
-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGLength
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_LENGTH
-
-
Constructor Summary
Constructors Constructor Description AnimSVGLength(short direction)
Creates a new AnimSVGLength.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertToSpecifiedUnits(short unit)
DOM: ImplementsSVGLength.convertToSpecifiedUnits(short)
.protected SVGOMElement
getAssociatedElement()
Returns the element this length is associated with.short
getUnitType()
DOM: ImplementsSVGLength.getUnitType()
.float
getValue()
DOM: ImplementsSVGLength.getValue()
.java.lang.String
getValueAsString()
DOM: ImplementsSVGLength.getValueAsString()
.float
getValueInSpecifiedUnits()
DOM: ImplementsSVGLength.getValueInSpecifiedUnits()
.void
newValueSpecifiedUnits(short unit, float value)
DOM: ImplementsSVGLength.newValueSpecifiedUnits(short,float)
.protected void
setAnimatedValue(int type, float val)
Sets the animated value.void
setValue(float value)
DOM: ImplementsSVGLength.setValue(float)
.void
setValueAsString(java.lang.String value)
DOM: ImplementsSVGLength.setValueAsString(String)
.void
setValueInSpecifiedUnits(float value)
DOM: ImplementsSVGLength.setValueInSpecifiedUnits(float)
.-
Methods inherited from class org.apache.batik.anim.dom.AbstractSVGLength
parse, reset, revalidate
-
-
-
-
Method Detail
-
getUnitType
public short getUnitType()
DOM: ImplementsSVGLength.getUnitType()
.- Specified by:
getUnitType
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
getUnitType
in classAbstractSVGLength
-
getValue
public float getValue()
DOM: ImplementsSVGLength.getValue()
.- Specified by:
getValue
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
getValue
in classAbstractSVGLength
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()
DOM: ImplementsSVGLength.getValueInSpecifiedUnits()
.- Specified by:
getValueInSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
getValueInSpecifiedUnits
in classAbstractSVGLength
-
getValueAsString
public java.lang.String getValueAsString()
DOM: ImplementsSVGLength.getValueAsString()
.- Specified by:
getValueAsString
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
getValueAsString
in classAbstractSVGLength
-
setValue
public void setValue(float value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGLength.setValue(float)
.- Specified by:
setValue
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValue
in classAbstractSVGLength
- Throws:
org.w3c.dom.DOMException
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGLength.setValueInSpecifiedUnits(float)
.- Specified by:
setValueInSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValueInSpecifiedUnits
in classAbstractSVGLength
- Throws:
org.w3c.dom.DOMException
-
setValueAsString
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGLength.setValueAsString(String)
.- Specified by:
setValueAsString
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValueAsString
in classAbstractSVGLength
- Throws:
org.w3c.dom.DOMException
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unit, float value)
DOM: ImplementsSVGLength.newValueSpecifiedUnits(short,float)
.- Specified by:
newValueSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
newValueSpecifiedUnits
in classAbstractSVGLength
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unit)
DOM: ImplementsSVGLength.convertToSpecifiedUnits(short)
.- Specified by:
convertToSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
convertToSpecifiedUnits
in classAbstractSVGLength
-
getAssociatedElement
protected SVGOMElement getAssociatedElement()
Returns the element this length is associated with.- Specified by:
getAssociatedElement
in classAbstractSVGLength
-
setAnimatedValue
protected void setAnimatedValue(int type, float val)
Sets the animated value.- Parameters:
type
- one of the values defines in org.w3c.dom.svg.SVGLengthval
- the length
-
-