public abstract class AbstractSVGPathSegList extends AbstractSVGList implements org.w3c.dom.svg.SVGPathSegList, SVGPathSegConstants
SVGPathSegList
.Modifier and Type | Class and 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 |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SVG_PATHSEG_LIST_SEPARATOR
Separator for a point list.
|
itemList, valid
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractSVGPathSegList()
Creates a new SVGPathSegList.
|
Modifier and Type | Method and 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 an
SVGItem 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) |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getNumberOfItems
public static final java.lang.String SVG_PATHSEG_LIST_SEPARATOR
protected AbstractSVGPathSegList()
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
public org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException
initialize
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGPathSeg getItem(int index) throws DOMException
getItem
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
public org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
insertItemBefore
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGPathSeg replaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
replaceItem
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGPathSeg removeItem(int index) throws DOMException
removeItem
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException
appendItem
in interface org.w3c.dom.svg.SVGPathSegList
DOMException
org.w3c.dom.svg.SVGException
protected SVGItem createSVGItem(java.lang.Object newItem)
AbstractSVGList
SVGItem
object that has the same values as those
in the specified SVG object.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- 'd' attribute valuehandler
- : list handlerParseException
protected void checkItemType(java.lang.Object newItem)
checkItemType
in class AbstractSVGList
protected SVGPathSegItem createPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.