public class DataTableDecorator
extends org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOTTOM_LINE_BORDER_LABEL
Label for adding a border at the bottom of a cell.
|
static java.lang.String |
LEFT_LINE_BORDER_LABEL
Label for adding a border at the left of a cell.
|
static java.lang.String |
RIGHT_LINE_BORDER_LABEL
Label for adding a border at the right of a cell.
|
static java.lang.String |
TOP_LINE_BORDER_LABEL
Label for adding a border at the top of a cell.
|
Constructor and Description |
---|
DataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter,
org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle)
Creates a new LabelLineBorderDecorator wrapping the given interior
painter using the given BorderStyle as default.
|
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 static final java.lang.String TOP_LINE_BORDER_LABEL
public static final java.lang.String BOTTOM_LINE_BORDER_LABEL
public static final java.lang.String LEFT_LINE_BORDER_LABEL
public static final java.lang.String RIGHT_LINE_BORDER_LABEL
public DataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle)
interiorPainter
- The painter to be wrapped by this decorator.defaultBorderStyle
- The BorderStyle to use as default if there is no BorderStyle
configured via cell styles. Can be null
.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