Package ca.spatial.reportwriter
Class TreeReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.TreeReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
This class creates a hierarchical list of reports (reports sorted
within folders) that is used by the 'Navigator' feature of the
Patchworks web based reports.
This report is not intended to be used by applications programmers.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spatial.reportwriter.Report
Report.GetNodesAt
-
Field Summary
FieldsFields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionTreeReport(String filename, String title, ReportWriter rw)
Create a new instance of the TreeReport. -
Method Summary
Modifier and TypeMethodDescriptionca.spatial.reportwriter.Report.DataCache
doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)
The method used by the report writer to format the requested report.long
Return the length of this report, in bytes.getRw()
String[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.Methods inherited from class ca.spatial.reportwriter.Report
addDefaultParam, chartImg, compareTo, csvLink, doesAnyTypes, doesCSV, doesGIF, doesHTML, doesPNG, doesType, encodeFileURL, encodeURL, endMainContent, escapeRegexChars, footer, formatColumnHeadings, formatColumnHeadings, getAdditionalFiles, getAttributeStore, getBasepart, getBasepart, getDefaultFilename, getDisplayFormat, getExtension, getExtension, getFilename, getFolderpart, getFolderpart, getNamepart, getNamepart, getPathToRoot, getReportFor, getTitle, header, htmlText, indexLink, interpolateParams, isDhandler, isIndexed, isSelected, parentIndex, patternToRegex, setAttributeStore, setDefaultParams, setDisplayFormat, setIndexed, setSelected, setTitle, toString, uniqueLabels
-
Field Details
-
TYPES
-
-
Constructor Details
-
TreeReport
Create a new instance of the TreeReport.- Parameters:
filename
- The base filename part (without any extension).title
- A title to be given to the report. The title is ignored since it will not show up in the report index.rw
- TheReportWriter
object that this TreeReport is to be embedded within.
-
-
Method Details
-
getLength
Description copied from class:Report
Return the length of this report, in bytes. In most cases the length of the report is unknown because it is generated on the fly. By default we will return a -1 to indicate an unknown length. Specialized classes can over ride this. -
getRw
-
doReport
public ca.spatial.reportwriter.Report.DataCache doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)Description copied from class:Report
The method used by the report writer to format the requested report. This method is implemented in every custom report. Application programs generally do not need to call this method, but instead use the report writer methods to obtain reports. -
getTypes
Description copied from class:Report
An accessor function to retrieve the list of report types supported by this report. See the documentation for the TYPES variable for the list of sub-types.
-