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
Specialization of the
GridLineCellLayerPainter to support rendering
of huge column groups in the performance ColumnGroupHeaderLayer.- Since:
- 1.6
-
Field Summary
FieldsFields inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
gridLineWidth, renderGridLines -
Constructor Summary
ConstructorsConstructorDescriptionColumnGroupHeaderGridLineCellLayerPainter(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
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.RectangleadjustCellBounds(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, paintLayerMethods inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.CellLayerPainter
getPositionRectangleFromPixelRectangle, getStartXOfColumnPosition, getStartYOfRowPosition, isClipLeft, isClipTop, paintCell
-
Field Details
-
columnGroupHeaderLayer
-
-
Constructor Details
-
ColumnGroupHeaderGridLineCellLayerPainter
Create a ColumnGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.- Parameters:
columnGroupHeaderLayer- TheColumnGroupHeaderLayerused 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- TheColumnGroupHeaderLayerused 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- TheColumnGroupHeaderLayerused to check if huge spanning column groups should be rendered differently.clipLeft- Configure the rendering behaviour when cells overlap. If set totruethe left cell will be clipped, if set tofalsethe right cell will be clipped. The default value isfalse.clipTop- Configure the rendering behaviour when cells overlap. If set totruethe top cell will be clipped, if set tofalsethe 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- TheColumnGroupHeaderLayerused 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 totruethe left cell will be clipped, if set tofalsethe right cell will be clipped. The default value isfalse.clipTop- Configure the rendering behaviour when cells overlap. If set totruethe top cell will be clipped, if set tofalsethe bottom cell will be clipped. The default value isfalse.
-
-
Method Details
-
adjustCellBounds
public org.eclipse.swt.graphics.Rectangle adjustCellBounds(int columnPosition, int rowPosition, org.eclipse.swt.graphics.Rectangle bounds) Description copied from interface:ILayerPainterThis 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:
adjustCellBoundsin interfaceILayerPainter- Overrides:
adjustCellBoundsin classGridLineCellLayerPainter- Parameters:
columnPosition- The column position.rowPosition- The row position.bounds- The actual cell bounds.- Returns:
- The adjusted cell bounds.
-