org.jfree.data.xml

Class CategorySeriesHandler

Implemented Interfaces:
DatasetTags

public class CategorySeriesHandler
extends DefaultHandler
implements DatasetTags

A handler for reading a series for a category dataset.

Fields inherited from interface org.jfree.data.xml.DatasetTags

CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG

Constructor Summary

CategorySeriesHandler(RootHandler root)
Creates a new item handler.

Method Summary

void
addItem(Comparable key, Number value)
Adds an item to the temporary storage for the series.
void
endElement(String namespaceURI, String localName, String qName)
The end of an element.
void
setSeriesKey(Comparable key)
Sets the series key.
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.

Constructor Details

CategorySeriesHandler

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

Method Details

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.

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
The end of an element.
Parameters:
namespaceURI - the namespace.
localName - the element name.
qName - the element name.

setSeriesKey

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

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
            throws SAXException
The start of an element.
Parameters:
namespaceURI - the namespace.
localName - the element name.
qName - the element name.
atts - the attributes.