public class HistogramMLParser extends PlotMLParser
_connected, _currentDataset, _currentPointCount
_attributes, _currentCharData, _parser, _plot, PlotML_DTD_1
Constructor and Description |
---|
HistogramMLParser(Histogram plot)
Construct an parser to parse commands for the specified plot object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addPoint(boolean connected,
java.lang.String element)
Add a point based on the current attributes.
|
void |
endElement(java.lang.String elementName)
End an element.
|
void |
startElement(java.lang.String elementName)
Start an element.
|
startDocument
_checkForNull, _currentExternalEntity, attribute, charData, endDocument, error, parse, parse, parse, resolveEntity, startExternalEntity
doctypeDecl, endExternalEntity, ignorableWhitespace, processingInstruction
public HistogramMLParser(Histogram plot)
plot
- The plot object to which to apply the commands.public void endElement(java.lang.String elementName) throws java.lang.Exception
endElement
in interface XmlHandler
endElement
in class PlotMLParser
elementName
- The element type name.java.lang.Exception
- If thrown by the base class.XmlHandler.endElement(java.lang.String)
public void startElement(java.lang.String elementName) throws XmlException
startElement
in interface XmlHandler
startElement
in class PlotMLParser
elementName
- The element type name.XmlException
- If the element produces an error
in constructing the model.XmlHandler.startElement(java.lang.String)
protected void _addPoint(boolean connected, java.lang.String element) throws java.lang.Exception
_addPoint
in class PlotMLParser
connected
- Ignored.element
- The name of the element.java.lang.Exception
- if thrown whil parsing the y attribute.