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().- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSVGLength
AbstractSVGLength.DefaultContext -
Field Summary
Fields inherited from class AbstractSVGLength
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_LENGTHFields 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 TypeMethodDescriptionvoidconvertToSpecifiedUnits(short unit) DOM: ImplementsSVGLength.convertToSpecifiedUnits(short).protected SVGOMElementReturns the element this length is associated with.shortDOM: ImplementsSVGLength.getUnitType().floatgetValue()DOM: ImplementsSVGLength.getValue().DOM: ImplementsSVGLength.getValueAsString().floatDOM: ImplementsSVGLength.getValueInSpecifiedUnits().voidnewValueSpecifiedUnits(short unit, float value) DOM: ImplementsSVGLength.newValueSpecifiedUnits(short,float).protected voidsetAnimatedValue(int type, float val) Sets the animated value.voidsetValue(float value) DOM: ImplementsSVGLength.setValue(float).voidsetValueAsString(String value) DOM: ImplementsSVGLength.setValueAsString(String).voidsetValueInSpecifiedUnits(float value) DOM: ImplementsSVGLength.setValueInSpecifiedUnits(float).Methods inherited from class 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:
getUnitTypein interfaceorg.w3c.dom.svg.SVGLength- Overrides:
getUnitTypein classAbstractSVGLength
-
getValue
public float getValue()DOM: ImplementsSVGLength.getValue().- Specified by:
getValuein interfaceorg.w3c.dom.svg.SVGLength- Overrides:
getValuein classAbstractSVGLength
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()DOM: ImplementsSVGLength.getValueInSpecifiedUnits().- Specified by:
getValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
getValueInSpecifiedUnitsin classAbstractSVGLength
-
getValueAsString
DOM: ImplementsSVGLength.getValueAsString().- Specified by:
getValueAsStringin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
getValueAsStringin classAbstractSVGLength
-
setValue
DOM: ImplementsSVGLength.setValue(float).- Specified by:
setValuein interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValuein classAbstractSVGLength- Throws:
DOMException
-
setValueInSpecifiedUnits
DOM: ImplementsSVGLength.setValueInSpecifiedUnits(float).- Specified by:
setValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValueInSpecifiedUnitsin classAbstractSVGLength- Throws:
DOMException
-
setValueAsString
DOM: ImplementsSVGLength.setValueAsString(String).- Specified by:
setValueAsStringin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValueAsStringin classAbstractSVGLength- Throws:
DOMException
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unit, float value) DOM: ImplementsSVGLength.newValueSpecifiedUnits(short,float).- Specified by:
newValueSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
newValueSpecifiedUnitsin classAbstractSVGLength
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unit) DOM: ImplementsSVGLength.convertToSpecifiedUnits(short).- Specified by:
convertToSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
convertToSpecifiedUnitsin classAbstractSVGLength
-
getAssociatedElement
Returns the element this length is associated with.- Specified by:
getAssociatedElementin 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
-