public interface IImageService
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Image |
getMetaclassImage(Class<? extends MObject> metaclass)
Get the small icon (16x16 pixels) representing the given metaclass.
|
org.eclipse.swt.graphics.Image |
getStereotypedImage(MObject element,
IPeerModule filter,
boolean useCmsDecoration)
Get the stereotyped image of an element.
|
org.eclipse.swt.graphics.Image |
getUmlImage(MObject element,
boolean useCmsDecoration)
Get the UML standard image of an model object.
|
org.eclipse.swt.graphics.Image getMetaclassImage(Class<? extends MObject> metaclass)
metaclass
- A metamodel metaclass.org.eclipse.swt.graphics.Image getStereotypedImage(MObject element, IPeerModule filter, boolean useCmsDecoration)
The returned image depends on the filter:
null
, the first stereotype belonging to that module having an image is used. null
element
- the element for which the image must be returned.filter
- the module to use as filter.useCmsDecoration
- if true
the image will be decorated with the CMS state.null
.org.eclipse.swt.graphics.Image getUmlImage(MObject element, boolean useCmsDecoration)
This method return the standard image of the model object ignoring the stereotypes owned by the object.
The returned image can be decorated with CMS state image depending on the useCmsDecoration
parameter.
element
- the model object for which the image must be displayed.useCmsDecoration
- true if the image must be decorated with the CMS state, false otherwise.