public class DataTableBackgroundImagePainter
extends org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.graphics.Color |
separatorColor
Color
|
Constructor and Description |
---|
DataTableBackgroundImagePainter(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter,
org.eclipse.swt.graphics.Image bgImage,
org.eclipse.swt.graphics.Color separatorColor) |
Modifier and Type | Method and Description |
---|---|
int |
getPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) |
int |
getPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) |
void |
paintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) |
public DataTableBackgroundImagePainter(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.swt.graphics.Image bgImage, org.eclipse.swt.graphics.Color separatorColor)
interiorPainter
- used for painting the cell contentsbgImage
- to be used for painting the backgroundseparatorColor
- to be used for drawing left and right borders for the cell.
Set to null if the borders are not required.public int getPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
getPreferredHeight
in interface org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
getPreferredHeight
in class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
public int getPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
getPreferredWidth
in interface org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
getPreferredWidth
in class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
public void paintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
paintCell
in interface org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
paintCell
in class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper