Class DisplayPathElements
java.lang.Object
com.nomagic.magicdraw.uml.symbols.DisplayPathElements
Provides API to the display connected path elements in the diagram.
Example: Displaying related generalizations and interface realizations
SessionManager sessionManager = SessionManager.getInstance(); sessionManager.createSession(project, "Display paths"); PresentationElement view = ...; // A symbol for which you want to display paths DisplayPathElements.displayPathElements(Collections.singleton(view)); //For multiple symbol to display paths use the code below List<PresentationElement> viewList = ...; //List of symbols for which you need to invoke the displaying paths action. DisplayPathElements.displayPathElements(viewList); sessionManager.closeSession(project);
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Display path elements options -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<PresentationElement>
displayPathElements
(Collection<PresentationElement> symbols) Display paths from the given symbols.static Collection<PresentationElement>
displayPathElements
(Collection<PresentationElement> symbols, DisplayPathElements.DisplayPathOptions options) Display paths from the given symbols.
-
Constructor Details
-
DisplayPathElements
public DisplayPathElements()
-
-
Method Details
-
displayPathElements
public static Collection<PresentationElement> displayPathElements(Collection<PresentationElement> symbols) Display paths from the given symbols.- Parameters:
symbols
- given symbols. All symbols should be from the same diagram
-
displayPathElements
public static Collection<PresentationElement> displayPathElements(Collection<PresentationElement> symbols, DisplayPathElements.DisplayPathOptions options) Display paths from the given symbols.- Parameters:
symbols
- given symbols. All symbols should be from the same diagram
-