public class BackgroundPainter extends CellPainterWrapper
ConfigRegistry the painting
is skipped.
Example: The TextPainter inherits this and uses the paint method
in this class to paint the background of the cell.
Can be used as a cell painter or a decorator.
| Constructor and Description |
|---|
BackgroundPainter() |
BackgroundPainter(ICellPainter painter) |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.swt.graphics.Color |
getBackgroundColour(ILayerCell cell,
IConfigRegistry configRegistry) |
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
IConfigRegistry configRegistry) |
getCellPainterAt, getPreferredHeight, getPreferredWidth, getWrappedPainter, getWrappedPainterBounds, setWrappedPainterpublic BackgroundPainter()
public BackgroundPainter(ICellPainter painter)
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
paintCell in interface ICellPainterpaintCell in class CellPainterWrapperprotected org.eclipse.swt.graphics.Color getBackgroundColour(ILayerCell cell, IConfigRegistry configRegistry)
Copyright © 2013. All Rights Reserved.