public class GridLineCellLayerPainter extends CellLayerPainter
Constructor and Description |
---|
GridLineCellLayerPainter() |
GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor) |
Modifier and Type | Method and 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.
|
protected void |
drawGridLines(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle) |
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) |
getPositionRectangleFromPixelRectangle, paintCell
public GridLineCellLayerPainter(org.eclipse.swt.graphics.Color gridColor)
public GridLineCellLayerPainter()
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 ILayerPainter
paintLayer
in class CellLayerPainter
gc
- 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 ILayerPainter
adjustCellBounds
in class CellLayerPainter
protected void drawGridLines(ILayer natLayer, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle)
Copyright © 2013. All Rights Reserved.