Interface AuthorTableCellSepProvider

    • Method Detail

      • getColSep

        boolean getColSep​(AuthorElement cellElement,
                          int columnIndex)
        Checks if a separator should be placed at the cell right. Note that if the cell is the last from its row, the separator is not painted even if this method returns true.
        Parameters:
        cellElement - The node that represents a table cell in CSS.
        columnIndex - The index of the column, used to identify the colspec associated to the cell. The colspec can give information about the colsep. 1 based.
        Returns:
        true if a separator should be placed at its right, false otherwise.
      • getRowSep

        boolean getRowSep​(AuthorElement cellElement,
                          int columnIndex)
        Checks if a separator should be placed at the cell bottom. Note that if the cell is on the last row, the separator is not painted even if this method returns true.
        Parameters:
        cellElement - The node that represents a table cell in CSS.
        columnIndex - The index of the column, used to identify the rowspec associated to the cell. The rowspec can give information about the colsep. 1 based.
        Returns:
        true if a separator should be placed at its right, false otherwise.
      • init

        void init​(AuthorElement tableElement)
        This method is called when starting to compute the layout for a table. Its intended to extract information from the element representing the table only once, not on every getColSep() or getRowSep() call. Example: for a CALS table we identify and cache the colsep and rowsep elements from that table. A new instance of the table cell span provider is used for every table in a document so cached data cannot be used between different tables..
        Parameters:
        tableElement - The AuthorElement representing a table (it has the CSS display property set on 'table').