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
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
- Direct Known Subclasses:
PathElement
,ShapeElement
@OpenApi public abstract class PathConnector extends PresentationElement
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Method accepts visitor, and calls method visit<class name>(this) of visitor .int
getConnectedPathElementCount()
Returns number of connected path elements.java.util.List<PathElement>
getConnectedPathElements()
Returns connected path elements.java.util.List<PathElement>
getConnectedPathElements(boolean incoming)
Returns connected path elements by direction.java.util.List<PathElement>
getConnectedPathElements(boolean incoming, boolean excludeToSelf)
Returns connected path elements by direction with an option to exclude paths to self-
Methods 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 Detail
-
getConnectedPathElements
@OpenApi public final java.util.List<PathElement> getConnectedPathElements()
Returns connected path elements. If element has no path elements returns empty list.- Returns:
- connected path elements. Collection is unmodifiable.
-
getConnectedPathElements
@OpenApi public java.util.List<PathElement> getConnectedPathElements(boolean incoming)
Returns connected path elements by direction.- Parameters:
incoming
- true if incoming paths should be selected, false if outgoing.- Returns:
- connected path elements.
-
getConnectedPathElements
@OpenApi public java.util.List<PathElement> getConnectedPathElements(boolean incoming, boolean excludeToSelf)
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.
-
-