public class OverlayImageDescriptor
extends org.eclipse.jface.resource.CompositeImageDescriptor
Modifier and Type | Field and Description |
---|---|
static int |
LOWER_LEFT
display the overlay image in the lower left corner.
|
static int |
LOWER_RIGHT
display the overlay image in the lower right corner.
|
static int |
UPPER_LEFT
display the overlay image in the upper left corner.
|
static int |
UPPER_RIGHT
display the overlay image in the upper right corner.
|
Constructor and Description |
---|
OverlayImageDescriptor(org.eclipse.swt.graphics.ImageData backgroundData,
org.eclipse.jface.resource.ImageDescriptor overlayDesc,
int overlayPos)
OverlayImageDescriptor constructor.
|
OverlayImageDescriptor(org.eclipse.swt.graphics.Image srcImage,
org.eclipse.jface.resource.ImageDescriptor overlayDesc,
int overlayPos)
OverlayImageDescriptor constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawCompositeImage(int width,
int height)
Draws the given source image data into this composite image at the given position.
|
protected org.eclipse.swt.graphics.Point |
getSize()
Retrieve the size of this composite image.
|
drawImage, getImageData, getTransparentPixel, setImageData
public static final int UPPER_LEFT
public static final int UPPER_RIGHT
public static final int LOWER_RIGHT
public static final int LOWER_LEFT
public OverlayImageDescriptor(org.eclipse.swt.graphics.Image srcImage, org.eclipse.jface.resource.ImageDescriptor overlayDesc, int overlayPos)
srcImage
- the base imageoverlayDesc
- the overlay imageoverlayPos
- the overlay positionpublic OverlayImageDescriptor(org.eclipse.swt.graphics.ImageData backgroundData, org.eclipse.jface.resource.ImageDescriptor overlayDesc, int overlayPos)
backgroundData
- the base ImageDataoverlayDesc
- the overlay imageoverlayPos
- the overlay positionprotected void drawCompositeImage(int width, int height)
drawCompositeImage
in class org.eclipse.jface.resource.CompositeImageDescriptor
width
- the width of the image.height
- the height of the image.CompositeImageDescriptor.drawCompositeImage(int, int)
protected org.eclipse.swt.graphics.Point getSize()
getSize
in class org.eclipse.jface.resource.CompositeImageDescriptor
CompositeImageDescriptor.getSize()
Copyright © 2016. All rights reserved.