public class SVGOMAnimatedPathData.AnimSVGPathSegList extends AbstractSVGPathSegList
SVGOMAnimatedPathData.BaseSVGPathSegList
implementation for the animated path data value.AbstractSVGPathSegList.PathSegListBuilder, AbstractSVGPathSegList.SVGPathSegArcItem, AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem, AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem, AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem, AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem, AbstractSVGPathSegList.SVGPathSegItem, AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem, AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem, AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
AbstractSVGList.ListBuilder
SVG_PATHSEG_LIST_SEPARATOR
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
Constructor and Description |
---|
SVGOMAnimatedPathData.AnimSVGPathSegList()
Creates a new AnimSVGPathSegList.
|
Modifier and Type | Method and Description |
---|---|
SVGPathSeg |
appendItem(SVGPathSeg newItem)
DOM: Implements
AbstractSVGPathSegList.appendItem(SVGPathSeg) . |
void |
clear()
DOM: Implements
AbstractSVGList.clear() . |
protected org.w3c.dom.DOMException |
createDOMException(short type,
java.lang.String key,
java.lang.Object[] args)
Create a DOMException.
|
protected SVGException |
createSVGException(short type,
java.lang.String key,
java.lang.Object[] args)
Create a SVGException.
|
SVGPathSeg |
getItem(int index)
DOM: Implements
AbstractSVGPathSegList.getItem(int) . |
int |
getNumberOfItems()
DOM: Implements
AbstractSVGList.getNumberOfItems() . |
protected java.lang.String |
getValueAsString()
Returns the value of the DOM attribute containing the point list.
|
SVGPathSeg |
initialize(SVGPathSeg newItem)
DOM: Implements
AbstractSVGPathSegList.initialize(SVGPathSeg) . |
SVGPathSeg |
insertItemBefore(SVGPathSeg newItem,
int index)
DOM: Implements
AbstractSVGPathSegList.insertItemBefore(SVGPathSeg, int) . |
protected AbstractSVGPathSegList.SVGPathSegItem |
newItem(short command,
float[] parameters,
int[] j)
Creates a new SVGPathSegItem from the given path command and array
of parameter values.
|
SVGPathSeg |
removeItem(int index)
DOM: Implements
AbstractSVGPathSegList.removeItem(int) . |
SVGPathSeg |
replaceItem(SVGPathSeg newItem,
int index)
DOM: Implements
AbstractSVGPathSegList.replaceItem(SVGPathSeg, int) . |
protected void |
resetAttribute()
Resets the value of the associated attribute.
|
protected void |
resetAttribute(SVGItem item)
Resets the value of the associated attribute.
|
protected void |
revalidate()
Initializes the list, if needed.
|
protected void |
setAnimatedValue(short[] commands,
float[] parameters)
Sets the animated value.
|
protected void |
setAttributeValue(java.lang.String value)
Sets the DOM attribute value containing the point list.
|
checkItemType, createPathSegItem, createSVGItem, doParse, getItemSeparator
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
public SVGOMAnimatedPathData.AnimSVGPathSegList()
protected org.w3c.dom.DOMException createDOMException(short type, java.lang.String key, java.lang.Object[] args)
createDOMException
in class AbstractSVGList
protected SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
createSVGException
in class AbstractSVGPathSegList
public int getNumberOfItems()
AbstractSVGList.getNumberOfItems()
.getNumberOfItems
in class AbstractSVGList
public SVGPathSeg getItem(int index) throws org.w3c.dom.DOMException
AbstractSVGPathSegList.getItem(int)
.getItem
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
protected java.lang.String getValueAsString()
getValueAsString
in class AbstractSVGList
protected void setAttributeValue(java.lang.String value)
setAttributeValue
in class AbstractSVGList
value
- the String representation of the list, or null
if the list contains no itemspublic void clear() throws org.w3c.dom.DOMException
AbstractSVGList.clear()
.clear
in class AbstractSVGList
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR:
Raised when the list cannot be modified.public SVGPathSeg initialize(SVGPathSeg newItem) throws org.w3c.dom.DOMException, SVGException
AbstractSVGPathSegList.initialize(SVGPathSeg)
.initialize
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
SVGException
public SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, SVGException
AbstractSVGPathSegList.insertItemBefore(SVGPathSeg, int)
.insertItemBefore
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
SVGException
public SVGPathSeg replaceItem(SVGPathSeg newItem, int index) throws org.w3c.dom.DOMException, SVGException
AbstractSVGPathSegList.replaceItem(SVGPathSeg, int)
.replaceItem
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
SVGException
public SVGPathSeg removeItem(int index) throws org.w3c.dom.DOMException
AbstractSVGPathSegList.removeItem(int)
.removeItem
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
public SVGPathSeg appendItem(SVGPathSeg newItem) throws org.w3c.dom.DOMException
AbstractSVGPathSegList.appendItem(SVGPathSeg)
.appendItem
in class AbstractSVGPathSegList
org.w3c.dom.DOMException
protected AbstractSVGPathSegList.SVGPathSegItem newItem(short command, float[] parameters, int[] j)
protected void setAnimatedValue(short[] commands, float[] parameters)
protected void resetAttribute()
resetAttribute
in class AbstractSVGList
protected void resetAttribute(SVGItem item)
resetAttribute
in class AbstractSVGList
protected void revalidate()
revalidate
in class AbstractSVGList
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.