Package org.apache.batik.anim.dom
Class AbstractSVGLengthList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.anim.dom.AbstractSVGLengthList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
- Direct Known Subclasses:
SVGOMAnimatedLengthList.AnimSVGLengthList
,SVGOMAnimatedLengthList.BaseSVGLengthList
public abstract class AbstractSVGLengthList
extends AbstractSVGList
implements org.w3c.dom.svg.SVGLengthList
This class is the implementation of
SVGLengthList
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Helper class to interface theLengthListParser
and theListHandler
.protected class
AnSVGLength
in the list. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short
This length list's direction.static final String
Separator for a length list.Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractSVGLengthList
(short direction) Creates a new SVGLengthList. -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGLength
appendItem
(org.w3c.dom.svg.SVGLength newItem) DOM: ImplementsSVGLengthList.appendItem(SVGLength)
.protected void
checkItemType
(Object newItem) Asserts that the given item is anSVGLengthList
.protected abstract org.w3c.dom.svg.SVGException
createSVGException
(short type, String key, Object[] args) Create an SVGException when the checkItemType fails.protected SVGItem
createSVGItem
(Object newItem) Creates a newSVGItem
object from the givenSVGLength
.protected void
doParse
(String value, ListHandler handler) Parses the attribute associated with this SVGLengthList.protected abstract Element
Returns the element owning this SVGLengthList.org.w3c.dom.svg.SVGLength
getItem
(int index) DOM: ImplementsSVGLengthList.getItem(int)
.protected String
Return the separator between values in the 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)
.Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.svg.SVGLengthList
clear, getNumberOfItems
-
Field Details
-
direction
protected short directionThis length list's direction. -
SVG_LENGTH_LIST_SEPARATOR
Separator for a length list.- See Also:
-
-
Constructor Details
-
AbstractSVGLengthList
protected AbstractSVGLengthList(short direction) Creates a new SVGLengthList.
-
-
Method Details
-
getItemSeparator
Return the separator between values in the list.- Specified by:
getItemSeparator
in classAbstractSVGList
-
createSVGException
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, String key, Object[] args) Create an SVGException when the checkItemType fails.- Returns:
- SVGException
-
getElement
Returns the element owning this SVGLengthList. -
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
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGLengthList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Throws:
DOMException
-
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
- 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
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGLengthList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Throws:
DOMException
-
appendItem
public org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.appendItem(SVGLength)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGLengthList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
createSVGItem
Creates a newSVGItem
object from the givenSVGLength
.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
Parses the attribute associated with this SVGLengthList.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- attribute valuehandler
- length list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item is anSVGLengthList
.- Specified by:
checkItemType
in classAbstractSVGList
- Throws:
org.w3c.dom.svg.SVGException
-