Class DurationConstraintView
- java.lang.Object
-
- com.nomagic.magicdraw.uml.MDElementImpl
-
- com.nomagic.magicdraw.uml.ElementImpl
-
- 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.DurationConstraintView
-
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.LabelOwner
,com.nomagic.magicdraw.uml.symbols.LineJumpDrawer
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,NameOwner
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApi public class DurationConstraintView extends com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.AbstractConveyedInformationLabelWrapper, com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.ConveyedInformationSourceToTargetLabelWrapper, com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.ConveyedInformationTargetToSourceLabelWrapper
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData, com.nomagic.magicdraw.uml.symbols.PresentationElement.StructureCache
-
-
Field Summary
Fields Modifier and Type Field Description private static int
GAP
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
ARROW_ADORNMENT_SIZE, CONVEYED_BOX_A_DISTANCE, CONVEYED_BOX_B_DISTANCE
-
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, 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 Constructor Description DurationConstraintView()
DurationConstraintView(PresentationElement parent)
-
Method Summary
All Methods Static 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 .boolean
canBeDeleted()
Checks if element can be deleted from project.boolean
canChangeLineStyle()
boolean
canClearBreakPoints()
private static boolean
containsBreakpoint(java.awt.Point break1, java.awt.Rectangle clientPEBounds)
protected void
createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
void
draw(java.awt.Graphics2D g, java.awt.Point pt1, java.awt.Point pt2, java.util.List<java.awt.Point> breakPoints)
Draws link from given point pt1 through break points to given point pt2.private java.awt.Point
getClientConnectionPoint(PresentationElement view)
private java.awt.Point
getConnectionPoint(java.awt.Point point, PresentationElement pe, java.awt.Point break1, java.awt.Point break2)
Element
getDefaultParentForData()
Presentation element could suggest parent, which would be more acceptable, than adding to the client If returning null, general mechanism will workDurationConstraint
getElement()
Returns model element of this presentation element.java.awt.Point
getEndPoint(boolean forSupplier)
Returns client or supplier point of the end elementprivate static int
getGapByConnectedMessage(PresentationElement target)
method to determine if duration should be drawn to the left or right, when the client and supplier for the duration is the same target symbolprivate java.awt.Point
getLeftMostPoint(PresentationElement view)
java.awt.Point
getMessageIntersectionPoint(PresentationElement end, int x)
Returns point, where message link intersects straight line described by xjava.awt.Point
getMiddlePoint()
Calculates and returns middle point of link.private java.awt.Point
getRecalculatedConnectionPoint(PresentationElement pe, java.awt.Point defaultPoint)
private java.awt.Point
getRightMostPoint(PresentationElement view)
private java.awt.Point
getSeqBaseMessageIntersectionPoint(PresentationElement message, int x)
private java.awt.Point
getSeqBaseMessageNearestEnd(com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView message, boolean forSupplier)
private java.awt.Point
getShapeConnectionPoint(PresentationElement view, boolean forSupplier)
private java.awt.Point
getSupplierConnectionPoint(PresentationElement view)
int
getSupplierConnectionType()
protected void
internalUpdatePresentationElement()
Internal symbol update method for subclassing.private boolean
isFirstEventOf(PresentationElement view)
static boolean
isNoStateSet(PresentationElement pe)
private boolean
isSameEndsOfOppositeDirectionMessagesAreConnected(PresentationElement higher, PresentationElement lower)
void
pathMovedBy(PresentationElement end)
private void
recalculateBreakPoints(java.util.List<java.awt.Point> breakPoints, int breakPointIndex, int oppositeBreakPointIndex, PresentationElement pe)
private static boolean
rectanglesOverlapsByX(java.awt.Rectangle rClient, java.awt.Rectangle rSupplier)
void
resetToDefaultPosition()
Reset constraint view to the default positionprivate boolean
shouldDurationConstraintBeOnTheLeft(PresentationElement target)
void
updateNameBox()
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
canDisplayConveyedInformation, createCompartmentElements, createInformationFlowSmartListenerConfig, createLabels, createStereotypeLabelWrapper, drawConveyedInformation, getCollections, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getConveyedInformationSourceToTargetLabelWrapper, getConveyedInformationTargetToSourceLabelWrapper, getConveyedSourceToTargetLabelBox, getConveyedTargetToSourceLabelBox, getDSLStereotypesDisplayMode, getElementLabel, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getPathAdornmentSize, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, internalApplyProperties, internalGetLogicalClientElementForConveyedInformation, isShowConstraints, isShowConveyedSourceToTarget, isShowConveyedTargetToSource, isShowElementLabel, paintChildren, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setShowConstraints, setShowConveyedSourceToTarget, setShowConveyedTargetToSource, setStereotypesDisplayMode, setVisibleElements, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetShowConstraints, sSetShowConveyedSourceToTarget, sSetShowConveyedTargetToSource, sSetShowTaggedValues, sSetStereotypesDisplayMode
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
addLabel, addPresentationElement, canAddChild, canAddInstance, clearShowsProxy, clone, createNameLabelWrapper, editName, getLabelHandler, getManipulatedElementAt, getName, getNameLabelBox, getNameLabelWrapper, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getProxyPresentationElementsStream, internalSilentApply, isChildVisible, isLabelWrapText, isNameWrapped, isShowNameBox, layoutLabelOnNotifyBreakPointsChanged, notifyBreakPointsChanged, notifyBreakPointsChangedForElement, recursiveAutosize, removeLabel, removePresentationElement, sAddPresentationElement, setLocationForChild, setName, setNameResizeLabel, setNameWrapped, setPresentationElements, setShowNameBox, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, sRemovePresentationElement, sSetElement, 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, canChangeSupplier, clearClientTranslation, clearRegisteredLineJumpInfos, clearSupplierTranslation, coversPoint, dispose, draw, dynamicPathIcon, dynamicPathIcon, findOtherExistingElement, getActualClientDrawPoint, getActualSupplierDrawPoint, getAllBreakPoints, getBezierPath, getBezierPath, getBounds, getBoundsToRepaint, getBreakPoint, getBreakPointCount, getBreakPoints, getCachedActualClientDrawPoint, getCachedActualSupplierDrawPoint, getClient, getClientConnectionType, getClientDrawPoint, getClientPoint, getCustomClientPoint, getCustomStereotypeIcon, getCustomSupplierPoint, getIndexOfCoveredPath, getIndexOfCoveredPathInternal, getIntersection, getLineJumpStartAngle, getLinkLineStyle, getNearestLinkPart, getNearestPoint, getNewBreakPointIndex, getNewPointByTheLink, getNextEnd, getNextPoint, getNotCopyBounds, getPathIcon, getPathPainter, getPaths, getPointOnPath, getPreviousPoint, getSupplier, getSupplierDrawPoint, getSupplierPoint, getSuspendShapeAutoResizeMode, handleRemoveBreaksAction, hasClientPoint, hasManipulator, hasSharedData, hasSupplierPoint, internalGetBoundsShape, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalMovedAsToSelf, internalSnapToGrid, intersects, intersectsInternal, isAlwaysToSelf, isBezier, isBezierIntersects, isBreakable, isConnectable, isConnectable, isDrawLineJumps, isFixed, isOblique, isRectilinear, isRounded, isSmartLayoutNeeded, isSnapToGrid, isToSelf, isUseFlowLayoutLogic, isVertical, makeRectilinear, makeRectilinear, moveLinkToClientParent, movePathElement, needsToMoveOtherEnd, nextStyle, notifyRepaintManager, notifyRepaintManager, optimizeLoops, paintSelf, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, registerLineJumpInfos, registerLineJumpStartAngle, removeBreakPoints, removeBreaks, removeRedundantBreakPoints, removeUnnecessaryBreakPoints, resetCache, resizeParent, sAddBreakPoint, sClearBreakPoints, setBounds, setBreakable, setBreakPoints, setCachedPathBounds, setClient, setClientPoint, setCustomClientPoint, setCustomSupplierPoint, setLineJumpPlace, setLinkLineStyle, setPathPainter, setRectilinear, setRounded, setSmartLayoutNeeded, setSupplier, setSupplierPoint, simpleSetBounds, sSetBounds, sSetBreakable, sSetBreakPoint, sSetBreakPoints, sSetClient, sSetClientPoint, sSetLinkLineStyle, sSetParent, sSetRounded, sSetSupplier, sSetSupplierPoint, sSetSuspendShapeAutoResizeMode, swapEnds, translateClientPoint, translateSupplierPoint
-
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
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addPresentationElementWithoutResize, addProperty, adjustBoundsForMoving, adjustChildBounds, adjustChildBoundsForMoving, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, autosizeAndResizeParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, canFill, canHavePaths, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, disposeListener, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findParentForData, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElementNumberDisplayMode, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getManipulationPreferredDimension, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, getPreferredBounds, getPreferredDimension, getPreferredDimensionForAutosize, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRealPropertyManager, getRenderer, getSelected, getStereotypeColor, getStereotypeFont, getStringPropertyValue, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, initialize, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalSnapToGrid, invalidate, isCanChildrenChangeEdge, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintChildrenBackground, paintSelfBackground, prepareForLineDrawing, prepareForShadowDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDiagramSurface, setDummyResizeMode, setElement, setFillColor, setFont, setFontProperty, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setNeedRecreateListeners, setPropertyManager, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setStereotypeColor, setStereotypeFont, setStrokeIfNotTheSame, setTestUpdateFlag, setTextColor, setTextColorProperty, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLineWidth, sSetLocation, sSetLocation, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
GAP
private static final int GAP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DurationConstraintView
public DurationConstraintView()
-
DurationConstraintView
public DurationConstraintView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
getSupplierConnectionType
public int getSupplierConnectionType()
- Overrides:
getSupplierConnectionType
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
getDefaultParentForData
@CheckForNull public Element getDefaultParentForData()
Description copied from class:PathElement
Presentation element could suggest parent, which would be more acceptable, than adding to the client If returning null, general mechanism will work- Returns:
- parent for data
-
canBeDeleted
public boolean canBeDeleted()
Description copied from interface:BaseElement
Checks if element can be deleted from project. Element cannot be deleted if it is not isEditable(), parent is not set or parent does not allow to remove this element.- Specified by:
canBeDeleted
in interfaceBaseElement
- Overrides:
canBeDeleted
in classcom.nomagic.magicdraw.uml.MDElementImpl
- Returns:
- true, if element can be deleted from project.
- See Also:
BaseElement.isEditable()
-
getConnectionPoint
private java.awt.Point getConnectionPoint(java.awt.Point point, PresentationElement pe, java.awt.Point break1, java.awt.Point break2)
-
isNoStateSet
public static boolean isNoStateSet(PresentationElement pe)
-
draw
public void draw(java.awt.Graphics2D g, java.awt.Point pt1, java.awt.Point pt2, java.util.List<java.awt.Point> breakPoints)
Description copied from class:PathElement
Draws link from given point pt1 through break points to given point pt2.- Parameters:
g
- graphicspt1
- first pointpt2
- second pointbreakPoints
- points between supplier and client points, in that order
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
-
internalUpdatePresentationElement
protected void internalUpdatePresentationElement()
Description copied from class:PresentationElement
Internal symbol update method for subclassing. It is called from update as part of full update action.- Overrides:
internalUpdatePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
- See Also:
PresentationElement.update()
-
pathMovedBy
public void pathMovedBy(PresentationElement end)
-
getRecalculatedConnectionPoint
private java.awt.Point getRecalculatedConnectionPoint(PresentationElement pe, java.awt.Point defaultPoint)
-
recalculateBreakPoints
private void recalculateBreakPoints(java.util.List<java.awt.Point> breakPoints, int breakPointIndex, int oppositeBreakPointIndex, PresentationElement pe)
-
containsBreakpoint
private static boolean containsBreakpoint(java.awt.Point break1, java.awt.Rectangle clientPEBounds)
-
getEndPoint
public java.awt.Point getEndPoint(boolean forSupplier)
Returns client or supplier point of the end element- Parameters:
forSupplier
- true if point is calculated for supplier end of this link- Returns:
- nearest end
-
getSeqBaseMessageNearestEnd
private java.awt.Point getSeqBaseMessageNearestEnd(com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView message, boolean forSupplier)
-
getMessageIntersectionPoint
public java.awt.Point getMessageIntersectionPoint(PresentationElement end, int x)
Returns point, where message link intersects straight line described by x- Parameters:
end
- endx
- coordinate- Returns:
- point
-
getSeqBaseMessageIntersectionPoint
@Nonnull private java.awt.Point getSeqBaseMessageIntersectionPoint(PresentationElement message, int x)
-
updateNameBox
public void updateNameBox()
- Overrides:
updateNameBox
in classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
resetToDefaultPosition
public void resetToDefaultPosition()
Reset constraint view to the default position
-
rectanglesOverlapsByX
private static boolean rectanglesOverlapsByX(java.awt.Rectangle rClient, java.awt.Rectangle rSupplier)
-
isSameEndsOfOppositeDirectionMessagesAreConnected
private boolean isSameEndsOfOppositeDirectionMessagesAreConnected(PresentationElement higher, PresentationElement lower)
-
shouldDurationConstraintBeOnTheLeft
private boolean shouldDurationConstraintBeOnTheLeft(PresentationElement target)
-
getGapByConnectedMessage
private static int getGapByConnectedMessage(PresentationElement target)
method to determine if duration should be drawn to the left or right, when the client and supplier for the duration is the same target symbol
-
getSupplierConnectionPoint
private java.awt.Point getSupplierConnectionPoint(PresentationElement view)
-
getClientConnectionPoint
private java.awt.Point getClientConnectionPoint(PresentationElement view)
-
getShapeConnectionPoint
private java.awt.Point getShapeConnectionPoint(PresentationElement view, boolean forSupplier)
-
isFirstEventOf
private boolean isFirstEventOf(PresentationElement view)
-
getLeftMostPoint
private java.awt.Point getLeftMostPoint(PresentationElement view)
-
getRightMostPoint
private java.awt.Point getRightMostPoint(PresentationElement view)
-
getMiddlePoint
public java.awt.Point getMiddlePoint()
Description copied from class:PathElement
Calculates and returns middle point of link. For this link it is average between supplier's and client's points.- Returns:
- middle point.
-
getElement
public DurationConstraint 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.
-
canChangeLineStyle
public boolean canChangeLineStyle()
- Returns:
- true if this link can change line style.
-
canClearBreakPoints
public boolean canClearBreakPoints()
- Returns:
- true if link can be modified (all break points can be removed):
-
-