org.openoffice.ide.eclipse.core.gui
Class OverlayImageIcon

java.lang.Object
  extended by org.eclipse.jface.resource.DeviceResourceDescriptor
      extended by org.eclipse.jface.resource.ImageDescriptor
          extended by org.eclipse.jface.resource.CompositeImageDescriptor
              extended by 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

Field Summary
static int BOTTOM_LEFT
           
static int BOTTOM_RIGHT
           
static int TOP_LEFT
           
static int TOP_RIGHT
           
 
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
 

Field Detail

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
Constructor Detail

OverlayImageIcon

public OverlayImageIcon(org.eclipse.swt.graphics.Image pBaseImage,
                        org.eclipse.swt.graphics.Image pImage,
                        int pLocation)
Constructor.

Parameters:
pBaseImage - the image to decorate
pImage - the decorator image
pLocation - the location of the decorator image on the base image.
Method Detail

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 draw
pUpper - 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