| 5 |
|
|
| 6 |
|
|
| 7 |
|
/** |
| 8 |
< |
* Connects to the database to produce reports. |
| 8 |
> |
* Produces an SHTML document. |
| 9 |
|
* |
| 10 |
|
* @author $Author$ |
| 11 |
|
* @version $Id$ |
| 23 |
|
|
| 24 |
|
//---CONSTRUCTORS--- |
| 25 |
|
|
| 26 |
< |
public SHTMLMaker(String metaDescription, String metaKeywords, String title, String graphFile, int width, int height, PlotData pd){ |
| 26 |
> |
public SHTMLMaker(String metaDescription, String metaKeywords, String title, String graphFile, int width, int height, PlotData pd, int type, long startDate, long endDate){ |
| 27 |
|
|
| 28 |
|
_metaDescription = metaDescription; |
| 29 |
|
_metaKeywords = metaKeywords; |
| 32 |
|
_width = width; |
| 33 |
|
_height = height; |
| 34 |
|
_pd = pd; |
| 35 |
+ |
_type = type; |
| 36 |
+ |
_startDate = startDate; |
| 37 |
+ |
_endDate = endDate; |
| 38 |
|
|
| 39 |
< |
} |
| 39 |
> |
} |
| 40 |
|
|
| 41 |
|
public void writePage(String filename) throws IOException{ |
| 42 |
|
|
| 58 |
|
|
| 59 |
|
IscreamLayout.printTitle(bw, _title); |
| 60 |
|
|
| 61 |
< |
IscreamLayout.printGraph(bw, _graphFile, _width, _height); |
| 61 |
> |
IscreamLayout.printGraph(bw, _graphFile, _width, _height, _type, _startDate, _endDate); |
| 62 |
|
|
| 63 |
|
IscreamLayout.printTable(bw, _pd); |
| 64 |
|
|
| 67 |
|
bw.flush(); |
| 68 |
|
bw.close(); |
| 69 |
|
|
| 70 |
< |
System.out.println(" - Written SHTML page"); |
| 70 |
> |
System.out.println(" - Written SHTML page"); |
| 71 |
|
|
| 72 |
|
} |
| 73 |
|
|
| 97 |
|
private int _width; |
| 98 |
|
private int _height; |
| 99 |
|
private PlotData _pd; |
| 100 |
+ |
private int _type; |
| 101 |
+ |
private long _startDate; |
| 102 |
+ |
private long _endDate; |
| 103 |
|
|
| 104 |
|
//---STATIC ATTRIBUTES--- |
| 105 |
|
|