@OpenApiAll
public class DisplayPathElements
extends java.lang.Object
Provides API to the display connected path elements in the diagram.
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);
Modifier and Type | Class and Description |
---|---|
static class |
DisplayPathElements.DisplayPathOptions
Display path elements options
|
Constructor and Description |
---|
DisplayPathElements() |
Modifier and Type | Method and 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.
|
public static java.util.Collection<PresentationElement> displayPathElements(java.util.Collection<PresentationElement> symbols)
symbols
- given symbols. All symbols should be from the same diagrampublic static java.util.Collection<PresentationElement> displayPathElements(java.util.Collection<PresentationElement> symbols, DisplayPathElements.DisplayPathOptions options)
symbols
- given symbols. All symbols should be from the same diagram