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 ofSVGPointList.- Version:
- $Id: AbstractSVGPointList.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractSVGPointList.PointsListBuilderHelper class to interface thePointsParserand thePointsHandler.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSVG_POINT_LIST_SEPARATORSeparator for a point list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Constructor Description AbstractSVGPointList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGPointappendItem(org.w3c.dom.svg.SVGPoint newItem)DOM: ImplementsSVGPointList.appendItem(SVGPoint).protected voidcheckItemType(java.lang.Object newItem)Asserts that the given item is anSVGPoint.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, java.lang.String key, java.lang.Object[] args)Create an SVGException when the checkItemType fails.protected SVGItemcreateSVGItem(java.lang.Object newItem)Creates a newSVGItemobject from the givenSVGPoint.protected voiddoParse(java.lang.String value, ListHandler handler)Parses the 'points' attribute.org.w3c.dom.svg.SVGPointgetItem(int index)DOM: ImplementsSVGPointList.getItem(int).protected java.lang.StringgetItemSeparator()Return 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 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
-
-
-
-
Field Detail
-
SVG_POINT_LIST_SEPARATOR
public static final java.lang.String SVG_POINT_LIST_SEPARATOR
Separator for a point list.- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemSeparator
protected java.lang.String getItemSeparator()
Return the separator between points in the list.- Specified by:
getItemSeparatorin classAbstractSVGList
-
createSVGException
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.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 org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.initialize(SVGPoint).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGPoint getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGPoint insertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.insertItemBefore(SVGPoint,int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPoint replaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.replaceItem(SVGPoint,int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGPoint removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGPoint appendItem(org.w3c.dom.svg.SVGPoint newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.appendItem(SVGPoint).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Creates a newSVGItemobject from the givenSVGPoint.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseExceptionParses the 'points' attribute.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- 'points' attribute valuehandler- point list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem) throws org.w3c.dom.svg.SVGExceptionAsserts that the given item is anSVGPoint.- Specified by:
checkItemTypein classAbstractSVGList- Throws:
org.w3c.dom.svg.SVGException
-
-