org.apache.batik.dom.svg

Class AbstractSVGPathSegList

public abstract class AbstractSVGPathSegList extends AbstractSVGList implements SVGPathSegList, SVGPathSegConstants

This class is the implementation of SVGPathSegList.
Nested Class Summary
protected classAbstractSVGPathSegList.PathSegListBuilder
classAbstractSVGPathSegList.SVGPathSegArcItem
classAbstractSVGPathSegList.SVGPathSegCurvetoCubicItem
classAbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem
classAbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem
classAbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem
protected classAbstractSVGPathSegList.SVGPathSegItem
Internal representation of the item SVGPathSeg.
classAbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem
classAbstractSVGPathSegList.SVGPathSegLinetoVerticalItem
classAbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
Field Summary
static StringSVG_PATHSEG_LIST_SEPARATOR
Separator for a point list.
Constructor Summary
protected AbstractSVGPathSegList()
Creates a new SVGPathSegList.
Method Summary
SVGPathSegappendItem(SVGPathSeg newItem)
protected voidcheckItemType(Object newItem)
Check if the item is an SVGPathSeg.
protected AbstractSVGPathSegList.SVGPathSegItemcreatePathSegItem(SVGPathSeg pathSeg)
create an SVGItem representing this SVGPathSeg.
protected abstract SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.
protected SVGItemcreateSVGItem(Object newItem)
protected voiddoParse(String value, ListHandler handler)
Parse the 'd' attribute.
SVGPathSeggetItem(int index)
protected StringgetItemSeparator()
Return the separator between segments in the list.
SVGPathSeginitialize(SVGPathSeg newItem)
SVGPathSeginsertItemBefore(SVGPathSeg newItem, int index)
SVGPathSegremoveItem(int index)
SVGPathSegreplaceItem(SVGPathSeg newItem, int index)

Field Detail

SVG_PATHSEG_LIST_SEPARATOR

public static final String SVG_PATHSEG_LIST_SEPARATOR
Separator for a point list.

Constructor Detail

AbstractSVGPathSegList

protected AbstractSVGPathSegList()
Creates a new SVGPathSegList.

Method Detail

appendItem

public SVGPathSeg appendItem(SVGPathSeg newItem)

checkItemType

protected void checkItemType(Object newItem)
Check if the item is an SVGPathSeg.

createPathSegItem

protected AbstractSVGPathSegList.SVGPathSegItem createPathSegItem(SVGPathSeg pathSeg)
create an SVGItem representing this SVGPathSeg.

createSVGException

protected abstract SVGException createSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.

Returns: SVGException

createSVGItem

protected SVGItem createSVGItem(Object newItem)

doParse

protected void doParse(String value, ListHandler handler)
Parse the 'd' attribute.

Parameters: value 'd' attribute value handler : list handler

getItem

public SVGPathSeg getItem(int index)

getItemSeparator

protected String getItemSeparator()
Return the separator between segments in the list.

initialize

public SVGPathSeg initialize(SVGPathSeg newItem)

insertItemBefore

public SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index)

removeItem

public SVGPathSeg removeItem(int index)

replaceItem

public SVGPathSeg replaceItem(SVGPathSeg newItem, int index)
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.