@OpenApiAll
public class ElementIcon
extends java.lang.Object
ClassTypes
for useful utility methods to work with class types.
Use BaseElement.getClassType()
to retrieve class type of the Element.Constructor and Description |
---|
ElementIcon() |
Modifier and Type | Method and Description |
---|---|
static ResizableIcon |
get16x16Icon(ResizableIcon icon)
Return scaled down to 16x16 icon for a given icon
|
static ResizableIcon |
getIcon(BaseElement element)
Returns icon for a given element
|
static ResizableIcon |
getIcon(BaseElement element,
boolean hideCustomPathStyle)
Returns icon for a given element
|
static ResizableIcon |
getIconByClassType(java.lang.Class classType)
Returns icon by class type of the element.
|
static ResizableIcon |
getIconByClassType(java.lang.Class classType,
java.util.Collection<Stereotype> stereotypes)
Returns icon, according class type and stereotypes.
|
static ResizableIcon |
getIconByClassType(java.lang.Class classType,
Stereotype stereotype)
Returns icon by class type and stereotype.
|
static ResizableIcon |
getIconByDiagramType(DiagramPresentationElement diagram)
Returns icon by diagram type.
|
static ResizableIcon |
getIconByDiagramType(java.lang.String diagramType)
Returns icon by diagram type
|
static ResizableIcon |
getIconByType(BaseElement element)
Returns image, according element meta type.
|
static ResizableIcon |
getSVGIconByDiagramType(java.lang.String diagramType)
Returns SVG icon by diagram type
|
static java.util.Map<java.lang.Class,ResizableIcon> |
internalGetIconByTypeMap() |
public static final ResizableIcon NONE_ICON
public static final ResizableIcon SYMBOL_ADORNMENT
public static final ResizableIcon ABSTRACT_CLASS
public static final ResizableIcon METACLASS
public static final ResizableIcon LINK
public static final ResizableIcon USECASE_INSTANCE
public static final ResizableIcon SUBSYSTEM_INSTANCE
public static final ResizableIcon COMPONENT_INSTANCE
public static final ResizableIcon NODE_INSTANCE
public static final ResizableIcon ARTIFACT_INSTANCE
public static final ResizableIcon DEVICE_INSTANCE
public static final ResizableIcon EXECUTION_ENVIRONMENT_INSTANCE
public static final ResizableIcon ARTIFACT_DEPLOYMENT_INSTANCE
public static final ResizableIcon CALL_MESSAGE
public static final ResizableIcon CREATE_MESSAGE
public static final ResizableIcon DESTROY_MESSAGE
public static final ResizableIcon SEND_MESSAGE
public static final ResizableIcon REPLY_MESSAGE
public static final ResizableIcon ASSEMBLY_CONNECTOR
public static final ResizableIcon DELEGATION_CONNECTOR
public static final ResizableIcon PROFILE_MODEL_LIBRARY
public static final ResizableIcon MODEL_MODEL_LIBRARY
public static final ResizableIcon PACKAGE_MODEL_LIBRARY
public static final ResizableIcon DIRECTED_ASSOCIATION
public static final ResizableIcon DIRECTED_AGGREGATION
public static final ResizableIcon AGGREGATION
public static final ResizableIcon COMPOSITION
public static final ResizableIcon DIRECTED_COMPOSITION
public static final ResizableIcon NON_NAVIGABLE_ASSOCIATION
public static final ResizableIcon ACCEPT_TIME_EVENT_ACTION
public static final ResizableIcon SUBSYSTEM
public static final ResizableIcon COMPOSITE_STATE
public static final ResizableIcon SUBMACHINE_STATE
public static final ResizableIcon CONCURRENT_STATE
public static final ResizableIcon INITIAL_PSEUDO_STATE
public static final ResizableIcon DEEP_HISTORY_PSEUDO_STATE
public static final ResizableIcon SHALLOW_HISTORY_PSEUDO_STATE
public static final ResizableIcon JOIN_PSEUDO_STATE
public static final ResizableIcon FORK_PSEUDO_STATE
public static final ResizableIcon JUNCTION_PSEUDO_STATE
public static final ResizableIcon CHOICE_PSEUDO_STATE
public static final ResizableIcon ENTRY_POINT_PSEUDO_STATE
public static final ResizableIcon EXIT_POINT_PSEUDO_STATE
public static final ResizableIcon TERMINATE_PSEUDO_STATE
public static final ResizableIcon DOCUMENTATION
public static java.util.Map<java.lang.Class,ResizableIcon> internalGetIconByTypeMap()
@CheckForNull public static ResizableIcon get16x16Icon(@CheckForNull ResizableIcon icon)
icon
- icon@CheckForNull public static ResizableIcon getIcon(@CheckForNull BaseElement element)
element
- the Element@CheckForNull public static ResizableIcon getIcon(@CheckForNull BaseElement element, boolean hideCustomPathStyle)
element
- the ElementhideCustomPathStyle
- if true custom path style icon is skipped and standard relationship icons is returned@CheckForNull public static ResizableIcon getIconByClassType(java.lang.Class classType, @CheckForNull Stereotype stereotype)
classType
- class typestereotype
- given stereotype@CheckForNull public static ResizableIcon getIconByClassType(java.lang.Class classType, java.util.Collection<Stereotype> stereotypes)
classType
- class typestereotypes
- given stereotypes@CheckForNull public static ResizableIcon getIconByClassType(java.lang.Class classType)
classType
- class type.@CheckForNull public static ResizableIcon getIconByType(@CheckForNull BaseElement element)
element
- element@CheckForNull public static ResizableIcon getIconByDiagramType(DiagramPresentationElement diagram)
diagram
- the diagram@CheckForNull public static ResizableIcon getIconByDiagramType(java.lang.String diagramType)
diagramType
- the diagram.@CheckForNull public static ResizableIcon getSVGIconByDiagramType(java.lang.String diagramType)
diagramType
- the diagram.