public interface IImageService
Modifier and Type | Method and Description |
---|---|
Image |
getIcon(java.lang.Class<? extends MObject> metaclass)
Get the small icon (16x16 pixels) representing the given metaclass.
|
Image |
getIcon(MClass metaclass)
Get the small icon (16x16 pixels) representing the given metaclass.
|
Image |
getIcon(MObject element)
Get the standard metamodel icon of an model object (usually 16x16 pixels).
|
Image |
getIcon(MObject element,
IPeerModule filter)
Get the stereotyped icon of an element (usually 16x16 pixels).
|
Image |
getImage(java.lang.Class<? extends MObject> metaclass)
Get the image (32x32 pixels) representing the given metaclass.
|
Image |
getImage(MClass metaclass)
Get the image (32x32 pixels) representing the given metaclass.
|
Image |
getImage(MObject element)
Get the standard metamodel image of an model object (usually 32x32 pixels).
|
Image |
getImage(MObject element,
IPeerModule filter)
Get the stereotyped image of an element (usually 32x32 pixels).
|
default Image |
getMetaclassImage(java.lang.Class<? extends MObject> metaclass)
Deprecated.
use
getIcon(Class) instead |
QualifiedImage |
getQualifiedIcon(MClass metaclass)
Get the small icon (16x16 pixels) representing the given metaclass as a
QualifiedImage . |
QualifiedImage |
getQualifiedIcon(MObject element,
IPeerModule filter)
Get the stereotyped icon of an element (usually 16x16 pixels) as a
QualifiedImage |
QualifiedImage |
getQualifiedImage(MClass metaclass)
Get the image (32x32 pixels) representing the given metaclass as a
QualifiedImage . |
QualifiedImage |
getQualifiedImage(MObject element,
IPeerModule filter)
Get the stereotyped image of an element (usually 32x32 pixels) as a
QualifiedImage . |
default Image |
getStereotypedImage(MObject element,
IPeerModule filter,
boolean useCmsDecoration)
Deprecated.
use
getIcon(MObject, IPeerModule) instead. |
Image |
getStereotypeIcon(Stereotype stereotype)
Get the icon provided by the module for a given stereotype (usually 16x16 pixels).
|
Image |
getStereotypeImage(Stereotype stereotype)
Get the image provided by the module for a given stereotype (usually 32x32 pixels).
|
default Image |
getUmlImage(MObject element,
boolean useCmsDecoration)
Deprecated.
use
getIcon(MObject) instead. |
Image getIcon(java.lang.Class<? extends MObject> metaclass)
metaclass
- Java interface of a metamodel metaclass.Image getIcon(MObject element)
This method return the standard icon of the model object ignoring the stereotypes owned by the object.
element
- the model object for which the icon must be displayed.Image getIcon(MObject element, IPeerModule filter)
The returned icon depends on the filter:
null
, the first stereotype belonging to that module having an icon is used. null
element
- the element for which the image must be returned.filter
- the module to use as filter.null
.Image getIcon(MClass metaclass)
metaclass
- A metamodel metaclass.Image getImage(java.lang.Class<? extends MObject> metaclass)
metaclass
- Java interface of a metamodel metaclass.Image getImage(MObject element)
This method return the standard image of the model object ignoring the stereotypes owned by the object.
element
- the model object for which the image must be displayed.Image getImage(MObject element, IPeerModule filter)
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.null
.Image getImage(MClass metaclass)
metaclass
- A metamodel metaclass.@Deprecated default Image getMetaclassImage(java.lang.Class<? extends MObject> metaclass)
getIcon(Class)
insteadmetaclass
- Java interface of a metamodel metaclass.QualifiedImage getQualifiedIcon(MObject element, IPeerModule filter)
QualifiedImage
The returned icon depends on the filter:
null
, the first stereotype belonging to that module having an icon is used. null
Note that the concept of first stereotype depends on the Modelio tool configuration especially the current workbench/expertises.
element
- the element for which the image must be returned.filter
- the module to use as filter.null
.QualifiedImage getQualifiedIcon(MClass metaclass)
QualifiedImage
.metaclass
- A metamodel metaclass.QualifiedImage getQualifiedImage(MObject element, IPeerModule filter)
QualifiedImage
.
The returned image depends on the filter:
null
, the first stereotype belonging to that module having an image is used. null
Note that the concept of first stereotype depends on the Modelio tool configuration especially the current workbench/expertises.
element
- the element for which the image must be returned.filter
- the module to use as filter.null
.QualifiedImage getQualifiedImage(MClass metaclass)
QualifiedImage
.metaclass
- A metamodel metaclass.Image getStereotypeIcon(Stereotype stereotype)
The life cycle of the returned image is handled by the owner module and the image should not be disposed.
stereotype
- a stereotypeImage getStereotypeImage(Stereotype stereotype)
The life cycle of the returned image is handled by the owner module and the image should not be disposed.
stereotype
- a stereotype@Deprecated default Image getStereotypedImage(MObject element, IPeerModule filter, boolean useCmsDecoration)
getIcon(MObject, IPeerModule)
instead.The returned icon depends on the filter:
null
, the first stereotype belonging to that module having an icon is used. null
element
- the element for which the image must be returned.filter
- the module to use as filter.useCmsDecoration
- this parameter is no longer used.null
.@Deprecated default Image getUmlImage(MObject element, boolean useCmsDecoration)
getIcon(MObject)
instead.This method return the standard icon of the model object ignoring the stereotypes owned by the object.
element
- the model object for which the icon must be displayed.useCmsDecoration
- this parameter is no longer used.