Class OverlayUtil
java.lang.Object
org.eclipse.jface.resource.DeviceResourceDescriptor
org.eclipse.jface.resource.ImageDescriptor
org.eclipse.jface.resource.CompositeImageDescriptor
org.eclipse.nebula.widgets.xviewer.util.internal.OverlayUtil
public class OverlayUtil
extends org.eclipse.jface.resource.CompositeImageDescriptor
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OverlayUtil.ImageInfo
static class
OverlayUtil.Location
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OverlayUtil(org.eclipse.swt.graphics.Image baseImage, java.util.Collection<OverlayUtil.ImageInfo> imageInfo)
OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor)
OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor, int xValue, int yValue)
OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor, OverlayUtil.Location location)
-
Method Summary
Modifier and Type Method Description protected void
drawCompositeImage(int width, int height)
protected org.eclipse.swt.graphics.Point
getSize()
void
setXY(int xValue, int yValue)
Set x,y pixel to draw the overlay image eg: 8,8 for bottom right of a 16x16 image 0,0 for top leftMethods 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
-
OverlayUtil
public OverlayUtil(org.eclipse.swt.graphics.Image baseImage, java.util.Collection<OverlayUtil.ImageInfo> imageInfo) -
OverlayUtil
public OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor, OverlayUtil.Location location) -
OverlayUtil
public OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor) -
OverlayUtil
public OverlayUtil(org.eclipse.swt.graphics.Image baseImage, org.eclipse.jface.resource.ImageDescriptor overlayImageDescriptor, int xValue, int yValue)
-
-
Method Details
-
setXY
public void setXY(int xValue, int yValue)Set x,y pixel to draw the overlay image eg: 8,8 for bottom right of a 16x16 image 0,0 for top left -
drawCompositeImage
protected void drawCompositeImage(int width, int height)- Specified by:
drawCompositeImage
in classorg.eclipse.jface.resource.CompositeImageDescriptor
-
getSize
protected org.eclipse.swt.graphics.Point getSize()- Specified by:
getSize
in classorg.eclipse.jface.resource.CompositeImageDescriptor
-