Class CompositeLayer.CompositeLayerPainter

    • Constructor Detail

      • CompositeLayerPainter

        public CompositeLayerPainter()
    • Method Detail

      • paintLayer

        public void paintLayer​(ILayer natLayer,
                               org.eclipse.swt.graphics.GC gc,
                               int xOffset,
                               int yOffset,
                               org.eclipse.swt.graphics.Rectangle rectangle,
                               IConfigRegistry configuration)
        Specified by:
        paintLayer in interface ILayerPainter
        Parameters:
        natLayer - The layer to paint.
        gc - GC used for painting
        xOffset - x offset of the layer from the origin of the table
        yOffset - y offset of the layer from the origin of the table
        rectangle - area the layer can paint in
        configuration - IConfigRegistry in use by NatTable. Useful for looking up associated painters.
      • adjustCellBounds

        public org.eclipse.swt.graphics.Rectangle adjustCellBounds​(int columnPosition,
                                                                   int rowPosition,
                                                                   org.eclipse.swt.graphics.Rectangle cellBounds)
        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
        Parameters:
        columnPosition - The column position.
        rowPosition - The row position.
        cellBounds - The actual cell bounds.
        Returns:
        The adjusted cell bounds.