public class OverlayImageIcon
extends org.eclipse.jface.resource.CompositeImageDescriptor
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTTOM_LEFT |
static int |
BOTTOM_RIGHT |
static int |
TOP_LEFT |
static int |
TOP_RIGHT |
| Constructor and Description |
|---|
OverlayImageIcon(org.eclipse.swt.graphics.Image pBaseImage,
org.eclipse.swt.graphics.Image pImage,
int pLocation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawCompositeImage(int pLower,
int pUpper)
this method is called to draw the composite image.
|
org.eclipse.swt.graphics.Image |
getImage()
Get the image formed by overlaying different images on the base image.
|
protected org.eclipse.swt.graphics.Point |
getSize() |
autoScaleDown, autoScaleUp, createCachedImageDataProvider, createCachedImageDataProvider, drawImage, drawImage, getImageData, getImageData, getTransparentPixel, getZoomLevel, setImageData, supportsZoomLevelcreateFromFile, createFromImage, createFromImage, createFromImageData, createFromImageDataProvider, createFromURL, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getMissingImageDescriptorpublic static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
public OverlayImageIcon(org.eclipse.swt.graphics.Image pBaseImage,
org.eclipse.swt.graphics.Image pImage,
int pLocation)
pBaseImage - the image to decoratepImage - the decorator imagepLocation - the location of the decorator image on the base image.protected void drawCompositeImage(int pLower,
int pUpper)
drawCompositeImage in class org.eclipse.jface.resource.CompositeImageDescriptorpLower - the first image to drawpUpper - the top image to drawCompositeImageDescriptor.drawCompositeImage(int, int)protected org.eclipse.swt.graphics.Point getSize()
getSize in class org.eclipse.jface.resource.CompositeImageDescriptorCompositeImageDescriptor.getSize()public org.eclipse.swt.graphics.Image getImage()