Package org.apache.batik.anim.dom
Class SVGOMAnimatedPathData.AnimSVGPathSegList
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGList
-
- org.apache.batik.dom.svg.AbstractSVGPathSegList
-
- org.apache.batik.anim.dom.SVGOMAnimatedPathData.AnimSVGPathSegList
-
- All Implemented Interfaces:
SVGPathSegConstants,org.w3c.dom.svg.SVGPathSegList
- Enclosing class:
- SVGOMAnimatedPathData
public class SVGOMAnimatedPathData.AnimSVGPathSegList extends AbstractSVGPathSegList
SVGPathSegListimplementation for the animated path data value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGPathSegList
AbstractSVGPathSegList.PathSegListBuilder, AbstractSVGPathSegList.SVGPathSegArcItem, AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem, AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem, AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem, AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem, AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem, AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem, AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
-
-
Field Summary
Fields Modifier and Type Field Description private int[]parameterIndexPass by reference integer for use by newItem.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGPathSegList
SVG_PATHSEG_LIST_SEPARATOR
-
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 Constructor Description AnimSVGPathSegList()Creates a new AnimSVGPathSegList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGPathSegappendItem(org.w3c.dom.svg.SVGPathSeg newItem)DOM: ImplementsSVGPathSegList.appendItem(SVGPathSeg).voidclear()DOM: ImplementsSVGPathSegList.clear().protected org.w3c.dom.DOMExceptioncreateDOMException(short type, java.lang.String key, java.lang.Object[] args)Create a DOMException.protected org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, java.lang.String key, java.lang.Object[] args)Create a SVGException.org.w3c.dom.svg.SVGPathSeggetItem(int index)DOM: ImplementsSVGPathSegList.getItem(int).intgetNumberOfItems()DOM: ImplementsSVGPathSegList.getNumberOfItems().protected java.lang.StringgetValueAsString()Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGPathSeginitialize(org.w3c.dom.svg.SVGPathSeg newItem)DOM: ImplementsSVGPathSegList.initialize(SVGPathSeg).org.w3c.dom.svg.SVGPathSeginsertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index)DOM: ImplementsSVGPathSegList.insertItemBefore(SVGPathSeg, int).protected SVGPathSegItemnewItem(short command, float[] parameters, int[] j)Creates a new SVGPathSegItem from the given path command and array of parameter values.org.w3c.dom.svg.SVGPathSegremoveItem(int index)DOM: ImplementsSVGPathSegList.removeItem(int).org.w3c.dom.svg.SVGPathSegreplaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index)DOM: ImplementsSVGPathSegList.replaceItem(SVGPathSeg, int).protected voidresetAttribute()Resets the value of the associated attribute.protected voidresetAttribute(SVGItem item)Resets the value of the associated attribute.protected voidrevalidate()Initializes the list, if needed.protected voidsetAnimatedValue(short[] commands, float[] parameters)Sets the animated value.protected voidsetAttributeValue(java.lang.String value)Sets the DOM attribute value containing the point list.-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGPathSegList
checkItemType, createPathSegItem, createSVGItem, doParse, getItemSeparator
-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
-
-
-
-
Method Detail
-
createDOMException
protected org.w3c.dom.DOMException createDOMException(short type, java.lang.String key, java.lang.Object[] args)Create a DOMException.- Specified by:
createDOMExceptionin classAbstractSVGList
-
createSVGException
protected org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)Create a SVGException.- Specified by:
createSVGExceptionin classAbstractSVGPathSegList- Returns:
- SVGException
-
getNumberOfItems
public int getNumberOfItems()
DOM: ImplementsSVGPathSegList.getNumberOfItems().- Specified by:
getNumberOfItemsin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
getNumberOfItemsin classAbstractSVGList
-
getItem
public org.w3c.dom.svg.SVGPathSeg getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPathSegList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
getItemin classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMException
-
getValueAsString
protected java.lang.String getValueAsString()
Returns the value of the DOM attribute containing the point list.- Specified by:
getValueAsStringin classAbstractSVGList
-
setAttributeValue
protected void setAttributeValue(java.lang.String value)
Sets the DOM attribute value containing the point list.- Specified by:
setAttributeValuein classAbstractSVGList- Parameters:
value- the String representation of the list, or null if the list contains no items
-
clear
public void clear() throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPathSegList.clear().- Specified by:
clearin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
clearin classAbstractSVGList- Throws:
org.w3c.dom.DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
-
initialize
public org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPathSegList.initialize(SVGPathSeg).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
initializein classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
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.SVGExceptionDOM: ImplementsSVGPathSegList.insertItemBefore(SVGPathSeg, int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
insertItemBeforein classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMExceptionorg.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.SVGExceptionDOM: ImplementsSVGPathSegList.replaceItem(SVGPathSeg, int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
replaceItemin classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGPathSeg removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPathSegList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
removeItemin classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPathSegList.appendItem(SVGPathSeg).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGPathSegList- Overrides:
appendItemin classAbstractSVGPathSegList- Throws:
org.w3c.dom.DOMException
-
newItem
protected SVGPathSegItem newItem(short command, float[] parameters, int[] j)
Creates a new SVGPathSegItem from the given path command and array of parameter values.
-
setAnimatedValue
protected void setAnimatedValue(short[] commands, float[] parameters)Sets the animated value.
-
resetAttribute
protected void resetAttribute()
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.- Overrides:
resetAttributein classAbstractSVGList
-
resetAttribute
protected void resetAttribute(SVGItem item)
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.- Overrides:
resetAttributein classAbstractSVGList
-
revalidate
protected void revalidate()
Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.- Overrides:
revalidatein classAbstractSVGList
-
-