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 voidconvertToSpecifiedUnits(short unit)DOM: ImplementsSVGLength.convertToSpecifiedUnits(short).protected SVGOMElementgetAssociatedElement()Returns the element this length is associated with.shortgetUnitType()DOM: ImplementsSVGLength.getUnitType().floatgetValue()DOM: ImplementsSVGLength.getValue().java.lang.StringgetValueAsString()DOM: ImplementsSVGLength.getValueAsString().floatgetValueInSpecifiedUnits()DOM: 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(java.lang.String value)DOM: ImplementsSVGLength.setValueAsString(String).voidsetValueInSpecifiedUnits(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:
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
public java.lang.String getValueAsString()
DOM: ImplementsSVGLength.getValueAsString().- Specified by:
getValueAsStringin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
getValueAsStringin classAbstractSVGLength
-
setValue
public void setValue(float value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGLength.setValue(float).- Specified by:
setValuein interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValuein classAbstractSVGLength- Throws:
org.w3c.dom.DOMException
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGLength.setValueInSpecifiedUnits(float).- Specified by:
setValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValueInSpecifiedUnitsin classAbstractSVGLength- Throws:
org.w3c.dom.DOMException
-
setValueAsString
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGLength.setValueAsString(String).- Specified by:
setValueAsStringin interfaceorg.w3c.dom.svg.SVGLength- Overrides:
setValueAsStringin classAbstractSVGLength- Throws:
org.w3c.dom.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
protected SVGOMElement 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
-
-