Package org.apache.batik.dom.svg
Class AbstractSVGPathSegList
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGList
-
- org.apache.batik.dom.svg.AbstractSVGPathSegList
-
- All Implemented Interfaces:
SVGPathSegConstants
,org.w3c.dom.svg.SVGPathSegList
- Direct Known Subclasses:
AbstractSVGNormPathSegList
,SVGOMAnimatedPathData.AnimSVGPathSegList
,SVGOMAnimatedPathData.BaseSVGPathSegList
public abstract class AbstractSVGPathSegList extends AbstractSVGList implements org.w3c.dom.svg.SVGPathSegList, SVGPathSegConstants
This class is the implementation ofSVGPathSegList
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractSVGPathSegList.PathSegListBuilder
static class
AbstractSVGPathSegList.SVGPathSegArcItem
static class
AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem
static class
AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem
static class
AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem
static class
AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem
static class
AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem
static class
AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem
static class
AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SVG_PATHSEG_LIST_SEPARATOR
Separator for a point list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
Fields inherited from interface org.apache.batik.dom.svg.SVGPathSegConstants
PATHSEG_ARC_ABS_LETTER, PATHSEG_ARC_REL_LETTER, PATHSEG_CLOSEPATH_LETTER, PATHSEG_CURVETO_CUBIC_ABS_LETTER, PATHSEG_CURVETO_CUBIC_REL_LETTER, PATHSEG_CURVETO_CUBIC_SMOOTH_ABS_LETTER, PATHSEG_CURVETO_CUBIC_SMOOTH_REL_LETTER, PATHSEG_CURVETO_QUADRATIC_ABS_LETTER, PATHSEG_CURVETO_QUADRATIC_REL_LETTER, PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS_LETTER, PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL_LETTER, PATHSEG_LETTERS, PATHSEG_LINETO_ABS_LETTER, PATHSEG_LINETO_HORIZONTAL_ABS_LETTER, PATHSEG_LINETO_HORIZONTAL_REL_LETTER, PATHSEG_LINETO_REL_LETTER, PATHSEG_LINETO_VERTICAL_ABS_LETTER, PATHSEG_LINETO_VERTICAL_REL_LETTER, PATHSEG_MOVETO_ABS_LETTER, PATHSEG_MOVETO_REL_LETTER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSVGPathSegList()
Creates a new SVGPathSegList.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGPathSeg
appendItem(org.w3c.dom.svg.SVGPathSeg newItem)
protected void
checkItemType(java.lang.Object newItem)
Check if the item is an SVGPathSeg.protected SVGPathSegItem
createPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
create an SVGItem representing this SVGPathSeg.protected abstract org.w3c.dom.svg.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 anSVGItem
object that has the same values as those in the specified SVG object.protected void
doParse(java.lang.String value, ListHandler handler)
Parse the 'd' attribute.org.w3c.dom.svg.SVGPathSeg
getItem(int index)
protected java.lang.String
getItemSeparator()
Return the separator between segments in the list.org.w3c.dom.svg.SVGPathSeg
initialize(org.w3c.dom.svg.SVGPathSeg newItem)
org.w3c.dom.svg.SVGPathSeg
insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index)
org.w3c.dom.svg.SVGPathSeg
removeItem(int index)
org.w3c.dom.svg.SVGPathSeg
replaceItem(org.w3c.dom.svg.SVGPathSeg 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
-
-
-
-
Field Detail
-
SVG_PATHSEG_LIST_SEPARATOR
public static final java.lang.String SVG_PATHSEG_LIST_SEPARATOR
Separator for a point list.- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemSeparator
protected java.lang.String getItemSeparator()
Return the separator between segments in the list.- Specified by:
getItemSeparator
in classAbstractSVGList
-
createSVGException
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
Create an SVGException when the checkItemType fails.- Returns:
- SVGException
-
initialize
public org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGPathSeg getItem(int index) throws org.w3c.dom.DOMException
- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPathSeg replaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGPathSeg removeItem(int index) throws org.w3c.dom.DOMException
- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGPathSegList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Description copied from class:AbstractSVGList
Creates anSVGItem
object that has the same values as those in the specified SVG object.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseException
Parse the 'd' attribute.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- 'd' attribute valuehandler
- : list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem)
Check if the item is an SVGPathSeg.- Specified by:
checkItemType
in classAbstractSVGList
-
createPathSegItem
protected SVGPathSegItem createPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
create an SVGItem representing this SVGPathSeg.
-
-