|
Eclipse Platform Release 3.3 |
|||||||||||
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.jface.viewers.DecorationOverlayIcon
A DecorationOverlayIcon
is an image descriptor that can be used
to overlay decoration images on to the 4 corner quadrants of a base image.
The four quadrants are IDecoration.TOP_LEFT
, IDecoration.TOP_RIGHT
,
IDecoration.BOTTOM_LEFT
and IDecoration.BOTTOM_RIGHT
. Additionally,
the overlay can be used to provide an underlay corresponding to IDecoration.UNDERLAY
.
IDecoration
Field Summary |
---|
Fields inherited from class org.eclipse.jface.resource.ImageDescriptor |
---|
DEFAULT_IMAGE_DATA |
Constructor Summary | |
---|---|
DecorationOverlayIcon(Image baseImage,
ImageDescriptor[] overlaysArray)
Create the decoration overlay for the base image using the array of provided overlays. |
|
DecorationOverlayIcon(Image baseImage,
ImageDescriptor[] overlaysArray,
Point sizeValue)
Create the decoration overlay for the base image using the array of provided overlays. |
|
DecorationOverlayIcon(Image baseImage,
ImageDescriptor overlayImage,
int quadrant)
Create a decoration overlay icon that will place the given overlay icon in the given quadrant of the base image. |
Method Summary | |
---|---|
protected void |
drawCompositeImage(int width,
int height)
Draw the composite images. |
boolean |
equals(Object o)
|
protected Point |
getSize()
Return the size of this composite image. |
protected int |
getTransparentPixel()
Return the transparent pixel for the receiver. |
int |
hashCode()
|
Methods inherited from class org.eclipse.jface.resource.CompositeImageDescriptor |
---|
drawImage, getImageData, 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DecorationOverlayIcon(Image baseImage, ImageDescriptor[] overlaysArray, Point sizeValue)
IDecoration
(IDecoration.TOP_LEFT
, IDecoration.TOP_RIGHT
,
IDecoration.BOTTOM_LEFT
, IDecoration.BOTTOM_RIGHT
andIDecoration.UNDERLAY
).
baseImage
- the base imageoverlaysArray
- the overlay imagessizeValue
- the size of the resulting imagepublic DecorationOverlayIcon(Image baseImage, ImageDescriptor[] overlaysArray)
IDecoration
(IDecoration.TOP_LEFT
, IDecoration.TOP_RIGHT
,
IDecoration.BOTTOM_LEFT
, IDecoration.BOTTOM_RIGHT
and IDecoration.UNDERLAY
).
baseImage
- the base imageoverlaysArray
- the overlay imagespublic DecorationOverlayIcon(Image baseImage, ImageDescriptor overlayImage, int quadrant)
baseImage
- the base imageoverlayImage
- the overlay imagequadrant
- the quadrant (one of IDecoration
(IDecoration.TOP_LEFT
, IDecoration.TOP_RIGHT
,
IDecoration.BOTTOM_LEFT
, IDecoration.BOTTOM_RIGHT
or IDecoration.UNDERLAY
)Method Detail |
public boolean equals(Object o)
public int hashCode()
protected void drawCompositeImage(int width, int height)
CompositeImageDescriptor
Subclasses must implement this framework method to paint images within
the given bounds using one or more calls to the drawImage
framework method.
drawCompositeImage
in class CompositeImageDescriptor
width
- the widthheight
- the heightprotected Point getSize()
CompositeImageDescriptor
Subclasses must implement this framework method.
getSize
in class CompositeImageDescriptor
protected int getTransparentPixel()
CompositeImageDescriptor
getTransparentPixel
in class CompositeImageDescriptor
|
Eclipse Platform Release 3.3 |
|||||||||||
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. and others 2000, 2007. All rights reserved.