|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGPointList
public abstract class AbstractSVGPointList
Abstract implementation of SVGPointList.
| Nested Class Summary | |
|---|---|
protected class |
AbstractSVGPointList.PointsListBuilder
Helper class to interface the PointsParser and the
PointsHandler. |
protected class |
AbstractSVGPointList.SVGPointItem
An SVGPoint in the list. |
| Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGList |
|---|
AbstractSVGList.ListBuilder |
| Field Summary | |
|---|---|
static String |
SVG_POINT_LIST_SEPARATOR
Separator for a point list. |
| Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList |
|---|
itemList, valid |
| Constructor Summary | |
|---|---|
AbstractSVGPointList()
|
|
| Method Summary | |
|---|---|
SVGPoint |
appendItem(SVGPoint newItem)
DOM: Implements SVGPointList#appendItem(SVGPoint). |
protected void |
checkItemType(Object newItem)
Asserts that the given item is an SVGPoint. |
protected abstract SVGException |
createSVGException(short type,
String key,
Object[] args)
Create an SVGException when the checkItemType fails. |
protected SVGItem |
createSVGItem(Object newItem)
Creates a new SVGItem object from the given SVGPoint. |
protected void |
doParse(String value,
ListHandler handler)
Parses the 'points' attribute. |
SVGPoint |
getItem(int index)
DOM: Implements SVGPointList#getItem(int). |
protected 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). |
| 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 |
| Field Detail |
|---|
public static final String SVG_POINT_LIST_SEPARATOR
| Constructor Detail |
|---|
public AbstractSVGPointList()
| Method Detail |
|---|
protected String getItemSeparator()
getItemSeparator in class AbstractSVGList
protected abstract SVGException createSVGException(short type,
String key,
Object[] args)
public SVGPoint initialize(SVGPoint newItem)
throws DOMException,
SVGException
SVGPointList#initialize(SVGPoint).
DOMException
SVGException
public SVGPoint getItem(int index)
throws DOMException
SVGPointList#getItem(int).
DOMException
public SVGPoint insertItemBefore(SVGPoint newItem,
int index)
throws DOMException,
SVGException
SVGPointList#insertItemBefore(SVGPoint,int).
DOMException
SVGException
public SVGPoint replaceItem(SVGPoint newItem,
int index)
throws DOMException,
SVGException
SVGPointList#replaceItem(SVGPoint,int).
DOMException
SVGException
public SVGPoint removeItem(int index)
throws DOMException
SVGPointList#removeItem(int).
DOMException
public SVGPoint appendItem(SVGPoint newItem)
throws DOMException,
SVGException
SVGPointList#appendItem(SVGPoint).
DOMException
SVGExceptionprotected SVGItem createSVGItem(Object newItem)
SVGItem object from the given SVGPoint.
createSVGItem in class AbstractSVGListnewItem - the SVG object
SVGItem object
protected void doParse(String value,
ListHandler handler)
throws ParseException
doParse in class AbstractSVGListvalue - 'points' attribute valuehandler - point list handler
ParseException
protected void checkItemType(Object newItem)
throws SVGException
SVGPoint.
checkItemType in class AbstractSVGListSVGException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||