Class PathConnector
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
- All Implemented Interfaces:
BaseElement
,MDElement
,ModelElementProvider
,NameOwner
,PropertyChangeListener
,Cloneable
,Comparable
,EventListener
- Direct Known Subclasses:
PathElement
,ShapeElement
This class is base class for presentation elements connectible by some path element.
This means that instance of this class can have incoming or outgoing path elements.
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DOTTED_STROKE, SOLID_STROKE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts visitor, and calls method visit<class name>(this) of visitor .final int
Returns number of connected path elements.final List<PathElement>
Returns connected path elements.getConnectedPathElements
(boolean incoming) Returns connected path elements by direction.getConnectedPathElements
(boolean incoming, boolean excludeToSelf) Returns connected path elements by direction with an option to exclude paths to selfMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addProperty, collectSubManipulatedElements, editName, editName, getBounds, getBoundsShape, getDiagramPresentationElement, getDiagramSurface, getElement, getManipulatedParent, getManipulatedPresentationElements, getMiddlePoint, getObjectParent, getParent, getPreferredDimension, getPreferredSize, getPresentationElements, getPresentationElementStroke, getPresentationElementStroke, getProperty, getPropertyManager, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, hasManipulatedPresentationElements, isSelected, onFind, onFind, setAllSelected, setSelected, setSelected, useParentProperties
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getName, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd
-
Method Details
-
getConnectedPathElements
Returns connected path elements. If element has no path elements returns empty list.- Returns:
- connected path elements. Collection is unmodifiable.
-
getConnectedPathElements
Returns connected path elements by direction.- Parameters:
incoming
- true if incoming paths should be selected, false if outgoing.- Returns:
- connected path elements.
-
getConnectedPathElements
Returns connected path elements by direction with an option to exclude paths to self- Parameters:
incoming
- true if incoming paths should be selected, false if outgoing.excludeToSelf
- true if paths with source equal to target should not be added to the list, false to include them- Returns:
- connected path elements.
-
getConnectedPathElementCount
@OpenApi public final int getConnectedPathElementCount()Returns number of connected path elements.- Returns:
- number of connected path elements.
-
accept
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-