Class ConnectorView
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
com.nomagic.magicdraw.uml.symbols.paths.ConnectorView
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.LabelOwner
,com.nomagic.magicdraw.uml.symbols.LineJumpDrawer
,com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds<com.nomagic.magicdraw.uml.symbols.shapes.LinkEndView>
,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,NameOwner
,PropertyChangeListener
,Cloneable
,Comparable
,EventListener
- Direct Known Subclasses:
ConnectorToSelfView
@OpenApi
public class ConnectorView
extends com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathElement
BEZIER, LINE_STYLE, OBLIQUE, RECTILINEAR
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxy
Fields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, peStyle, SHADOW_WIDTH, SOLID_STROKE
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.StereotypesDisplayModeOwner
DSL_STEREOTYPE_DISPLAY_MODE_ALL, DSL_STEREOTYPE_DISPLAY_MODE_LAST, DSL_STEREOTYPE_DISPLAY_MODE_NONE, DSL_STEREOTYPE_DISPLAY_MODES, STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, STEREOTYPE_DISPLAY_MODE_ICON, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, STEREOTYPES_DISPLAY_MODES, STEREOTYPES_DISPLAY_MODES_SIMPLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.boolean
canAddInstance
(PresentationElement symbol) Object view has no children.boolean
void
protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper
protected void
createSmartListenerConfig
(List<SmartListenerConfig> configurations) Returns model element of this presentation element.protected Element
protected Element
static Property
getPartWithPortForView
(PresentationElement view, ConnectorView connectorView) Calculate partWithPort property valuegetType()
void
internalApplyProperties
(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies propertiesvoid
Silently applies all properties after initializationboolean
boolean
boolean
boolean
void
Sets client for this link.void
setShowConnectorEndA
(boolean show) void
setShowConnectorEndB
(boolean show) void
setShowInheritedSign
(boolean showInheritedSign) Show inherited signvoid
setShowType
(boolean showType) void
Sets supplier end for link.void
sSetShowConnectorEndA
(boolean show) void
sSetShowConnectorEndB
(boolean show) void
sSetShowInheritedSign
(boolean showInheritedSign) Show inherited signvoid
sSetShowType
(boolean showType) void
void
Updates partWithPort property for both connector ends.Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
calculateAlternativePoints, calculateAltPointsFromEndShapes, clone, getAltPoint1, getAltPoint2, getBoundsToRepaint, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getClientEndShape, getSupplierConnectionType, getSupplierEndShape, internalUpdatePresentationElement, layoutLabelOnNotifyBreakPointsChanged, notifyBreakPointsChanged, setAltPoint1, setAltPoint2, setElement, setLocationForChild, simpleSetBounds, sSetClientEndShape, sSetElement, sSetModelElementsForPathEndShapes, sSetSupplierEndShape
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
asPresentationElement, canDisplayConveyedInformation, createCompartmentElements, createInformationFlowSmartListenerConfig, createLabels, createStereotypeLabelWrapper, drawConveyedInformation, getCollections, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getConveyedInformationSourceToTargetLabelWrapper, getConveyedInformationTargetToSourceLabelWrapper, getConveyedSourceToTargetLabelBox, getConveyedTargetToSourceLabelBox, getDSLStereotypesDisplayMode, getElementLabel, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getPathAdornmentSize, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, internalGetLogicalClientElementForConveyedInformation, isShowConstraints, isShowConveyedSourceToTarget, isShowConveyedTargetToSource, isShowElementLabel, paintChildren, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setShowConstraints, setShowConveyedSourceToTarget, setShowConveyedTargetToSource, setStereotypesDisplayMode, setVisibleElements, setVisibleElements, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetShowConstraints, sSetShowConveyedSourceToTarget, sSetShowConveyedTargetToSource, sSetShowTaggedValues, sSetStereotypesDisplayMode
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
addLabel, addPresentationElement, canAddChild, clearShowsProxy, editName, getLabelHandler, getManipulatedElementAt, getName, getNameLabelBox, getNameLabelWrapper, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getProxyPresentationElementsStream, isChildVisible, isLabelWrapText, isNameWrapped, isShowNameBox, notifyBreakPointsChangedForElement, recursiveAutosize, removeLabel, removePresentationElement, sAddPresentationElement, setName, setNameResizeLabel, setNameWrapped, setPresentationElements, setShowNameBox, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, sRemovePresentationElement, sSetNameWrapped, sSetPresentationElements, sSetShowNameBox, sSetSuspendLabelAutoDisplayMode, updateChildren
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathElement
addConnectedPathElement, addLineJumps, applyStrokeForLineDrawing, askDeleteDataConfirmation, atInsert, breakPointsChanged, cacheActualDrawPoints, cacheValues, calculatePathBounds, canChangeClient, canChangeLineStyle, canChangeSupplier, canClearBreakPoints, clearClientTranslation, clearRegisteredLineJumpInfos, clearSupplierTranslation, connectModelElement, coversPoint, createFillStrategy, dispose, draw, draw, dynamicPathIcon, dynamicPathIcon, findOwnerForElement, findOwnerForElement, getActualClientDrawPoint, getActualSupplierDrawPoint, getAllBreakPoints, getBezierPath, getBezierPath, getBounds, getBreakPoint, getBreakPointCount, getBreakPoints, getCachedActualClientDrawPoint, getCachedActualSupplierDrawPoint, getClient, getClientConnectionType, getClientDrawPoint, getClientPoint, getCustomClientPoint, getCustomStereotypeIcon, getCustomSupplierPoint, getDefaultParentForData, getIndexOfCoveredPath, getIndexOfCoveredPathInternal, getIntersection, getLineJumpStartAngle, getLinkLineStyle, getMiddlePoint, getNearestLinkPart, getNearestPoint, getNewBreakPointIndex, getNewPointByTheLink, getNextEnd, getNextPoint, getNotCopyBounds, getOwnStyleDelegate, getPathIcon, getPathPainter, getPaths, getPointOnPath, getPreviousPoint, getSupplier, getSupplierDrawPoint, getSupplierPoint, getSuspendShapeAutoResizeMode, handleRemoveBreaksAction, hasClientPoint, hasManipulator, hasSharedModelElement, hasSupplierPoint, internalGetBoundsShape, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalMovedAsToSelf, internalSnapToGrid, intersects, intersectsInternal, isAlwaysToSelf, isBezier, isBezierIntersects, isBreakable, isConnectable, isConnectable, isDrawLineJumps, isFixed, isLinkLineStyleDefined, isOblique, isRectilinear, isRounded, isSmartLayoutNeeded, isSnapToGrid, isToSelf, isUseFlowLayoutLogic, isVertical, makeRectilinear, makeRectilinear, moveLinkToClientParent, movePathElement, needsToMoveOtherEnd, nextStyle, notifyRepaintManager, notifyRepaintManager, optimizeLoops, paintSelf, preDisposeOnUpdate, prepareForLineDrawing, registerLineJumpInfos, registerLineJumpStartAngle, removeBreakPoints, removeBreaks, removeRedundantBreakPoints, removeUnnecessaryBreakPoints, resetCache, resizeParent, sAddBreakPoint, sClearBreakPoints, setBounds, setBreakable, setBreakPoints, setCachedPathBounds, setClientPoint, setCustomClientPoint, setCustomSupplierPoint, setLineJumpPlace, setLinkLineStyle, setPathPainter, setRectilinear, setRounded, setSmartLayoutNeeded, setSupplierPoint, sSetBounds, sSetBreakable, sSetBreakPoint, sSetBreakPoints, sSetClient, sSetClientPoint, sSetLinkLineStyle, sSetParent, sSetRounded, sSetSupplier, sSetSupplierPoint, sSetSuspendShapeAutoResizeMode, swapEnds, translateClientPoint, translateSupplierPoint, useOtherExistingElement
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
checkShowsProxy, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, movePathElements, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, sSetVisibility, supportsVisibleConnectedPathElementsIfSelfInvisible
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addPresentationElementWithoutResize, addProperty, adjustBoundsBeforeChange, adjustChildBounds, adjustChildBoundsForMoving, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, autosizeAndResizeParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, disposePropertyChangeListener, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findOwnerForChildElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAdditionalRenderersToNotifyOnPropertiesChange, getAssignableModelElementsClasses, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getManipulationPreferredDimension, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolStyleOwner, getPreferredBounds, getPreferredDimension, getPreferredDimensionForAutosize, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, initialize, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, intersects, invalidate, isCanChildrenChangeEdge, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintChildrenBackground, paintSelfBackground, prepareForLineDrawing, prepareForShadowDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDummyResizeMode, setFillColor, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLocation, sSetLocation, sSetModelElement, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyle
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, setResourceIDProvider, 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, isSelfChangeable
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.LabelOwner
getModelElement
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.LineJumpDrawer
getLineWidth
Methods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds
asContainerLinkView
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, getProperty, getPropertyManager
-
Constructor Details
-
ConnectorView
public ConnectorView() -
ConnectorView
-
-
Method Details
-
createNameLabelWrapper
protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()- Overrides:
createNameLabelWrapper
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
accept
Description copied from interface:MDElement
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
getElement
Description copied from class:PresentationElement
Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
getElement
in interfacecom.nomagic.magicdraw.uml.symbols.LabelOwner
- Specified by:
getElement
in interfaceModelElementProvider
- Overrides:
getElement
in classPresentationElement
- Returns:
- model element of this presentation element.
-
canAddInstance
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
updateNameBox
public void updateNameBox()- Overrides:
updateNameBox
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
constructNameTextToDisplay
- Overrides:
constructNameTextToDisplay
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
- Returns:
- pure name text for displaying
-
isShowType
public boolean isShowType() -
setShowType
public void setShowType(boolean showType) -
sSetShowType
public void sSetShowType(boolean showType) -
isShowInheritedSign
public boolean isShowInheritedSign()- Returns:
- true if inherited sign is shown
-
sSetShowInheritedSign
public void sSetShowInheritedSign(boolean showInheritedSign) Show inherited sign- Parameters:
showInheritedSign
- show
-
setShowInheritedSign
public void setShowInheritedSign(boolean showInheritedSign) Show inherited sign- Parameters:
showInheritedSign
- show
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
-
createEndBoxes
public void createEndBoxes() -
isShowConnectorEndA
public boolean isShowConnectorEndA() -
isShowConnectorEndB
public boolean isShowConnectorEndB() -
setShowConnectorEndA
public void setShowConnectorEndA(boolean show) -
setShowConnectorEndB
public void setShowConnectorEndB(boolean show) -
sSetShowConnectorEndA
public void sSetShowConnectorEndA(boolean show) -
sSetShowConnectorEndB
public void sSetShowConnectorEndB(boolean show) -
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PathElement
Applies properties- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
- Parameters:
changer
- new properties
-
canHavePaths
public boolean canHavePaths()- Overrides:
canHavePaths
in classPresentationElement
- Returns:
- true if symbol can have connected paths. Return false here.
-
getModelElementForSupplierEndShape
- Specified by:
getModelElementForSupplierEndShape
in classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
getModelElementForClientEndShape
- Specified by:
getModelElementForClientEndShape
in classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
getType
-
setClient
Description copied from class:PathElement
Sets client for this link. Changes parent object to the parent of client. Client's parent will always contain incoming links.- Overrides:
setClient
in classPathElement
- Parameters:
obj
- shape to check
-
setSupplier
Description copied from class:PathElement
Sets supplier end for link. Removes this link from old shape. Inserts this link to new shape. Method also sets supplier point to the middle point of shape.- Overrides:
setSupplier
in classPathElement
- Parameters:
obj
- new supplier.
-
updatePartWithPortForConnectorEnds
public void updatePartWithPortForConnectorEnds()Updates partWithPort property for both connector ends. -
getPartWithPortForView
@CheckForNull public static Property getPartWithPortForView(PresentationElement view, ConnectorView connectorView) Calculate partWithPort property value- Parameters:
view
- symbol for which to calculate property valueconnectorView
- connector view- Returns:
- Property or null
-