Class RowGroupHeaderGridLineCellLayerPainter

    • Constructor Detail

      • RowGroupHeaderGridLineCellLayerPainter

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

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

        public RowGroupHeaderGridLineCellLayerPainter​(RowGroupHeaderLayer rowGroupHeaderLayer,
                                                      boolean clipLeft,
                                                      boolean clipTop)
        Create a RowGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the specified clipping behaviour.
        Parameters:
        rowGroupHeaderLayer - The RowGroupHeaderLayer used to check if huge spanning row 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.
      • RowGroupHeaderGridLineCellLayerPainter

        public RowGroupHeaderGridLineCellLayerPainter​(RowGroupHeaderLayer rowGroupHeaderLayer,
                                                      org.eclipse.swt.graphics.Color gridColor,
                                                      boolean clipLeft,
                                                      boolean clipTop)
        Create a RowGroupHeaderGridLineCellLayerPainter that renders grid lines in the specified color and uses the specified clipping behaviour.
        Parameters:
        rowGroupHeaderLayer - The RowGroupHeaderLayer used to check if huge spanning row 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.