|
|||||||||||
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
This class is the implementation of
SVGPointList
.
Nested Class Summary | |
protected class |
AbstractSVGPointList.PointsListBuilder
Helper class to interface the PointsParser
and the ListHandler |
protected class |
AbstractSVGPointList.SVGPointItem
Representation of the item SVGPoint. |
Nested classes 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 | |
protected |
AbstractSVGPointList()
Creates a new SVGPointList. |
Method Summary | |
SVGPoint |
appendItem(SVGPoint newItem)
|
protected void |
checkItemType(Object newItem)
Check if the 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)
Return the item to be placed in the list. |
protected void |
doParse(String value,
ListHandler handler)
Parse the 'points' attribute. |
SVGPoint |
getItem(int index)
|
protected String |
getItemSeparator()
Return the separator between points in the list. |
SVGPoint |
initialize(SVGPoint newItem)
|
SVGPoint |
insertItemBefore(SVGPoint newItem,
int index)
|
SVGPoint |
removeItem(int index)
|
SVGPoint |
replaceItem(SVGPoint newItem,
int index)
|
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 |
Methods inherited from interface org.w3c.dom.svg.SVGPointList |
clear, getNumberOfItems |
Field Detail |
public static final String SVG_POINT_LIST_SEPARATOR
Constructor Detail |
protected 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
initialize
in interface SVGPointList
DOMException
SVGException
public SVGPoint getItem(int index) throws DOMException
getItem
in interface SVGPointList
DOMException
public SVGPoint insertItemBefore(SVGPoint newItem, int index) throws DOMException, SVGException
insertItemBefore
in interface SVGPointList
DOMException
SVGException
public SVGPoint replaceItem(SVGPoint newItem, int index) throws DOMException, SVGException
replaceItem
in interface SVGPointList
DOMException
SVGException
public SVGPoint removeItem(int index) throws DOMException
removeItem
in interface SVGPointList
DOMException
public SVGPoint appendItem(SVGPoint newItem) throws DOMException, SVGException
appendItem
in interface SVGPointList
DOMException
SVGException
protected SVGItem createSVGItem(Object newItem)
AbstractSVGList
Object
the implementation provide an item to be placed
in the list.
createSVGItem
in class AbstractSVGList
newItem
- paramter of the modification method
of the list
protected void doParse(String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- 'points' attribute valuehandler
- : list handler
ParseException
protected void checkItemType(Object newItem) throws SVGException
checkItemType
in class AbstractSVGList
newItem
- object to test
SVGException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |