public class ImagePainter extends BackgroundPainter
| Constructor and Description |
|---|
ImagePainter() |
ImagePainter(org.eclipse.swt.graphics.Image image) |
ImagePainter(org.eclipse.swt.graphics.Image image,
boolean paintBg) |
| Modifier and Type | Method and Description |
|---|---|
ICellPainter |
getCellPainterAt(int x,
int y,
ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
IConfigRegistry configRegistry) |
protected org.eclipse.swt.graphics.Image |
getImage(ILayerCell cell,
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.
|
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
IConfigRegistry configRegistry) |
getBackgroundColourgetWrappedPainter, getWrappedPainterBounds, setWrappedPainterpublic ImagePainter()
public ImagePainter(org.eclipse.swt.graphics.Image image)
public ImagePainter(org.eclipse.swt.graphics.Image image,
boolean paintBg)
public int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredWidth in interface ICellPaintergetPreferredWidth in class CellPainterWrapperpublic int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredHeight in interface ICellPaintergetPreferredHeight in class CellPainterWrapperpublic ICellPainter getCellPainterAt(int x, int y, ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
getCellPainterAt in interface ICellPaintergetCellPainterAt in class CellPainterWrapperpublic void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
paintCell in interface ICellPainterpaintCell in class BackgroundPainterprotected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
Copyright © 2013. All Rights Reserved.