public class BackgroundImagePainter extends CellPainterWrapper
| Modifier and Type | Field and Description |
|---|---|
org.eclipse.swt.graphics.Color |
separatorColor |
| Constructor and Description |
|---|
BackgroundImagePainter(ICellPainter interiorPainter,
org.eclipse.swt.graphics.Image bgImage) |
BackgroundImagePainter(ICellPainter interiorPainter,
org.eclipse.swt.graphics.Image bgImage,
org.eclipse.swt.graphics.Color separatorColor) |
BackgroundImagePainter(org.eclipse.swt.graphics.Image bgImage) |
BackgroundImagePainter(org.eclipse.swt.graphics.Image bgImage,
org.eclipse.swt.graphics.Color separatorColor) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Image |
getBackgroundImage() |
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.
|
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
void |
setBackgroundImage(org.eclipse.swt.graphics.Image bgImage) |
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainterpublic BackgroundImagePainter(org.eclipse.swt.graphics.Image bgImage)
bgImage - to be used for painting the backgroundpublic BackgroundImagePainter(ICellPainter interiorPainter, org.eclipse.swt.graphics.Image bgImage)
interiorPainter - used for painting the cell contentsbgImage - to be used for painting the backgroundpublic BackgroundImagePainter(org.eclipse.swt.graphics.Image bgImage,
org.eclipse.swt.graphics.Color separatorColor)
bgImage - 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 BackgroundImagePainter(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 getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredWidth in interface ICellPaintergetPreferredWidth in class CellPainterWrappercell - 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.public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredHeight in interface ICellPaintergetPreferredHeight in class CellPainterWrappercell - 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.public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, IConfigRegistry configRegistry)
paintCell in interface ICellPainterpaintCell in class CellPainterWrapperpublic org.eclipse.swt.graphics.Image getBackgroundImage()
Image that is used to render the background.public void setBackgroundImage(org.eclipse.swt.graphics.Image bgImage)
bgImage - The Image that should be used to render the
background.Copyright © 2019. All rights reserved.