Class AbstractSVGPathSegList

java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGPathSegList
All Implemented Interfaces:
SVGPathSegConstants, org.w3c.dom.svg.SVGPathSegList
Direct Known Subclasses:
AbstractSVGNormPathSegList, SVGOMAnimatedPathData.AnimSVGPathSegList, SVGOMAnimatedPathData.BaseSVGPathSegList

public abstract class AbstractSVGPathSegList extends AbstractSVGList implements org.w3c.dom.svg.SVGPathSegList, SVGPathSegConstants
This class is the implementation of SVGPathSegList.
Version:
$Id: AbstractSVGPathSegList.java 1831636 2018-05-15 13:44:46Z ssteiner $
  • Field Details

    • SVG_PATHSEG_LIST_SEPARATOR

      public static final String SVG_PATHSEG_LIST_SEPARATOR
      Separator for a point list.
      See Also:
  • Constructor Details

    • AbstractSVGPathSegList

      protected AbstractSVGPathSegList()
      Creates a new SVGPathSegList.
  • Method Details

    • getItemSeparator

      protected String getItemSeparator()
      Return the separator between segments in the list.
      Specified by:
      getItemSeparator in class AbstractSVGList
    • createSVGException

      protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, String key, Object[] args)
      Create an SVGException when the checkItemType fails.
      Returns:
      SVGException
    • initialize

      public org.w3c.dom.svg.SVGPathSeg initialize(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException
      Specified by:
      initialize in interface org.w3c.dom.svg.SVGPathSegList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • getItem

      public org.w3c.dom.svg.SVGPathSeg getItem(int index) throws DOMException
      Specified by:
      getItem in interface org.w3c.dom.svg.SVGPathSegList
      Throws:
      DOMException
    • insertItemBefore

      public org.w3c.dom.svg.SVGPathSeg insertItemBefore(org.w3c.dom.svg.SVGPathSeg newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
      Specified by:
      insertItemBefore in interface org.w3c.dom.svg.SVGPathSegList
      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
      Specified by:
      replaceItem in interface org.w3c.dom.svg.SVGPathSegList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • removeItem

      public org.w3c.dom.svg.SVGPathSeg removeItem(int index) throws DOMException
      Specified by:
      removeItem in interface org.w3c.dom.svg.SVGPathSegList
      Throws:
      DOMException
    • appendItem

      public org.w3c.dom.svg.SVGPathSeg appendItem(org.w3c.dom.svg.SVGPathSeg newItem) throws DOMException, org.w3c.dom.svg.SVGException
      Specified by:
      appendItem in interface org.w3c.dom.svg.SVGPathSegList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • createSVGItem

      protected SVGItem createSVGItem(Object newItem)
      Description copied from class: AbstractSVGList
      Creates an SVGItem object that has the same values as those in the specified SVG object.
      Specified by:
      createSVGItem in class AbstractSVGList
      Parameters:
      newItem - the SVG object
      Returns:
      the newly created SVGItem object
    • doParse

      protected void doParse(String value, ListHandler handler) throws ParseException
      Parse the 'd' attribute.
      Specified by:
      doParse in class AbstractSVGList
      Parameters:
      value - 'd' attribute value
      handler - : list handler
      Throws:
      ParseException
    • checkItemType

      protected void checkItemType(Object newItem)
      Check if the item is an SVGPathSeg.
      Specified by:
      checkItemType in class AbstractSVGList
    • createPathSegItem

      protected SVGPathSegItem createPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
      create an SVGItem representing this SVGPathSeg.