Class SymbolElementMap
java.lang.Object
com.nomagic.magicdraw.uml.symbols.SymbolElementMap
Maps model elements to presentation elements of loaded diagrams.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllPresentationElements
(Element element) Returns all presentation elements for specified model element.getAllPresentationElements
(Element element, AbstractDiagramPresentationElement diagram) Returns all presentation elements for specified model element in a given diagram.getAllPresentationElements
(Element element, Collection<? extends AbstractDiagramPresentationElement> diagrams) Returns all presentation elements for specified model element in a given diagram.getPresentationElement
(Element element) Returns presentation element for specified model element.
-
Method Details
-
getPresentationElement
Returns presentation element for specified model element. Presentation element of loaded diagrams only is returned.- Parameters:
element
- model element- Returns:
- first presentation element for specified model element.
-
getAllPresentationElements
Returns all presentation elements for specified model element. Presentation elements of loaded diagrams only are returned.- Parameters:
element
- model element.- Returns:
- list of
PresentationElement
objects.
-
getAllPresentationElements
@OpenApi public List<PresentationElement> getAllPresentationElements(@CheckForNull Element element, AbstractDiagramPresentationElement diagram) Returns all presentation elements for specified model element in a given diagram.- Parameters:
element
- model elementdiagram
- diagram in which returned symbols should be used- Returns:
- list of
PresentationElement
objects
-
getAllPresentationElements
@OpenApi public List<PresentationElement> getAllPresentationElements(@CheckForNull Element element, Collection<? extends AbstractDiagramPresentationElement> diagrams) Returns all presentation elements for specified model element in a given diagram.- Parameters:
element
- model elementdiagrams
- diagram in which returned symbols should be used- Returns:
- list of
PresentationElement
objects
-