jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.xml
Class JetWebPlotMLReader

java.lang.Object
  extended by cedar.jetweb.xml.JetWebXMLReader
      extended by cedar.jetweb.xml.JetWebPlotMLReader
All Implemented Interfaces:
JetWebPlotReader

public class JetWebPlotMLReader
extends JetWebXMLReader
implements JetWebPlotReader

Uses JDOM API to read a JetWeb XML data plot. Reads XML using a SAX parser. Outputs plot attributes and data.

Version:
$Date: 2005-11-23 21:44:23 +0000 (Wed, 23 Nov 2005) $ $Revision: 979 $
Author:
S Butterworth, UCL.

Field Summary
 
Fields inherited from class cedar.jetweb.xml.JetWebXMLReader
DEFAULT_CANONICAL, DEFAULT_DYNAMIC_VALIDATION, DEFAULT_LOAD_EXTERNAL_DTD, DEFAULT_NAMESPACES, DEFAULT_PARSER_NAME, DEFAULT_SCHEMA_FULL_CHECKING, DEFAULT_SCHEMA_VALIDATION, DEFAULT_VALIDATION, DYNAMIC_VALIDATION_FEATURE_ID, LOAD_EXTERNAL_DTD_FEATURE_ID, NAMESPACES_FEATURE_ID, SCHEMA_FULL_CHECKING_FEATURE_ID, SCHEMA_VALIDATION_FEATURE_ID, VALIDATION_FEATURE_ID
 
Constructor Summary
JetWebPlotMLReader(java.lang.String filename)
          constructor requires xml filename and, optionally, sax driver class
 
Method Summary
 void fillPlot(DataPlot plot)
           
 java.util.Enumeration<DataPoint> getDataPoints()
          get enumeration of data point objects: point[X] = x value.
 java.lang.String getTitle()
          get plot title
 java.lang.String getXLabel()
          get x axis label
 java.lang.String getYLabel()
          get y axis label
static void main(java.lang.String[] args)
          test main method args[0] : xml filename
 
Methods inherited from class cedar.jetweb.xml.JetWebXMLReader
getDocument, getFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetWebPlotMLReader

public JetWebPlotMLReader(java.lang.String filename)
                   throws JetWebXMLException
constructor requires xml filename and, optionally, sax driver class

Throws:
JetWebXMLException

Method Detail

main

public static void main(java.lang.String[] args)
test main method args[0] : xml filename


getTitle

public java.lang.String getTitle()
get plot title


getXLabel

public java.lang.String getXLabel()
get x axis label


getYLabel

public java.lang.String getYLabel()
get y axis label


getDataPoints

public java.util.Enumeration<DataPoint> getDataPoints()
get enumeration of data point objects: point[X] = x value. point[Y] = y value. point[YUP] = y error (up). point[YDOWN] = y error (down). point[BINWIDTH] = bin width point[CHI2] = pull (chi2) [not populated]

Specified by:
getDataPoints in interface JetWebPlotReader


fillPlot

public void fillPlot(DataPlot plot)
              throws JetWebException
Specified by:
fillPlot in interface JetWebPlotReader
Throws:
JetWebException