Package org.apache.batik.dom.svg
Class AbstractSVGPointList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGPointList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGPointList
- Direct Known Subclasses:
SVGOMAnimatedPoints.AnimSVGPointList
,SVGOMAnimatedPoints.BaseSVGPointList
public abstract class AbstractSVGPointList
extends AbstractSVGList
implements org.w3c.dom.svg.SVGPointList
Abstract implementation of
SVGPointList
.- Version:
- $Id: AbstractSVGPointList.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Helper class to interface thePointsParser
and thePointsHandler
. -
Field Summary
FieldsFields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGPoint
appendItem
(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.appendItem(SVGPoint)
.protected void
checkItemType
(Object newItem) Asserts that the given item is anSVGPoint
.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 givenSVGPoint
.protected void
doParse
(String value, ListHandler handler) Parses the 'points' attribute.org.w3c.dom.svg.SVGPoint
getItem
(int index) DOM: ImplementsSVGPointList.getItem(int)
.protected String
Return the separator between points in the list.org.w3c.dom.svg.SVGPoint
initialize
(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.initialize(SVGPoint)
.org.w3c.dom.svg.SVGPoint
insertItemBefore
(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint,int)
.org.w3c.dom.svg.SVGPoint
removeItem
(int index) DOM: ImplementsSVGPointList.removeItem(int)
.org.w3c.dom.svg.SVGPoint
replaceItem
(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.replaceItem(SVGPoint,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.SVGPointList
clear, getNumberOfItems
-
Field Details
-
SVG_POINT_LIST_SEPARATOR
Separator for a point list.- See Also:
-
-
Constructor Details
-
AbstractSVGPointList
public AbstractSVGPointList()
-
-
Method Details
-
getItemSeparator
Return the separator between points 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
-
initialize
public org.w3c.dom.svg.SVGPoint initialize(org.w3c.dom.svg.SVGPoint newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.initialize(SVGPoint)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGPointList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGPoint insertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint,int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPoint replaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.replaceItem(SVGPoint,int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGPointList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
-
appendItem
public org.w3c.dom.svg.SVGPoint appendItem(org.w3c.dom.svg.SVGPoint newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.appendItem(SVGPoint)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
createSVGItem
Creates a newSVGItem
object from the givenSVGPoint
.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
Parses the 'points' attribute.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- 'points' attribute valuehandler
- point list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item is anSVGPoint
.- Specified by:
checkItemType
in classAbstractSVGList
- Throws:
org.w3c.dom.svg.SVGException
-