|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.widgets.nattable.painter.layer.CellLayerPainter
org.eclipse.nebula.widgets.nattable.painter.layer.GridLineCellLayerPainter
public class GridLineCellLayerPainter
| Constructor Summary | |
|---|---|
GridLineCellLayerPainter()
Create a GridLineCellLayerPainter that renders gray grid lines and uses the default clipping behaviour. |
|
GridLineCellLayerPainter(boolean clipLeft,
boolean clipTop)
Create a GridLineCellLayerPainter that renders gray grid lines and uses the specified clipping behaviour. |
|
GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor)
Create a GridLineCellLayerPainter that renders grid lines in the specified color and uses the default clipping behaviour. |
|
GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor,
boolean clipLeft,
boolean clipTop)
Create a GridLineCellLayerPainter that renders grid lines in the specified color and uses the specified clipping behaviour. |
|
| Method Summary | |
|---|---|
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. |
protected void |
drawGridLines(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry)
|
org.eclipse.swt.graphics.Color |
getGridColor()
|
void |
paintLayer(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
int xOffset,
int yOffset,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry)
|
| Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.layer.CellLayerPainter |
|---|
getPositionRectangleFromPixelRectangle, getStartXOfColumnPosition, getStartYOfRowPosition, isClipLeft, isClipTop, paintCell |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor)
gridColor - The color that should be used to render the grid lines.public GridLineCellLayerPainter()
public GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor,
boolean clipLeft,
boolean clipTop)
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.
public GridLineCellLayerPainter(boolean clipLeft,
boolean clipTop)
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 |
|---|
public org.eclipse.swt.graphics.Color getGridColor()
public void paintLayer(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
int xOffset,
int yOffset,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry)
paintLayer in interface ILayerPainterpaintLayer in class CellLayerPaintergc - GC used for paintingxOffset - of the layer from the origin of the tableyOffset - of the layer from the origin of the tablerectangle - area the layer can paint inconfigRegistry - in use by NatTable. Useful for looking up associated painters.
public org.eclipse.swt.graphics.Rectangle adjustCellBounds(int columnPosition,
int rowPosition,
org.eclipse.swt.graphics.Rectangle bounds)
ILayerPainter
adjustCellBounds in interface ILayerPainteradjustCellBounds in class CellLayerPainter
protected void drawGridLines(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||