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
SVGPathSegList implementation for the animated path data value.
  • Constructor Details

    • AnimSVGPathSegList

      public AnimSVGPathSegList()
      Creates a new AnimSVGPathSegList.
  • Method Details

    • 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 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