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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHelper class to interface thePointsParserand thePointsHandler. -
Field Summary
FieldsFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGPointappendItem(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.appendItem(SVGPoint).protected voidcheckItemType(Object newItem) Asserts that the given item is anSVGPoint.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create an SVGException when the checkItemType fails.protected SVGItemcreateSVGItem(Object newItem) Creates a newSVGItemobject from the givenSVGPoint.protected voiddoParse(String value, ListHandler handler) Parses the 'points' attribute.org.w3c.dom.svg.SVGPointgetItem(int index) DOM: ImplementsSVGPointList.getItem(int).protected StringReturn the separator between points in the list.org.w3c.dom.svg.SVGPointinitialize(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.initialize(SVGPoint).org.w3c.dom.svg.SVGPointinsertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint,int).org.w3c.dom.svg.SVGPointremoveItem(int index) DOM: ImplementsSVGPointList.removeItem(int).org.w3c.dom.svg.SVGPointreplaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.replaceItem(SVGPoint,int).Methods inherited from class AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.svg.SVGPointList
clear, getNumberOfItems
-
Field Details
-
SVG_POINT_LIST_SEPARATOR
-
-
Constructor Details
-
AbstractSVGPointList
public AbstractSVGPointList()
-
-
Method Details
-
getItemSeparator
Return the separator between points in the list.- Specified by:
getItemSeparatorin classAbstractSVGList
-
createSVGException
-
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:
initializein interfaceorg.w3c.dom.svg.SVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGPointList.getItem(int).- Specified by:
getItemin 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:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPointList- Throws:
DOMExceptionorg.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:
replaceItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGPointList.removeItem(int).- Specified by:
removeItemin 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:
appendItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
Creates a newSVGItemobject from the givenSVGPoint.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
Parses the 'points' attribute.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- 'points' attribute valuehandler- point list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item is anSVGPoint.- Specified by:
checkItemTypein classAbstractSVGList- Throws:
org.w3c.dom.svg.SVGException
-