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 of
SVGPathSegList.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsFields inherited from class AbstractSVGList
itemList, validFields inherited from interface 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGPathSegappendItem(org.w3c.dom.svg.SVGPathSeg newItem) protected voidcheckItemType(Object newItem) Check if the item is an SVGPathSeg.protected SVGPathSegItemcreatePathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg) create an SVGItem representing this SVGPathSeg.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create an SVGException when the checkItemType fails.protected SVGItemcreateSVGItem(Object newItem) Creates anSVGItemobject that has the same values as those in the specified SVG object.protected voiddoParse(String value, ListHandler handler) Parse the 'd' attribute.org.w3c.dom.svg.SVGPathSeggetItem(int index) protected StringReturn the separator between segments in the list.org.w3c.dom.svg.SVGPathSeginitialize(org.w3c.dom.svg.SVGPathSeg newItem) org.w3c.dom.svg.SVGPathSeginsertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index) org.w3c.dom.svg.SVGPathSegremoveItem(int index) org.w3c.dom.svg.SVGPathSegreplaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index) Methods inherited from class AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.svg.SVGPathSegList
clear, getNumberOfItems
-
Field Details
-
SVG_PATHSEG_LIST_SEPARATOR
-
-
Constructor Details
-
AbstractSVGPathSegList
protected AbstractSVGPathSegList()Creates a new SVGPathSegList.
-
-
Method Details
-
getItemSeparator
Return the separator between segments in the list.- Specified by:
getItemSeparatorin classAbstractSVGList
-
createSVGException
-
initialize
public org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException - Specified by:
initializein interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException - Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPathSeg replaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException - Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMException
-
appendItem
public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException - Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
Description copied from class:AbstractSVGListCreates anSVGItemobject that has the same values as those in the specified SVG object.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
Parse the 'd' attribute.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- 'd' attribute valuehandler- : list handler- Throws:
ParseException
-
checkItemType
Check if the item is an SVGPathSeg.- Specified by:
checkItemTypein classAbstractSVGList
-
createPathSegItem
create an SVGItem representing this SVGPathSeg.
-