Class SVGNumberItem

java.lang.Object
org.apache.batik.dom.svg.AbstractSVGNumber
org.apache.batik.dom.svg.SVGNumberItem
All Implemented Interfaces:
SVGItem, org.w3c.dom.svg.SVGNumber

public class SVGNumberItem extends AbstractSVGNumber implements SVGItem
Representation of the item SVGNumber.
  • Field Details

    • parentList

      protected AbstractSVGList parentList
      The SVGNumberList this item belongs to.
  • Constructor Details

    • SVGNumberItem

      public SVGNumberItem(float value)
      Creates a new SVGNumberItem.
  • Method Details

    • getValueAsString

      public String getValueAsString()
      Returns a String representation of the number.
      Specified by:
      getValueAsString in interface SVGItem
      Returns:
      textual representation of the item to be inserted in the attribute value representing the list.
    • setParent

      public void setParent(AbstractSVGList list)
      Associates this item to the given SVGNumberList.
      Specified by:
      setParent in interface SVGItem
      Parameters:
      list - list the item belongs to.
    • getParent

      public AbstractSVGList getParent()
      Returns the list the item belongs to.
      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 SVGNumberList that this item's value has changed.