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) |
getBackgroundColour
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
public 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)
ICellPainter
getPreferredWidth
in interface ICellPainter
getPreferredWidth
in class CellPainterWrapper
public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPainter
getPreferredHeight
in interface ICellPainter
getPreferredHeight
in class CellPainterWrapper
public 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 ICellPainter
getCellPainterAt
in class CellPainterWrapper
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
paintCell
in interface ICellPainter
paintCell
in class BackgroundPainter
protected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
Copyright © 2013. All Rights Reserved.