Package org.jfree.data.xml
Class CategorySeriesHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jfree.data.xml.CategorySeriesHandler
- All Implemented Interfaces:
DatasetTags,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
A handler for reading a series for a category dataset.
-
Field Summary
Fields inherited from interface org.jfree.data.xml.DatasetTags
CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(Comparable key, Number value) Adds an item to the temporary storage for the series.voidendElement(String namespaceURI, String localName, String qName) The end of an element.voidsetSeriesKey(Comparable key) Sets the series key.voidstartElement(String namespaceURI, String localName, String qName, Attributes atts) The start of an element.Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
CategorySeriesHandler
Creates a new item handler.- Parameters:
root- the root handler.
-
-
Method Details
-
setSeriesKey
Sets the series key.- Parameters:
key- the key.
-
addItem
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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
namespaceURI- the namespace.localName- the element name.qName- the element name.atts- the attributes.- Throws:
SAXException- for errors.
-
endElement
The end of an element.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
namespaceURI- the namespace.localName- the element name.qName- the element name.
-