Class RowGroupHeaderGridLineCellLayerPainter
- 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.RowGroupHeaderGridLineCellLayerPainter
-
- All Implemented Interfaces:
ILayerPainter
public class RowGroupHeaderGridLineCellLayerPainter extends GridLineCellLayerPainter
Specialization of theGridLineCellLayerPainter
to support rendering of huge row groups in the performanceRowGroupHeaderLayer
.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description protected RowGroupHeaderLayer
rowGroupHeaderLayer
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
gridLineWidth, renderGridLines
-
-
Constructor Summary
Constructors Constructor Description RowGroupHeaderGridLineCellLayerPainter(RowGroupHeaderLayer rowGroupHeaderLayer)
Create a RowGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.RowGroupHeaderGridLineCellLayerPainter(RowGroupHeaderLayer rowGroupHeaderLayer, boolean clipLeft, boolean clipTop)
Create a RowGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the specified clipping behaviour.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.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.
-
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
-
rowGroupHeaderLayer
protected RowGroupHeaderLayer rowGroupHeaderLayer
-
-
Constructor Detail
-
RowGroupHeaderGridLineCellLayerPainter
public RowGroupHeaderGridLineCellLayerPainter(RowGroupHeaderLayer rowGroupHeaderLayer)
Create a RowGroupHeaderGridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour.- Parameters:
rowGroupHeaderLayer
- TheRowGroupHeaderLayer
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
- TheRowGroupHeaderLayer
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
- TheRowGroupHeaderLayer
used to check if huge spanning row 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
.
-
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
- TheRowGroupHeaderLayer
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 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.
-
-