Class DisplayPathElements
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.DisplayPathElements
-
@OpenApiAll public class DisplayPathElements extends java.lang.Object
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
Nested Classes Modifier and Type Class Description static class
DisplayPathElements.DisplayPathOptions
Display path elements options
-
Constructor Summary
Constructors Constructor Description DisplayPathElements()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<PresentationElement>
displayPathElements(java.util.Collection<PresentationElement> symbols)
Display paths from the given symbols.static java.util.Collection<PresentationElement>
displayPathElements(java.util.Collection<PresentationElement> symbols, DisplayPathElements.DisplayPathOptions options)
Display paths from the given symbols.
-
-
-
Method Detail
-
displayPathElements
public static java.util.Collection<PresentationElement> displayPathElements(java.util.Collection<PresentationElement> symbols)
Display paths from the given symbols.- Parameters:
symbols
- given symbols. All symbols should be from the same diagram
-
displayPathElements
public static java.util.Collection<PresentationElement> displayPathElements(java.util.Collection<PresentationElement> symbols, DisplayPathElements.DisplayPathOptions options)
Display paths from the given symbols.- Parameters:
symbols
- given symbols. All symbols should be from the same diagram
-
-