Class AbstractCellRenderingCustomizer

    • Constructor Detail

      • AbstractCellRenderingCustomizer

        public AbstractCellRenderingCustomizer()
    • Method Detail

      • getFont

        public Font getFont​(SpreadSheetTable table,
                            boolean isSelected,
                            boolean hasFocus,
                            int row,
                            int column,
                            Cell cell,
                            Font defFont)
        For customizing the font of a cell.
        Default implementation just returns the default.
        Specified by:
        getFont in interface CellRenderingCustomizer
        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

        public Color getForegroundColor​(SpreadSheetTable table,
                                        boolean isSelected,
                                        boolean hasFocus,
                                        int row,
                                        int column,
                                        Cell cell,
                                        Color defColor)
        For customizing the foreground color of a cell.
        Default implementation just returns the default.
        Specified by:
        getForegroundColor in interface CellRenderingCustomizer
        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

        public Color getBackgroundColor​(SpreadSheetTable table,
                                        boolean isSelected,
                                        boolean hasFocus,
                                        int row,
                                        int column,
                                        Cell cell,
                                        Color defColor)
        For customizing the background color of a cell.
        Default implementation just returns the default.
        Specified by:
        getBackgroundColor in interface CellRenderingCustomizer
        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

        public String getToolTipText​(SpreadSheetTable table,
                                     boolean isSelected,
                                     boolean hasFocus,
                                     int row,
                                     int column,
                                     Cell cell,
                                     String defTip)
        For customizing the tooltip text.
        Default implementation just returns the default.
        Specified by:
        getToolTipText in interface CellRenderingCustomizer
        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

        public int getHorizontalAlignment​(SpreadSheetTable table,
                                          boolean isSelected,
                                          boolean hasFocus,
                                          int row,
                                          int column,
                                          Cell cell,
                                          int defAlign)
        For customizing the horizontal alignment of a cell.
        Default implementation just returns the default.
        Specified by:
        getHorizontalAlignment in interface CellRenderingCustomizer
        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