Package noaa.coastwatch.util
Interface ReportFormatter
- All Known Implementing Classes:
HTMLReportFormatter,TextReportFormatter
public interface ReportFormatter
The
ReportFormatter class is an interface for formatting
reports of text data.- Since:
- 3.7.1
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptionvoidend()Ends the report.voidFormats a single line.voidFormats a map of keys to values as a table with two columns.voidFormats a paragraph.voidFormats a section header.voidstart()Starts the report.voidFormats a table.voidFormats a table with multiple sections.voidFormats a report title.
-
Method Details
-
start
void start()Starts the report. -
title
Formats a report title.- Parameters:
text- the title of the report.
-
section
Formats a section header.- Parameters:
title- the title of the section.
-
paragraph
Formats a paragraph.- Parameters:
text- the text of the paragraph.
-
line
Formats a single line.- Parameters:
text- the text of the line.
-
table
Formats a table.- Parameters:
columns- the column names.rows- the list of row data values.
-
table
Formats a table with multiple sections.- Parameters:
columns- the column names.rowMap- the map of section names to row data values.
-
map
Formats a map of keys to values as a table with two columns.- Parameters:
map- the map of keys to values.
-
end
void end()Ends the report.
-