org.apache.batik.dom.svg
Class SVGOMAnimatedPathData.AnimSVGPathSegList

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGList
      extended by org.apache.batik.dom.svg.AbstractSVGPathSegList
          extended by org.apache.batik.dom.svg.SVGOMAnimatedPathData.AnimSVGPathSegList
All Implemented Interfaces:
SVGPathSegConstants, org.w3c.dom.svg.SVGPathSegList
Enclosing class:
SVGOMAnimatedPathData

public class SVGOMAnimatedPathData.AnimSVGPathSegList
extends AbstractSVGPathSegList

SVGPathSegList implementation 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.SVGPathSegItem, AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem, AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem, AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
 
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGList
AbstractSVGList.ListBuilder
 
Field Summary
 
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
SVGOMAnimatedPathData.AnimSVGPathSegList()
          Creates a new AnimSVGPathSegList.
 
Method Summary
 org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem)
          DOM: Implements SVGPathSegList.appendItem(SVGPathSeg).
 void clear()
          DOM: Implements SVGPathSegList.clear().
protected  DOMException createDOMException(short type, String key, Object[] args)
          Create a DOMException.
protected  org.w3c.dom.svg.SVGException createSVGException(short type, String key, Object[] args)
          Create a SVGException.
 org.w3c.dom.svg.SVGPathSeg getItem(int index)
          DOM: Implements SVGPathSegList.getItem(int).
 int getNumberOfItems()
          DOM: Implements SVGPathSegList.getNumberOfItems().
protected  String getValueAsString()
          Returns the value of the DOM attribute containing the point list.
 org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem)
          DOM: Implements SVGPathSegList.initialize(SVGPathSeg).
 org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index)
          DOM: Implements SVGPathSegList.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.
 org.w3c.dom.svg.SVGPathSeg removeItem(int index)
          DOM: Implements SVGPathSegList.removeItem(int).
 org.w3c.dom.svg.SVGPathSeg replaceItem(org.w3c.dom.svg.SVGPathSeg newItem, int index)
          DOM: Implements SVGPathSegList.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(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGOMAnimatedPathData.AnimSVGPathSegList

public SVGOMAnimatedPathData.AnimSVGPathSegList()
Creates a new AnimSVGPathSegList.

Method Detail

createDOMException

protected DOMException createDOMException(short type,
                                          String key,
                                          Object[] args)
Create a DOMException.

Specified by:
createDOMException in class AbstractSVGList

createSVGException

protected org.w3c.dom.svg.SVGException createSVGException(short type,
                                                          String key,
                                                          Object[] args)
Create a SVGException.

Specified by:
createSVGException in class AbstractSVGPathSegList
Returns:
SVGException

getNumberOfItems

public int getNumberOfItems()
DOM: Implements SVGPathSegList.getNumberOfItems().

Specified by:
getNumberOfItems in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
getNumberOfItems in class AbstractSVGList

getItem

public org.w3c.dom.svg.SVGPathSeg getItem(int index)
                                   throws DOMException
DOM: Implements SVGPathSegList.getItem(int).

Specified by:
getItem in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
getItem in class AbstractSVGPathSegList
Throws:
DOMException

getValueAsString

protected String getValueAsString()
Returns the value of the DOM attribute containing the point list.

Specified by:
getValueAsString in class AbstractSVGList

setAttributeValue

protected void setAttributeValue(String value)
Sets the DOM attribute value containing the point list.

Specified by:
setAttributeValue in class AbstractSVGList
Parameters:
value - the String representation of the list, or null if the list contains no items

clear

public void clear()
           throws DOMException
DOM: Implements SVGPathSegList.clear().

Specified by:
clear in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
clear in class AbstractSVGList
Throws:
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 DOMException,
                                             org.w3c.dom.svg.SVGException
DOM: Implements SVGPathSegList.initialize(SVGPathSeg).

Specified by:
initialize in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
initialize in class AbstractSVGPathSegList
Throws:
DOMException
org.w3c.dom.svg.SVGException

insertItemBefore

public org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem,
                                                   int index)
                                            throws DOMException,
                                                   org.w3c.dom.svg.SVGException
DOM: Implements SVGPathSegList.insertItemBefore(SVGPathSeg, int).

Specified by:
insertItemBefore in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
insertItemBefore in class AbstractSVGPathSegList
Throws:
DOMException
org.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
DOM: Implements SVGPathSegList.replaceItem(SVGPathSeg, int).

Specified by:
replaceItem in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
replaceItem in class AbstractSVGPathSegList
Throws:
DOMException
org.w3c.dom.svg.SVGException

removeItem

public org.w3c.dom.svg.SVGPathSeg removeItem(int index)
                                      throws DOMException
DOM: Implements SVGPathSegList.removeItem(int).

Specified by:
removeItem in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
removeItem in class AbstractSVGPathSegList
Throws:
DOMException

appendItem

public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem)
                                      throws DOMException
DOM: Implements SVGPathSegList.appendItem(SVGPathSeg).

Specified by:
appendItem in interface org.w3c.dom.svg.SVGPathSegList
Overrides:
appendItem in class AbstractSVGPathSegList
Throws:
DOMException

newItem

protected AbstractSVGPathSegList.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:
resetAttribute in class AbstractSVGList

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:
resetAttribute in class AbstractSVGList

revalidate

protected void revalidate()
Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.

Overrides:
revalidate in class AbstractSVGList


Copyright © 2008 Apache Software Foundation. All Rights Reserved.