public class PieDatasetHandler extends RootHandler implements DatasetTags
PieDataset from an XML file.CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG| Constructor and Description |
|---|
PieDatasetHandler()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Comparable key,
Number value)
Adds an item to the dataset under construction.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
The end of an element.
|
PieDataset |
getDataset()
Returns the dataset.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Starts an element.
|
characters, getCurrentHandler, getSubHandlers, popSubHandler, pushSubHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic PieDataset getDataset()
public void addItem(Comparable key, Number value)
key - the key.value - the value.public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.atts - the element attributes.SAXException - for errors.public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.SAXException - for errors.Copyright © 2001–2014 JFree.org. All rights reserved.