|
Runtime | ||||||||||
| 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
org.eclipse.gmf.runtime.common.ui.util.OverlayImageDescriptor
Allows one image descriptor to be overlayed on another image descriptor to generate a new image. Commonly used to decorate an image with a second image decoration.
| Field Summary |
| Fields inherited from class org.eclipse.jface.resource.ImageDescriptor |
DEFAULT_IMAGE_DATA |
| Constructor Summary | |
OverlayImageDescriptor(Image srcImage,
ImageDescriptor overlayDesc)
OverlayImageDescriptor constructor |
|
OverlayImageDescriptor(Image srcImage,
ImageDescriptor overlayDesc,
int width,
int height)
OverlayImageDescriptor constructor where you can set the width and height |
|
| Method Summary | |
protected void |
drawCompositeImage(int width,
int height)
Draws the given source image data into this composite image at the given position. |
protected Point |
getSize()
Retrieve the size of this 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 |
| Constructor Detail |
public OverlayImageDescriptor(Image srcImage,
ImageDescriptor overlayDesc)
srcImage - the base imageoverlayDesc - the overlay image
public OverlayImageDescriptor(Image srcImage,
ImageDescriptor overlayDesc,
int width,
int height)
srcImage - the base imageoverlayDesc - the overlay imagewidth - an int with the width of the image in pixelsheight - an int with the height of the image in pixels| Method Detail |
protected void drawCompositeImage(int width,
int height)
width - the width of the image.height - the height of the image.CompositeImageDescriptor.drawCompositeImage(int,
int)protected Point getSize()
CompositeImageDescriptor.getSize()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.