org.openoffice.ide.eclipse.core.gui
Class OverlayImageIcon
java.lang.Object
org.eclipse.jface.resource.DeviceResourceDescriptor
org.eclipse.jface.resource.ImageDescriptor
org.eclipse.jface.resource.CompositeImageDescriptor
org.openoffice.ide.eclipse.core.gui.OverlayImageIcon
public class OverlayImageIcon
- extends org.eclipse.jface.resource.CompositeImageDescriptor
This class is used for overlaying image icons.
- Author:
- cedricbosdo
Fields inherited from class org.eclipse.jface.resource.ImageDescriptor |
DEFAULT_IMAGE_DATA |
Constructor Summary |
OverlayImageIcon(org.eclipse.swt.graphics.Image pBaseImage,
org.eclipse.swt.graphics.Image pImage,
int pLocation)
Constructor. |
Method Summary |
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()
|
Methods inherited from class org.eclipse.jface.resource.CompositeImageDescriptor |
drawImage, getImageData, getTransparentPixel, setImageData |
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 |
TOP_LEFT
public static final int TOP_LEFT
- See Also:
- Constant Field Values
TOP_RIGHT
public static final int TOP_RIGHT
- See Also:
- Constant Field Values
BOTTOM_LEFT
public static final int BOTTOM_LEFT
- See Also:
- Constant Field Values
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT
- See Also:
- Constant Field Values
OverlayImageIcon
public OverlayImageIcon(org.eclipse.swt.graphics.Image pBaseImage,
org.eclipse.swt.graphics.Image pImage,
int pLocation)
- Constructor.
- Parameters:
pBaseImage
- the image to decoratepImage
- the decorator imagepLocation
- the location of the decorator image on the base image.
drawCompositeImage
protected void drawCompositeImage(int pLower,
int pUpper)
- this method is called to draw the composite image.
- Specified by:
drawCompositeImage
in class org.eclipse.jface.resource.CompositeImageDescriptor
- Parameters:
pLower
- the first image to drawpUpper
- the top image to draw- See Also:
CompositeImageDescriptor.drawCompositeImage(int, int)
getSize
protected org.eclipse.swt.graphics.Point getSize()
- Specified by:
getSize
in class org.eclipse.jface.resource.CompositeImageDescriptor
- Returns:
- Get the size of the composite image
- See Also:
CompositeImageDescriptor.getSize()
getImage
public org.eclipse.swt.graphics.Image getImage()
- Get the image formed by overlaying different images on the base image.
- Returns:
- composite image