public abstract class AbstractSVGPointList extends AbstractSVGList
SVGPointList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGPointList.PointsListBuilder
Helper class to interface the
PointsParser and the
PointsHandler . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SVG_POINT_LIST_SEPARATOR
Separator for a point list.
|
itemList, valid
Constructor and Description |
---|
AbstractSVGPointList() |
Modifier and Type | Method and Description |
---|---|
SVGPoint |
appendItem(SVGPoint newItem)
DOM: Implements
SVGPointList#appendItem(SVGPoint) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item is an
SVGPoint . |
protected abstract SVGException |
createSVGException(short type,
java.lang.String key,
java.lang.Object[] args)
Create an SVGException when the checkItemType fails.
|
protected SVGItem |
createSVGItem(java.lang.Object newItem)
Creates a new
SVGItem object from the given SVGPoint . |
protected void |
doParse(java.lang.String value,
ListHandler handler)
Parses the 'points' attribute.
|
SVGPoint |
getItem(int index)
DOM: Implements
SVGPointList#getItem(int) . |
protected java.lang.String |
getItemSeparator()
Return the separator between points in the list.
|
SVGPoint |
initialize(SVGPoint newItem)
DOM: Implements
SVGPointList#initialize(SVGPoint) . |
SVGPoint |
insertItemBefore(SVGPoint newItem,
int index)
DOM: Implements
SVGPointList#insertItemBefore(SVGPoint,int) . |
SVGPoint |
removeItem(int index)
DOM: Implements
SVGPointList#removeItem(int) . |
SVGPoint |
replaceItem(SVGPoint newItem,
int index)
DOM: Implements
SVGPointList#replaceItem(SVGPoint,int) . |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
public static final java.lang.String SVG_POINT_LIST_SEPARATOR
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
public SVGPoint initialize(SVGPoint newItem) throws org.w3c.dom.DOMException, SVGException
SVGPointList#initialize(SVGPoint)
.org.w3c.dom.DOMException
SVGException
public SVGPoint getItem(int index) throws org.w3c.dom.DOMException
SVGPointList#getItem(int)
.org.w3c.dom.DOMException
public SVGPoint insertItemBefore(SVGPoint newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGPointList#insertItemBefore(SVGPoint,int)
.org.w3c.dom.DOMException
SVGException
public SVGPoint replaceItem(SVGPoint newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGPointList#replaceItem(SVGPoint,int)
.org.w3c.dom.DOMException
SVGException
public SVGPoint removeItem(int index) throws org.w3c.dom.DOMException
SVGPointList#removeItem(int)
.org.w3c.dom.DOMException
public SVGPoint appendItem(SVGPoint newItem) throws org.w3c.dom.DOMException, SVGException
SVGPointList#appendItem(SVGPoint)
.org.w3c.dom.DOMException
SVGException
protected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem
object from the given SVGPoint
.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- 'points' attribute valuehandler
- point list handlerParseException
protected void checkItemType(java.lang.Object newItem) throws SVGException
SVGPoint
.checkItemType
in class AbstractSVGList
SVGException
Copyright ? 2015 Apache Software Foundation. All Rights Reserved.