Package org.apache.batik.anim.dom
Class SVGOMAnimatedLengthList.AnimSVGLengthList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.anim.dom.AbstractSVGLengthList
org.apache.batik.anim.dom.SVGOMAnimatedLengthList.AnimSVGLengthList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
- Enclosing class:
SVGOMAnimatedLengthList
SVGLengthList
implementation for the animated length list value.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.anim.dom.AbstractSVGLengthList
AbstractSVGLengthList.LengthListBuilder, AbstractSVGLengthList.SVGLengthItem
-
Field Summary
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGLengthList
direction, SVG_LENGTH_LIST_SEPARATOR
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGLength
appendItem
(org.w3c.dom.svg.SVGLength newItem) DOM: ImplementsSVGLengthList.appendItem(SVGLength)
.void
clear()
DOM: ImplementsSVGLengthList.clear()
.protected DOMException
createDOMException
(short type, String key, Object[] args) Create a DOMException.protected org.w3c.dom.svg.SVGException
createSVGException
(short type, String key, Object[] args) Create a SVGException.protected Element
Returns the element owning this SVGLengthList.org.w3c.dom.svg.SVGLength
getItem
(int index) DOM: ImplementsSVGLengthList.getItem(int)
.int
DOM: ImplementsSVGLengthList.getNumberOfItems()
.protected String
Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGLength
initialize
(org.w3c.dom.svg.SVGLength newItem) DOM: ImplementsSVGLengthList.initialize(SVGLength)
.org.w3c.dom.svg.SVGLength
insertItemBefore
(org.w3c.dom.svg.SVGLength newItem, int index) DOM: ImplementsSVGLengthList.insertItemBefore(SVGLength, int)
.org.w3c.dom.svg.SVGLength
removeItem
(int index) DOM: ImplementsSVGLengthList.removeItem(int)
.org.w3c.dom.svg.SVGLength
replaceItem
(org.w3c.dom.svg.SVGLength newItem, int index) DOM: ImplementsSVGLengthList.replaceItem(SVGLength, int)
.protected void
Resets the value of the associated attribute.protected void
resetAttribute
(SVGItem item) Resets the value of the associated attribute.protected void
Initializes the list, if needed.protected void
setAnimatedValue
(short[] types, float[] values) Sets the animated value.protected void
setAttributeValue
(String value) Sets the DOM attribute value containing the point list.Methods inherited from class org.apache.batik.anim.dom.AbstractSVGLengthList
checkItemType, createSVGItem, doParse, getItemSeparator
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
-
Constructor Details
-
AnimSVGLengthList
public AnimSVGLengthList()Creates a new AnimSVGLengthList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMException
in classAbstractSVGList
-
createSVGException
Create a SVGException.- Specified by:
createSVGException
in classAbstractSVGLengthList
- Returns:
- SVGException
-
getElement
Returns the element owning this SVGLengthList.- Specified by:
getElement
in classAbstractSVGLengthList
-
getNumberOfItems
public int getNumberOfItems()DOM: ImplementsSVGLengthList.getNumberOfItems()
.- Specified by:
getNumberOfItems
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
getNumberOfItems
in classAbstractSVGList
-
getItem
DOM: ImplementsSVGLengthList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
getItem
in classAbstractSVGLengthList
- Throws:
DOMException
-
getValueAsString
Returns the value of the DOM attribute containing the point list.- Specified by:
getValueAsString
in classAbstractSVGList
-
setAttributeValue
Sets the DOM attribute value containing the point list.- Specified by:
setAttributeValue
in classAbstractSVGList
- Parameters:
value
- the String representation of the list, or null if the list contains no items
-
clear
DOM: ImplementsSVGLengthList.clear()
.- Specified by:
clear
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
clear
in classAbstractSVGList
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
-
initialize
public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.initialize(SVGLength)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
initialize
in classAbstractSVGLengthList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.insertItemBefore(SVGLength, int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
insertItemBefore
in classAbstractSVGLengthList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.replaceItem(SVGLength, int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
replaceItem
in classAbstractSVGLengthList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGLengthList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
removeItem
in classAbstractSVGLengthList
- Throws:
DOMException
-
appendItem
DOM: ImplementsSVGLengthList.appendItem(SVGLength)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Overrides:
appendItem
in classAbstractSVGLengthList
- Throws:
DOMException
-
setAnimatedValue
protected void setAnimatedValue(short[] types, float[] values) Sets the animated value. -
resetAttribute
protected void resetAttribute()Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.- Overrides:
resetAttribute
in classAbstractSVGList
-
resetAttribute
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.- Overrides:
resetAttribute
in classAbstractSVGList
-
revalidate
protected void revalidate()Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.- Overrides:
revalidate
in classAbstractSVGList
-