jas.hist
Class XMLHistBuilder

java.lang.Object
  |
  +--jas.hist.XMLHistBuilder

public class XMLHistBuilder
extends java.lang.Object

Create a Plot from an XML file. Reads an XML file describing a Plot and creates or modifies a plot to correspond to the data specified in the XML file.


Constructor Summary
XMLHistBuilder(org.w3c.dom.Document dom)
          Create an XMLHistBuilder from a pre-parsed Document Object Model
XMLHistBuilder(java.io.Reader xmlFile, java.lang.String fileName)
          Create an XMLHistBuilder by reading an XML file
 
Method Summary
 PlotPanel getPlotPage()
          Get a plot page.
 JASHist getSoloPlot()
          Create a plot using the parsed XML.
 JASHist modifyPlot(JASHist theHist)
          Modify an existing plot using the parsed XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHistBuilder

public XMLHistBuilder(java.io.Reader xmlFile,
                      java.lang.String fileName)
               throws JASDOMParser.XMLException,
                      XMLNodeTraverser.BadXMLException
Create an XMLHistBuilder by reading an XML file
Parameters:
xmlFile - The xmlFile to read.
fileName - The file name (for error messages)

XMLHistBuilder

public XMLHistBuilder(org.w3c.dom.Document dom)
               throws XMLNodeTraverser.BadXMLException
Create an XMLHistBuilder from a pre-parsed Document Object Model
Method Detail

getSoloPlot

public JASHist getSoloPlot()
                    throws XMLNodeTraverser.BadXMLException
Create a plot using the parsed XML.

modifyPlot

public JASHist modifyPlot(JASHist theHist)
                   throws XMLNodeTraverser.BadXMLException
Modify an existing plot using the parsed XML.

getPlotPage

public PlotPanel getPlotPage()
Get a plot page. Not implemented yet.