|
||||||||||
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.cdt.ui.CElementImageDescriptor
public class CElementImageDescriptor
A CImageDescriptor consists of a base image and several adornments. The adornments
are computed according to the flags either passed during creation or set via the method
setAdornments
.
ImageDescriptor
Note: This class/interface is part of an interim API that is still under development
and expected to change before reaching stability.
Field Summary | |
---|---|
static int |
CONSTANT
Flag to render the const adornment |
static int |
DEFINES
Flag to render the 'defines' adornment in the type hierarchy |
static int |
ERROR
Flag to render the error adornment |
static int |
IMPLEMENTS
Deprecated. flag never had an effect |
static int |
INACTIVE
Flag to render the 'inactive' adornment for include directives |
static int |
OVERRIDES
Deprecated. flag never had an effect |
static int |
RECURSIVE_RELATION
Flag to render the 'recursive relation' adornment (for trees, an arrow pointing back) |
static int |
REFERENCED_BY
Flag to render the 'referenced by' adornment (for trees, an arrow up) |
static int |
RELATES_TO
Flag to render the 'relates to' adornment (for trees, an arrow down) |
static int |
RELATES_TO_MULTIPLE
Flag to render the 'relates to' adornment (for trees, two arrows down) |
static int |
RUNNABLE
Deprecated. flag never had an effect |
static int |
STATIC
Flag to render the static adornment |
static int |
SYSTEM_INCLUDE
Flag to render the 'system include' adornment |
static int |
TEMPLATE
Flag to render the abstract adornment |
static int |
VOLATILE
Flag to render the volatile adornment |
static int |
WARNING
Flag to render the waring adornment |
Constructor Summary | |
---|---|
CElementImageDescriptor(org.eclipse.jface.resource.ImageDescriptor baseImage,
int flags,
org.eclipse.swt.graphics.Point size)
Create a new CElementImageDescriptor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
int |
getAdronments()
Returns the current adornments. |
org.eclipse.swt.graphics.Point |
getImageSize()
Returns the size of the image created by calling createImage() . |
int |
hashCode()
|
void |
setAdornments(int adornments)
Sets the descriptors adornments. |
void |
setImageSize(org.eclipse.swt.graphics.Point size)
Sets the size of the image created by calling createImage() . |
Methods inherited from class org.eclipse.jface.resource.CompositeImageDescriptor |
---|
getImageData |
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 |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TEMPLATE
public static final int CONSTANT
public static final int VOLATILE
public static final int STATIC
public static final int RUNNABLE
public static final int WARNING
public static final int ERROR
public static final int OVERRIDES
public static final int IMPLEMENTS
public static final int RELATES_TO
public static final int RELATES_TO_MULTIPLE
public static final int REFERENCED_BY
public static final int RECURSIVE_RELATION
public static final int SYSTEM_INCLUDE
public static final int DEFINES
public static final int INACTIVE
Constructor Detail |
---|
public CElementImageDescriptor(org.eclipse.jface.resource.ImageDescriptor baseImage, int flags, org.eclipse.swt.graphics.Point size)
baseImage
- an image descriptor used as the base imageflags
- flags indicating which adornments are to be rendered. See setAdornments
for valid values.size
- the size of the resulting imagesetAdornments(int)
Method Detail |
---|
public void setAdornments(int adornments)
ABSTRACT
, FINAL
,
STATIC,
WARNING,
ERROR, or any combination of those.
- Parameters:
adornments
- the image descritpors adornments
public int getAdronments()
public void setImageSize(org.eclipse.swt.graphics.Point size)
createImage()
.
size
- the size of the image returned from calling createImage()
public org.eclipse.swt.graphics.Point getImageSize()
createImage()
.
createImage
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |