ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter2/Report.java
Revision: 1.1
Committed: Sat Feb 3 14:56:14 2001 UTC (24 years, 10 months ago) by pjm2
Branch: MAIN
Log Message:
A rewrite of the database reporting tools.  These reflect the new way in
which the database stores the original XML rather than parameter and value
pairs.

File Contents

# User Rev Content
1 pjm2 1.1 public class Report {
2    
3     public Report(String reportField, String friendlyName) throws NumberFormatException {
4     this(reportField, friendlyName, "0.0");
5     }
6    
7     public Report(String reportField, String friendlyName, String maxY) throws NumberFormatException {
8     _reportField = reportField;
9     _friendlyName = friendlyName;
10     _maxY = Double.parseDouble(maxY);
11     }
12    
13     public String getReportField() {
14     return _reportField;
15     }
16    
17     public String getFriendlyName() {
18     return _friendlyName;
19     }
20    
21     public double getMaxY() {
22     return _maxY;
23     }
24    
25     public boolean isScaled() {
26     return _maxY > 0;
27     }
28    
29     public void setPlotData(PlotData plotData) {
30     _plotData = plotData;
31     }
32    
33     public PlotData getPlotData() {
34     return _plotData;
35     }
36    
37     public void clearPlotData() {
38     _plotData = null;
39     }
40    
41     private String _reportField;
42     private String _friendlyName;
43     private double _maxY;
44     private PlotData _plotData;
45     }