Class SVGOMAnimatedPoints.AnimSVGPointList

All Implemented Interfaces:
org.w3c.dom.svg.SVGPointList
Enclosing class:
SVGOMAnimatedPoints

protected class SVGOMAnimatedPoints.AnimSVGPointList extends AbstractSVGPointList
SVGPointList implementation for the animated point list value.
  • Constructor Details

    • AnimSVGPointList

      public AnimSVGPointList()
      Creates a new AnimSVGPointList.
  • 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 AbstractSVGPointList
      Returns:
      SVGException
    • getNumberOfItems

      public int getNumberOfItems()
      DOM: Implements SVGPointList.getNumberOfItems().
      Specified by:
      getNumberOfItems in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      getNumberOfItems in class AbstractSVGList
    • getItem

      public org.w3c.dom.svg.SVGPoint getItem(int index) throws DOMException
      DOM: Implements SVGPointList.getItem(int).
      Specified by:
      getItem in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      getItem in class AbstractSVGPointList
      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 SVGPointList.clear().
      Specified by:
      clear in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      clear in class AbstractSVGList
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    • initialize

      public org.w3c.dom.svg.SVGPoint initialize(org.w3c.dom.svg.SVGPoint newItem) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGPointList.initialize(SVGPoint).
      Specified by:
      initialize in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      initialize in class AbstractSVGPointList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • insertItemBefore

      public org.w3c.dom.svg.SVGPoint insertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGPointList.insertItemBefore(SVGPoint, int).
      Specified by:
      insertItemBefore in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      insertItemBefore in class AbstractSVGPointList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • replaceItem

      public org.w3c.dom.svg.SVGPoint replaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
      DOM: Implements SVGPointList.replaceItem(SVGPoint, int).
      Specified by:
      replaceItem in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      replaceItem in class AbstractSVGPointList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • removeItem

      public org.w3c.dom.svg.SVGPoint removeItem(int index) throws DOMException
      DOM: Implements SVGPointList.removeItem(int).
      Specified by:
      removeItem in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      removeItem in class AbstractSVGPointList
      Throws:
      DOMException
    • appendItem

      public org.w3c.dom.svg.SVGPoint appendItem(org.w3c.dom.svg.SVGPoint newItem) throws DOMException
      DOM: Implements SVGPointList.appendItem(SVGPoint).
      Specified by:
      appendItem in interface org.w3c.dom.svg.SVGPointList
      Overrides:
      appendItem in class AbstractSVGPointList
      Throws:
      DOMException
    • setAnimatedValue

      protected void setAnimatedValue(float[] pts)
      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