Class AbstractSVGLengthList

java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.anim.dom.AbstractSVGLengthList
All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
Direct Known Subclasses:
SVGOMAnimatedLengthList.AnimSVGLengthList, SVGOMAnimatedLengthList.BaseSVGLengthList

public abstract class AbstractSVGLengthList extends AbstractSVGList implements org.w3c.dom.svg.SVGLengthList
This class is the implementation of SVGLengthList.
  • Field Details

    • direction

      protected short direction
      This length list's direction.
    • SVG_LENGTH_LIST_SEPARATOR

      public static final String SVG_LENGTH_LIST_SEPARATOR
      Separator for a length list.
      See Also:
  • Constructor Details

    • AbstractSVGLengthList

      protected AbstractSVGLengthList(short direction)
      Creates a new SVGLengthList.
  • Method Details

    • getItemSeparator

      protected String getItemSeparator()
      Return the separator between values 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
    • getElement

      protected abstract Element getElement()
      Returns the element owning this SVGLengthList.
    • initialize

      public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGLengthList.initialize(SVGLength).
      Specified by:
      initialize in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • getItem

      public org.w3c.dom.svg.SVGLength getItem(int index) throws DOMException
      DOM: Implements SVGLengthList.getItem(int).
      Specified by:
      getItem in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
    • insertItemBefore

      public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGLengthList.insertItemBefore(SVGLength,int).
      Specified by:
      insertItemBefore in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • replaceItem

      public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGLengthList.replaceItem(SVGLength,int).
      Specified by:
      replaceItem in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • removeItem

      public org.w3c.dom.svg.SVGLength removeItem(int index) throws DOMException
      DOM: Implements SVGLengthList.removeItem(int).
      Specified by:
      removeItem in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
    • appendItem

      public org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGLengthList.appendItem(SVGLength).
      Specified by:
      appendItem in interface org.w3c.dom.svg.SVGLengthList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • createSVGItem

      protected SVGItem createSVGItem(Object newItem)
      Creates a new SVGItem object from the given SVGLength.
      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
      Parses the attribute associated with this SVGLengthList.
      Specified by:
      doParse in class AbstractSVGList
      Parameters:
      value - attribute value
      handler - length list handler
      Throws:
      ParseException
    • checkItemType

      protected void checkItemType(Object newItem) throws org.w3c.dom.svg.SVGException
      Asserts that the given item is an SVGLengthList.
      Specified by:
      checkItemType in class AbstractSVGList
      Throws:
      org.w3c.dom.svg.SVGException