public class NatLayerPainter extends Object implements ILayerPainter
Constructor and Description |
---|
NatLayerPainter(NatTable natTable) |
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 void |
paintBackground(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
int xOffset,
int yOffset,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
void |
paintLayer(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
int xOffset,
int yOffset,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
protected void |
paintOverlays(ILayer natLayer,
org.eclipse.swt.graphics.GC gc,
int xOffset,
int yOffset,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
public NatLayerPainter(NatTable natTable)
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
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.protected void paintBackground(ILayer natLayer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle, IConfigRegistry configRegistry)
protected void paintOverlays(ILayer natLayer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle, IConfigRegistry configRegistry)
public org.eclipse.swt.graphics.Rectangle adjustCellBounds(int columnPosition, int rowPosition, org.eclipse.swt.graphics.Rectangle cellBounds)
ILayerPainter
adjustCellBounds
in interface ILayerPainter
Copyright © 2013. All Rights Reserved.