Package ca.spatial.reportwriter
Class PeriodValueReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.PeriodValueReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
This class produces a report that shows periods along the
rows and specified values along the columns,
-
Field Summary
FieldsFields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodValueReport(String filename, String title, String units, AttributeStore as, String[] expressions, String[] labels, String reselectExpression, int[] periods, String htmlText, boolean percent)
PeriodValueReport(String filename, String title, String units, AttributeStore as, String pattern, String reselectExpression, int[] periods, String htmlText, boolean percent)
Create a PeriodValue report.PeriodValueReport(String filename, String title, String units, AttributeStore as, String pattern, String reselectExpression, int periods, String htmlText, boolean percent)
Deprecated. -
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.String[]
String[]
boolean
int[]
getStore()
String[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.getUnits()
void
setExpression(String reselectExpression)
void
setExpressions(String[] labels, String[] exprs)
void
setHTMLText(String text)
void
setPattern(String pattern)
void
setPercent(boolean percent)
void
setPeriods(int period)
void
setPeriods(int[] periods)
void
setStore(AttributeStore as)
void
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, getLength, 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
-
PeriodValueReport
public PeriodValueReport(String filename, String title, String units, AttributeStore as, String pattern, String reselectExpression, int[] periods, String htmlText, boolean percent)Create a PeriodValue report.- Parameters:
filename
- The name that the report will be saved to.title
- The title of the report.units
- The unit of measure of the values in the report.as
- The source data table.pattern
- The pattern of the column names to use. All data columns matching this pattern will be included in the report.reselectExpression
- A boolean expressin used to limit the number of source data records used to create this report.periods
- An array of periods of interest for this report.htmlText
- Additional text that can be used to document the report.percent
- A boolean used to indicate if the values should be shown in percentage format.
-
PeriodValueReport
-
PeriodValueReport
public PeriodValueReport(String filename, String title, String units, AttributeStore as, String pattern, String reselectExpression, int periods, String htmlText, boolean percent)Deprecated.Create a PeriodValue report.- Parameters:
filename
- The name that the report will be saved to.title
- The title of the report.units
- The unit of measure of the values in the report.as
- The source data table.pattern
- The pattern of the column names to use. All data columns matching this pattern will be included in the report.reselectExpression
- A boolean expressin used to limit the number of source data records used to create this report.htmlText
- Additional text that can be used to document the report.percent
- A boolean used to indicate if the values should be shown in percentage format.
-
-
Method Details
-
getUnits
-
setUnits
-
getStore
-
setStore
-
getPattern
-
setPattern
-
setExpressions
-
getExpressions
-
getLabels
-
getHTMLText
-
setHTMLText
-
getPercent
public boolean getPercent() -
setPercent
public void setPercent(boolean percent) -
getPeriods
public int[] getPeriods() -
setPeriods
public void setPeriods(int[] periods) -
setPeriods
public void setPeriods(int period) -
getExpression
-
setExpression
-
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.
-