Class DiffImageDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.resource.CompositeImageDescriptor
CompositeImageDescriptor.CachedImageDataProvider
-
Field Summary
Fields inherited from class org.eclipse.jface.resource.ImageDescriptor
DEFAULT_IMAGE_DATA
-
Constructor Summary
ConstructorDescriptionDiffImageDescriptor
(Image base, ImageDescriptor overlay, int w, boolean onLeft) -
Method Summary
Methods inherited from class org.eclipse.jface.resource.CompositeImageDescriptor
autoScaleDown, autoScaleUp, createCachedImageDataProvider, createCachedImageDataProvider, drawImage, drawImage, getImageData, getImageData, getTransparentPixel, getZoomLevel, setImageData, supportsZoomLevel
Methods inherited from class org.eclipse.jface.resource.ImageDescriptor
createFromFile, createFromImage, createFromImage, createFromImageData, createFromImageDataProvider, createFromURL, createFromURLSupplier, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getMissingImageDescriptor, imageDescriptorFromURI
-
Constructor Details
-
DiffImageDescriptor
-
-
Method Details
-
getSize
Description copied from class:CompositeImageDescriptor
Return the size of this composite image.Subclasses must implement this framework method.
- Specified by:
getSize
in classCompositeImageDescriptor
- Returns:
- the x and y size of the image expressed as a point object
-
drawCompositeImage
protected void drawCompositeImage(int width, int height) Description copied from class:CompositeImageDescriptor
Draw the composite images.Subclasses must implement this framework method to paint images within the given bounds using one or more calls to the
CompositeImageDescriptor.drawImage(ImageDataProvider, int, int)
framework method.Implementers that need to perform computations based on the size of another image are advised to use one of the
CompositeImageDescriptor.createCachedImageDataProvider(org.eclipse.swt.graphics.Image)
methods to create aCompositeImageDescriptor.CachedImageDataProvider
that can serve asImageDataProvider
. TheCompositeImageDescriptor.CachedImageDataProvider
offers other interesting methods likegetWidth()
orcomputeInPoints(...)
that can be useful to compute values in points, based on the resolution-dependentImageData
that is applicable for the current drawing operation.- Specified by:
drawCompositeImage
in classCompositeImageDescriptor
- Parameters:
width
- the widthheight
- the height- See Also:
-
hashCode
public int hashCode() -
equals
-