Interface CellBackgroundProvider

  • All Known Implementing Classes:
    DefaultCellBackgroundProvider

    public interface CellBackgroundProvider
    Instances of this interface provide background colors to be drawn behind cells in a grid. This interface is used by DefaultGridLook to provide pluggable cell background behavior.
    Author:
    Matthew Hall
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.RGB getCellBackground​(int row, int column, int colspan)
      Returns the background color to display for the given grid cell.
    • Method Detail

      • getCellBackground

        org.eclipse.swt.graphics.RGB getCellBackground​(int row,
                                                       int column,
                                                       int colspan)
        Returns the background color to display for the given grid cell.
        Parameters:
        row - the row index (zero-based)
        column - the column index (zero-based). This is the grid column index, not the cell index within the row.
        colspan - the number of grid columns that the cell occupies.
        Returns:
        the background color to display for the given header cell.