Class ColumnGroupHeaderGridLineCellLayerPainter

    • Constructor Detail

      • ColumnGroupHeaderGridLineCellLayerPainter

        public ColumnGroupHeaderGridLineCellLayerPainter​(ColumnGroupHeaderLayer columnGroupHeaderLayer)
        Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.
        Parameters:
        columnGroupHeaderLayer - The ColumnGroupHeaderLayer used to check if huge spanning column groups should be rendered differently.
      • ColumnGroupHeaderGridLineCellLayerPainter

        public ColumnGroupHeaderGridLineCellLayerPainter​(ColumnGroupHeaderLayer columnGroupHeaderLayer,
                                                         org.eclipse.swt.graphics.Color gridColor)
        Create a ColumnGroupHeaderGridLineCellLayerPainter that renders grid lines in the specified color and uses the default clipping behaviour.
        Parameters:
        columnGroupHeaderLayer - The ColumnGroupHeaderLayer used to check if huge spanning column groups should be rendered differently.
        gridColor - The color that should be used to render the grid lines.
      • ColumnGroupHeaderGridLineCellLayerPainter

        public ColumnGroupHeaderGridLineCellLayerPainter​(ColumnGroupHeaderLayer columnGroupHeaderLayer,
                                                         boolean clipLeft,
                                                         boolean clipTop)
        Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the specified clipping behaviour.
        Parameters:
        columnGroupHeaderLayer - The ColumnGroupHeaderLayer used to check if huge spanning column groups should be rendered differently.
        clipLeft - Configure the rendering behaviour when cells overlap. If set to true the left cell will be clipped, if set to false the right cell will be clipped. The default value is false.
        clipTop - Configure the rendering behaviour when cells overlap. If set to true the top cell will be clipped, if set to false the bottom cell will be clipped. The default value is false.
      • ColumnGroupHeaderGridLineCellLayerPainter

        public ColumnGroupHeaderGridLineCellLayerPainter​(ColumnGroupHeaderLayer columnGroupHeaderLayer,
                                                         org.eclipse.swt.graphics.Color gridColor,
                                                         boolean clipLeft,
                                                         boolean clipTop)
        Create a ColumnGroupHeaderGridLineCellLayerPainter that renders grid lines in the specified color and uses the specified clipping behaviour.
        Parameters:
        columnGroupHeaderLayer - The ColumnGroupHeaderLayer used to check if huge spanning column groups should be rendered differently.
        gridColor - The color that should be used to render the grid lines.
        clipLeft - Configure the rendering behaviour when cells overlap. If set to true the left cell will be clipped, if set to false the right cell will be clipped. The default value is false.
        clipTop - Configure the rendering behaviour when cells overlap. If set to true the top cell will be clipped, if set to false the bottom cell will be clipped. The default value is false.
    • Method Detail

      • adjustCellBounds

        public org.eclipse.swt.graphics.Rectangle adjustCellBounds​(int columnPosition,
                                                                   int rowPosition,
                                                                   org.eclipse.swt.graphics.Rectangle bounds)
        Description copied from interface: ILayerPainter
        This method is used to adjust the cell bounds when painting the layer. This is most often used to reduce the size of the cell to accommodate grid lines.
        Specified by:
        adjustCellBounds in interface ILayerPainter
        Overrides:
        adjustCellBounds in class GridLineCellLayerPainter
        Parameters:
        columnPosition - The column position.
        rowPosition - The row position.
        bounds - The actual cell bounds.
        Returns:
        The adjusted cell bounds.