| 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 |
} |