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
This class represents the SVGLength returned by
AbstractSVGAnimatedLength.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
Fields inherited from interface org.w3c.dom.svg.SVGLength
SVG_LENGTHTYPE_CM, SVG_LENGTHTYPE_EMS, SVG_LENGTHTYPE_EXS, SVG_LENGTHTYPE_IN, SVG_LENGTHTYPE_MM, SVG_LENGTHTYPE_NUMBER, SVG_LENGTHTYPE_PC, SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_PT, SVG_LENGTHTYPE_PX, SVG_LENGTHTYPE_UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertToSpecifiedUnits
(short unit) DOM: ImplementsSVGLength.convertToSpecifiedUnits(short)
.protected SVGOMElement
Returns the element this length is associated with.short
DOM: ImplementsSVGLength.getUnitType()
.float
getValue()
DOM: ImplementsSVGLength.getValue()
.DOM: ImplementsSVGLength.getValueAsString()
.float
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
(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
-
Constructor Details
-
AnimSVGLength
public AnimSVGLength(short direction) Creates a new AnimSVGLength.- Parameters:
direction
- is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH
-
-
Method Details
-
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
DOM: ImplementsSVGLength.getValueAsString()
.- Specified by:
getValueAsString
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
getValueAsString
in classAbstractSVGLength
-
setValue
DOM: ImplementsSVGLength.setValue(float)
.- Specified by:
setValue
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValue
in classAbstractSVGLength
- Throws:
DOMException
-
setValueInSpecifiedUnits
DOM: ImplementsSVGLength.setValueInSpecifiedUnits(float)
.- Specified by:
setValueInSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValueInSpecifiedUnits
in classAbstractSVGLength
- Throws:
DOMException
-
setValueAsString
DOM: ImplementsSVGLength.setValueAsString(String)
.- Specified by:
setValueAsString
in interfaceorg.w3c.dom.svg.SVGLength
- Overrides:
setValueAsString
in classAbstractSVGLength
- Throws:
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
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
-