public abstract class AbstractSVGPathSegList extends AbstractSVGList implements SVGPathSegConstants
SVGPathSegList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGPathSegList.PathSegListBuilder |
class |
AbstractSVGPathSegList.SVGPathSegArcItem |
class |
AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem |
class |
AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem |
class |
AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem |
class |
AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem |
class |
AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem |
class |
AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem |
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 |
---|---|
SVGPathSeg |
appendItem(SVGPathSeg newItem) |
protected void |
checkItemType(java.lang.Object newItem)
Check if the item is an SVGPathSeg.
|
protected SVGPathSegItem |
createPathSegItem(SVGPathSeg pathSeg)
create an SVGItem representing this SVGPathSeg.
|
protected abstract 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.
|
SVGPathSeg |
getItem(int index) |
protected java.lang.String |
getItemSeparator()
Return the separator between segments in the list.
|
SVGPathSeg |
initialize(SVGPathSeg newItem) |
SVGPathSeg |
insertItemBefore(SVGPathSeg newItem,
int index) |
SVGPathSeg |
removeItem(int index) |
SVGPathSeg |
replaceItem(SVGPathSeg newItem,
int index) |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
public static final java.lang.String SVG_PATHSEG_LIST_SEPARATOR
protected AbstractSVGPathSegList()
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
public SVGPathSeg initialize(SVGPathSeg newItem) throws org.w3c.dom.DOMException, SVGException
org.w3c.dom.DOMException
SVGException
public SVGPathSeg getItem(int index) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, SVGException
org.w3c.dom.DOMException
SVGException
public SVGPathSeg replaceItem(SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, SVGException
org.w3c.dom.DOMException
SVGException
public SVGPathSeg removeItem(int index) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public SVGPathSeg appendItem(SVGPathSeg newItem) throws org.w3c.dom.DOMException, SVGException
org.w3c.dom.DOMException
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(SVGPathSeg pathSeg)
Copyright ? 2015 Apache Software Foundation. All Rights Reserved.