public class PlotMLParser extends PlotBoxMLParser
Modifier and Type | Field and Description |
---|---|
protected boolean |
_connected
The default connected state.
|
protected int |
_currentDataset
The current dataset number in a "dataset" element.
|
protected double |
_currentPointCount
A count within the current dataset, in case no x value is given.
|
_attributes, _currentCharData, _parser, _plot, PlotML_DTD_1
Modifier | Constructor and Description |
---|---|
protected |
PlotMLParser()
Protected constructor allows derived classes to set _plot
differently.
|
|
PlotMLParser(PlotInterface 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 |
startDocument()
Start a document.
|
void |
startElement(java.lang.String elementName)
Start an element.
|
_checkForNull, _currentExternalEntity, attribute, charData, endDocument, error, parse, parse, parse, resolveEntity, startExternalEntity
doctypeDecl, endExternalEntity, ignorableWhitespace, processingInstruction
protected boolean _connected
protected int _currentDataset
protected double _currentPointCount
public PlotMLParser(PlotInterface plot)
plot
- The plot object to which to apply the commands.protected PlotMLParser()
public void endElement(java.lang.String elementName) throws java.lang.Exception
endElement
in interface XmlHandler
endElement
in class PlotBoxMLParser
elementName
- The element type name.java.lang.Exception
- If thrown by the superclass or while calling
setConnected().XmlHandler.endElement(java.lang.String)
public void startDocument()
startDocument
in interface XmlHandler
startDocument
in class PlotBoxMLParser
XmlHandler.startDocument()
public void startElement(java.lang.String elementName) throws XmlException
startElement
in interface XmlHandler
startElement
in class PlotBoxMLParser
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
connected
- If true, connect to the previous point.element
- The name of the element.java.lang.Exception
- If there is a problem adding the point.