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. |
protected class |
AbstractSVGPointList.SVGPointItem
An
SVGPoint in the list. |
AbstractSVGList.ListBuilder| 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, setValueAsStringpublic static final java.lang.String SVG_POINT_LIST_SEPARATOR
protected java.lang.String getItemSeparator()
getItemSeparator in class AbstractSVGListprotected 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.DOMExceptionSVGExceptionpublic SVGPoint getItem(int index)
throws org.w3c.dom.DOMException
SVGPointList#getItem(int).org.w3c.dom.DOMExceptionpublic SVGPoint insertItemBefore(SVGPoint newItem,
int index)
throws org.w3c.dom.DOMException,
SVGException
SVGPointList#insertItemBefore(SVGPoint,int).org.w3c.dom.DOMExceptionSVGExceptionpublic SVGPoint replaceItem(SVGPoint newItem,
int index)
throws org.w3c.dom.DOMException,
SVGException
SVGPointList#replaceItem(SVGPoint,int).org.w3c.dom.DOMExceptionSVGExceptionpublic SVGPoint removeItem(int index)
throws org.w3c.dom.DOMException
SVGPointList#removeItem(int).org.w3c.dom.DOMExceptionpublic SVGPoint appendItem(SVGPoint newItem)
throws org.w3c.dom.DOMException,
SVGException
SVGPointList#appendItem(SVGPoint).org.w3c.dom.DOMExceptionSVGExceptionprotected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem object from the given SVGPoint.createSVGItem in class AbstractSVGListnewItem - the SVG objectSVGItem objectprotected void doParse(java.lang.String value,
ListHandler handler)
throws ParseException
doParse in class AbstractSVGListvalue - 'points' attribute valuehandler - point list handlerParseExceptionprotected void checkItemType(java.lang.Object newItem)
throws SVGException
SVGPoint.checkItemType in class AbstractSVGListSVGExceptionCopyright ? 2009 Apache Software Foundation. All Rights Reserved.