public class CellLayerPainter extends Object implements ILayerPainter
| Constructor and Description | 
|---|
CellLayerPainter()  | 
| Modifier and Type | Method and Description | 
|---|---|
org.eclipse.swt.graphics.Rectangle | 
adjustCellBounds(int columnPosition,
                int rowPosition,
                org.eclipse.swt.graphics.Rectangle cellBounds)
This method is used to adjust the cell bounds when painting the layer. 
 | 
protected org.eclipse.swt.graphics.Rectangle | 
getPositionRectangleFromPixelRectangle(ILayer natLayer,
                                      org.eclipse.swt.graphics.Rectangle pixelRectangle)  | 
protected void | 
paintCell(ILayerCell cell,
         org.eclipse.swt.graphics.GC gc,
         IConfigRegistry configRegistry)  | 
void | 
paintLayer(ILayer natLayer,
          org.eclipse.swt.graphics.GC gc,
          int xOffset,
          int yOffset,
          org.eclipse.swt.graphics.Rectangle pixelRectangle,
          IConfigRegistry configRegistry)  | 
public void paintLayer(ILayer natLayer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle pixelRectangle, IConfigRegistry configRegistry)
paintLayer in interface ILayerPaintergc - GC used for paintingxOffset - of the layer from the origin of the tableyOffset - of the layer from the origin of the tablepixelRectangle - 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 cellBounds)
ILayerPainteradjustCellBounds in interface ILayerPainterprotected org.eclipse.swt.graphics.Rectangle getPositionRectangleFromPixelRectangle(ILayer natLayer, org.eclipse.swt.graphics.Rectangle pixelRectangle)
protected void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Copyright © 2013. All Rights Reserved.