|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.resource.DeviceResourceDescriptor
org.eclipse.jface.resource.ImageDescriptor
org.eclipse.jface.resource.CompositeImageDescriptor
net.sourceforge.java.util.gui.jface.viewers.OverlayImageDescriptor
Overlays a base Image with an adornment in shape of an overlay
Image where the overlay Image can be placed on
one of the four corners of the base Image.
| Field Summary | |
private Image |
baseImg
The base Image |
static int |
BOTTOM_LEFT
Constant to draw the overlay Image at the bottom-left corner |
static int |
BOTTOM_RIGHT
Constant to draw the overlay Image at the bottom-right corner |
private Point |
imgSize
The size of the composite Image |
private int |
location
The location of the overlay Image. |
private Image |
overlayImg
The overlay Image |
static int |
TOP_LEFT
Constant to draw the overlay Image at the top-left corner |
static int |
TOP_RIGHT
Constant to draw the overlay Image at the top-right corner |
| Fields inherited from class org.eclipse.jface.resource.CompositeImageDescriptor |
|
| Fields inherited from class org.eclipse.jface.resource.ImageDescriptor |
DEFAULT_IMAGE_DATA |
| Constructor Summary | |
OverlayImageDescriptor(Image baseImg,
Image overlayImg,
int location)
Creates a new OverlayImageDescriptor instance.
|
|
| Method Summary | |
protected void |
drawCompositeImage(int width,
int height)
Draws the composite Image.
|
Image |
getImage()
Get the Image formed by overlaying different
Images on the base Image.
|
protected Point |
getSize()
Gets the size of the composite Image.
|
| Methods inherited from class org.eclipse.jface.resource.CompositeImageDescriptor |
drawImage, getImageData |
| Methods inherited from class org.eclipse.jface.resource.ImageDescriptor |
createFromFile, createFromImage, createFromImage, createFromImageData, createFromURL, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getMissingImageDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TOP_LEFT
Constant to draw the overlay Image at the top-left corner
public static final int TOP_RIGHT
Constant to draw the overlay Image at the top-right corner
public static final int BOTTOM_LEFT
Constant to draw the overlay Image at the bottom-left corner
public static final int BOTTOM_RIGHT
Constant to draw the overlay Image at the bottom-right corner
private Image baseImg
The base Image
private Image overlayImg
The overlay Image
private Point imgSize
The size of the composite Image
private int location
The location of the overlay Image.
Use one of the predefined locations:
| Constructor Detail |
public OverlayImageDescriptor(Image baseImg,
Image overlayImg,
int location)
Creates a new OverlayImageDescriptor instance.
baseImg - the base ImageoverlayImg - the overlay Imagelocation - the location of the overlay Image.
Use one of the predefined locations:
| Method Detail |
protected void drawCompositeImage(int width,
int height)
Draws the composite Image.
width - the widthheight - the heightCompositeImageDescriptor.drawCompositeImage(int, int)protected Point getSize()
Gets the size of the composite Image.
ImageCompositeImageDescriptor.getSize()public Image getImage()
Get the Image formed by overlaying different
Images on the base Image.
Image
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||