Class DisplayPathElements.DisplayPathOptions
java.lang.Object
com.nomagic.magicdraw.uml.symbols.DisplayPathElements.DisplayPathOptions
- Enclosing class:
- DisplayPathElements
Display path elements options
-
Constructor Summary
ConstructorsConstructorDescriptionDefault options.DisplayPathOptions(boolean displayRelationships, boolean createTrees, boolean displayContainmentLinks, boolean displayNoteAnchors) Constructor -
Method Summary
Modifier and TypeMethodDescriptionPredicate<com.dassault_systemes.modeler.foundation.model.ModelElement>com.nomagic.utils.TriFunction<com.dassault_systemes.modeler.foundation.model.ModelElement,PresentationElement, PresentationElement, Boolean> booleanbooleanbooleanbooleanbooleanvoidsetCreateTrees(boolean createTrees) Display treesvoidsetDisplayContainmentLinks(boolean displayContainmentLinks) Display Containment linksvoidsetDisplayNoteAnchors(boolean displayNoteAnchors) Display Note AnchorsvoidsetDisplayPathsToSelf(boolean displayPathsToSelf) Display paths to selfvoidsetDisplayRelationships(boolean displayRelationships) Display Relationships (all connected Relationships in the model)voidsetElementFilter(Predicate<com.dassault_systemes.modeler.foundation.model.ModelElement> elementFilter) Set filter for model elementsvoidsetOnlyBetweenThese(Collection<PresentationElement> onlyBetweenThese) Display paths only among given symbols.voidsetRelationshipFilter(com.nomagic.utils.TriFunction<com.dassault_systemes.modeler.foundation.model.ModelElement, PresentationElement, PresentationElement, Boolean> relationshipFilter) Set Relationships filter
-
Constructor Details
-
DisplayPathOptions
public DisplayPathOptions()Default options. Trees, containment links and note anchors will be displayed -
DisplayPathOptions
public DisplayPathOptions(boolean displayRelationships, boolean createTrees, boolean displayContainmentLinks, boolean displayNoteAnchors) Constructor- Parameters:
createTrees- create trees for Generalizations, InterfaceRealizationsdisplayContainmentLinks- display Containment linksdisplayNoteAnchors- display Note Anchors
-
-
Method Details
-
isDisplayRelationships
public boolean isDisplayRelationships()- Returns:
- true if relationships should be displayed
-
setDisplayRelationships
public void setDisplayRelationships(boolean displayRelationships) Display Relationships (all connected Relationships in the model)- Parameters:
displayRelationships- value
-
isCreateTrees
public boolean isCreateTrees()- Returns:
- true if trees should be displayed
-
setCreateTrees
public void setCreateTrees(boolean createTrees) Display trees- Parameters:
createTrees- flag
-
isDisplayContainmentLinks
public boolean isDisplayContainmentLinks()- Returns:
- true if containment links should be displayed
-
setDisplayContainmentLinks
public void setDisplayContainmentLinks(boolean displayContainmentLinks) Display Containment links- Parameters:
displayContainmentLinks- value
-
isDisplayNoteAnchors
public boolean isDisplayNoteAnchors()- Returns:
- true if note anchors should be displayed
-
setDisplayNoteAnchors
public void setDisplayNoteAnchors(boolean displayNoteAnchors) Display Note Anchors- Parameters:
displayNoteAnchors- value
-
getOnlyBetweenThese
- Returns:
- paths will be created only among given symbols. If null, paths will be created among any symbols in the diagram
-
setOnlyBetweenThese
Display paths only among given symbols.- Parameters:
onlyBetweenThese- paths will be created only among given symbols. If null, paths will be created among any symbols in the diagram
-
isDisplayPathsToSelf
public boolean isDisplayPathsToSelf()- Returns:
- true if paths to self should be displayed
-
setDisplayPathsToSelf
public void setDisplayPathsToSelf(boolean displayPathsToSelf) Display paths to self- Parameters:
displayPathsToSelf- value
-
setElementFilter
public void setElementFilter(@CheckForNull Predicate<com.dassault_systemes.modeler.foundation.model.ModelElement> elementFilter) Set filter for model elements- Parameters:
elementFilter- predicate
-
getElementFilter
@CheckForNull public Predicate<com.dassault_systemes.modeler.foundation.model.ModelElement> getElementFilter()- Returns:
- filter for elements
-
setRelationshipFilter
public void setRelationshipFilter(com.nomagic.utils.TriFunction<com.dassault_systemes.modeler.foundation.model.ModelElement, PresentationElement, PresentationElement, Boolean> relationshipFilter) Set Relationships filter- Parameters:
relationshipFilter- triFunction
-
getRelationshipFilter
public com.nomagic.utils.TriFunction<com.dassault_systemes.modeler.foundation.model.ModelElement,PresentationElement, getRelationshipFilter()PresentationElement, Boolean> - Returns:
- filter for relationships
-