Interface ISimpleReport

  • All Known Implementing Classes:
    CsvReport, HtmlReport

    public interface ISimpleReport
    A simple report interface.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Method Detail

      • getFileExtension

        String getFileExtension()
        Returns:
        the file extention.
      • newLine

        void newLine​(StringBuilder sb,
                     int n)
        Insert a newline in the report.
        Parameters:
        sb - the StringBuilder to write to.
        n - the number of newlines to add.
      • openReport

        void openReport​(StringBuilder sb,
                        String title)
        Open the report.
        Parameters:
        sb - the StringBuilder to write to.
        title - a title for the report.
      • openTable

        void openTable​(StringBuilder sb,
                       int widthPercentage)
        Open a table.
        Parameters:
        sb - the StringBuilder to write to.
        widthPercentage -
      • openTableRow

        void openTableRow​(StringBuilder sb)
        Open a row.
        Parameters:
        sb - the StringBuilder to write to.
        span - the vertical span of the row.
      • openTableCell

        void openTableCell​(StringBuilder sb,
                           String color,
                           String perc,
                           String colSpan,
                           String rowSpan)
        Open a table cell.
        Parameters:
        sb - the StringBuilder to write to.
        color - background color for the cell.
        perc - percentage of the cell for the width.
        colSpan - col span of the cell.
        rowSpan - row span of the cell.