Interface CellRenderingCustomizer

    • Method Detail

      • getFont

        Font getFont​(SpreadSheetTable table,
                     boolean isSelected,
                     boolean hasFocus,
                     int row,
                     int column,
                     Cell cell,
                     Font defFont)
        For customizing the font of a cell.
        Parameters:
        table - the table
        isSelected - whether the cell is selected
        hasFocus - whether the cell is focused
        row - the current row
        column - the current column
        cell - the actual cell
        defFont - the default font
        Returns:
        the font
      • getForegroundColor

        Color getForegroundColor​(SpreadSheetTable table,
                                 boolean isSelected,
                                 boolean hasFocus,
                                 int row,
                                 int column,
                                 Cell cell,
                                 Color defColor)
        For customizing the foreground color of a cell.
        Parameters:
        table - the table
        isSelected - whether the cell is selected
        hasFocus - whether the cell is focused
        row - the current row
        column - the current column
        cell - the actual cell
        defColor - the default color
        Returns:
        the color
      • getBackgroundColor

        Color getBackgroundColor​(SpreadSheetTable table,
                                 boolean isSelected,
                                 boolean hasFocus,
                                 int row,
                                 int column,
                                 Cell cell,
                                 Color defColor)
        For customizing the background color of a cell.
        Parameters:
        table - the table
        isSelected - whether the cell is selected
        hasFocus - whether the cell is focused
        row - the current row
        column - the current column
        cell - the actual cell
        defColor - the default color
        Returns:
        the color
      • getToolTipText

        String getToolTipText​(SpreadSheetTable table,
                              boolean isSelected,
                              boolean hasFocus,
                              int row,
                              int column,
                              Cell cell,
                              String defTip)
        For customizing the tooltip text.
        Parameters:
        table - the table
        isSelected - whether the cell is selected
        hasFocus - whether the cell is focused
        row - the current row
        column - the current column
        cell - the actual cell
        defTip - the default tip text
        Returns:
        the tip text
      • getHorizontalAlignment

        int getHorizontalAlignment​(SpreadSheetTable table,
                                   boolean isSelected,
                                   boolean hasFocus,
                                   int row,
                                   int column,
                                   Cell cell,
                                   int defAlign)
        For customizing the horizontal alignment of a cell.
        Parameters:
        table - the table
        isSelected - whether the cell is selected
        hasFocus - whether the cell is focused
        row - the current row
        column - the current column
        cell - the actual cell
        defAlign - the default alignment
        Returns:
        the alignment