Class ColumnGroupHeaderGridLineCellLayerPainter
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.painter.layer.CellLayerPainter
-
- org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
-
- org.eclipse.nebula.widgets.nattable.group.performance.painter.ColumnGroupHeaderGridLineCellLayerPainter
-
- All Implemented Interfaces:
ILayerPainter
public class ColumnGroupHeaderGridLineCellLayerPainter extends GridLineCellLayerPainter
Specialization of theGridLineCellLayerPainter
to support rendering of huge column groups in the performanceColumnGroupHeaderLayer
.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnGroupHeaderLayer
columnGroupHeaderLayer
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
gridLineWidth, renderGridLines
-
-
Constructor Summary
Constructors Constructor Description ColumnGroupHeaderGridLineCellLayerPainter(ColumnGroupHeaderLayer columnGroupHeaderLayer)
Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.ColumnGroupHeaderGridLineCellLayerPainter(ColumnGroupHeaderLayer columnGroupHeaderLayer, boolean clipLeft, boolean clipTop)
Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the specified clipping behaviour.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Rectangle
adjustCellBounds(int columnPosition, int rowPosition, org.eclipse.swt.graphics.Rectangle bounds)
This method is used to adjust the cell bounds when painting the layer.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
drawGridLines, getGridColor, paintLayer
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.CellLayerPainter
getPositionRectangleFromPixelRectangle, getStartXOfColumnPosition, getStartYOfRowPosition, isClipLeft, isClipTop, paintCell
-
-
-
-
Field Detail
-
columnGroupHeaderLayer
protected ColumnGroupHeaderLayer columnGroupHeaderLayer
-
-
Constructor Detail
-
ColumnGroupHeaderGridLineCellLayerPainter
public ColumnGroupHeaderGridLineCellLayerPainter(ColumnGroupHeaderLayer columnGroupHeaderLayer)
Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.- Parameters:
columnGroupHeaderLayer
- TheColumnGroupHeaderLayer
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
- TheColumnGroupHeaderLayer
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
- TheColumnGroupHeaderLayer
used to check if huge spanning column groups should be rendered differently.clipLeft
- Configure the rendering behaviour when cells overlap. If set totrue
the left cell will be clipped, if set tofalse
the right cell will be clipped. The default value isfalse
.clipTop
- Configure the rendering behaviour when cells overlap. If set totrue
the top cell will be clipped, if set tofalse
the bottom cell will be clipped. The default value isfalse
.
-
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
- TheColumnGroupHeaderLayer
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 totrue
the left cell will be clipped, if set tofalse
the right cell will be clipped. The default value isfalse
.clipTop
- Configure the rendering behaviour when cells overlap. If set totrue
the top cell will be clipped, if set tofalse
the bottom cell will be clipped. The default value isfalse
.
-
-
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 interfaceILayerPainter
- Overrides:
adjustCellBounds
in classGridLineCellLayerPainter
- Parameters:
columnPosition
- The column position.rowPosition
- The row position.bounds
- The actual cell bounds.- Returns:
- The adjusted cell bounds.
-
-