Module platform

Class CategorySeriesHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jfree.data.xml.CategorySeriesHandler
All Implemented Interfaces:
DatasetTags, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class CategorySeriesHandler extends DefaultHandler implements DatasetTags
A handler for reading a series for a category dataset.
  • Constructor Details

    • CategorySeriesHandler

      public CategorySeriesHandler(RootHandler root)
      Creates a new item handler.
      Parameters:
      root - the root handler.
  • Method Details

    • setSeriesKey

      public void setSeriesKey(Comparable key)
      Sets the series key.
      Parameters:
      key - the key.
    • addItem

      public void addItem(Comparable key, Number value)
      Adds an item to the temporary storage for the series.
      Parameters:
      key - the key.
      value - the value.
    • startElement

      public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
      The start of an element.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
      Parameters:
      namespaceURI - the namespace.
      localName - the element name.
      qName - the element name.
      atts - the attributes.
      Throws:
      SAXException - for errors.
    • endElement

      public void endElement(String namespaceURI, String localName, String qName)
      The end of an element.
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class DefaultHandler
      Parameters:
      namespaceURI - the namespace.
      localName - the element name.
      qName - the element name.