Class AbstractSVGLengthList.SVGLengthItem

java.lang.Object
org.apache.batik.anim.dom.AbstractSVGLength
org.apache.batik.anim.dom.AbstractSVGLengthList.SVGLengthItem
All Implemented Interfaces:
SVGItem, org.w3c.dom.svg.SVGLength
Enclosing class:
AbstractSVGLengthList

protected class AbstractSVGLengthList.SVGLengthItem extends AbstractSVGLength implements SVGItem
An SVGLength in the list.
  • Field Details

    • parentList

      protected AbstractSVGList parentList
      List the item belongs to.
  • Constructor Details

    • SVGLengthItem

      public SVGLengthItem(short type, float value, short direction)
      Creates a new SVGLengthItem.
  • Method Details

    • getAssociatedElement

      protected SVGOMElement getAssociatedElement()
      Returns the element this length is associated with.
      Specified by:
      getAssociatedElement in class AbstractSVGLength
    • setParent

      public void setParent(AbstractSVGList list)
      Assigns a parent list to this item.
      Specified by:
      setParent in interface SVGItem
      Parameters:
      list - The list the item belongs.
    • getParent

      public AbstractSVGList getParent()
      Returns the parent list of this item.
      Specified by:
      getParent in interface SVGItem
      Returns:
      list the item belongs to. This could be if the item belongs to no list.
    • reset

      protected void reset()
      Notifies the parent list that this item has changed.
      Overrides:
      reset in class AbstractSVGLength