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 TypeMethodDescriptionvoid
end()
Ends the report.void
Formats a single line.void
Formats a map of keys to values as a table with two columns.void
Formats a paragraph.void
Formats a section header.void
start()
Starts the report.void
Formats a table.void
Formats a table with multiple sections.void
Formats 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.
-