Class CellPainterWrapper
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
- All Implemented Interfaces:
ICellPainter
- Direct Known Subclasses:
BackgroundImagePainter
,BackgroundPainter
,BeveledBorderDecorator
,ColumnGroupHeaderTextPainter
,ComboBoxPainter
,CustomLineBorderDecorator
,FilterRowPainter
,GradientBackgroundPainter
,IndentedTreeImagePainter
,LineBorderDecorator
,PaddingDecorator
,PercentageBarCellPainter
,PercentageBarDecorator
,RowGroupHeaderTextPainter
,SortableHeaderTextPainter
public abstract class CellPainterWrapper extends AbstractCellPainter
-
-
Constructor Summary
Constructors Constructor Description CellPainterWrapper()
CellPainterWrapper(ICellPainter painter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICellPainter
getCellPainterAt(int x, int y, ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
int
getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Get the preferred height of the cell when rendered by this painter.int
getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Get the preferred width of the cell when rendered by this painter.ICellPainter
getWrappedPainter()
org.eclipse.swt.graphics.Rectangle
getWrappedPainterBounds(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
void
paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
void
setWrappedPainter(ICellPainter painter)
-
-
-
Constructor Detail
-
CellPainterWrapper
public CellPainterWrapper()
-
CellPainterWrapper
public CellPainterWrapper(ICellPainter painter)
-
-
Method Detail
-
setWrappedPainter
public void setWrappedPainter(ICellPainter painter)
-
getWrappedPainter
public ICellPainter getWrappedPainter()
-
getWrappedPainterBounds
public org.eclipse.swt.graphics.Rectangle getWrappedPainterBounds(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
-
getCellPainterAt
public ICellPainter getCellPainterAt(int x, int y, ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
- Specified by:
getCellPainterAt
in interfaceICellPainter
- Overrides:
getCellPainterAt
in classAbstractCellPainter
-
getPreferredWidth
public int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Description copied from interface:ICellPainter
Get the preferred width of the cell when rendered by this painter. Used for auto-resize.- Parameters:
cell
- The cell for which the preferred width is requested.gc
- The GC that is used for rendering.configRegistry
- The IConfigRegistry that contains the configuration used for rendering.- Returns:
- The preferred width of the given cell when rendered by this painter.
-
getPreferredHeight
public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Description copied from interface:ICellPainter
Get the preferred height of the cell when rendered by this painter. Used for auto-resize.- Parameters:
cell
- The cell for which the preferred height is requested.gc
- The GC that is used for rendering.configRegistry
- The IConfigRegistry that contains the configuration used for rendering.- Returns:
- The preferred height of the given cell when rendered by this painter.
-
paintCell
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
-
-