Class MessageView
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.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.MessageView
- All Implemented Interfaces:
BaseElement,com.nomagic.magicdraw.uml.CompartmentSupport,MDElement,ModelElementProvider,com.nomagic.magicdraw.uml.symbols.LabelOwner,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape,NumberedMessageView,com.nomagic.magicdraw.uml.symbols.paths.PathCustomDraw,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class MessageView
extends com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
implements NumberedMessageView, com.nomagic.magicdraw.uml.symbols.paths.PathCustomDraw
The
MessageView class is used for displaying the message
icon in Communication diagram of UML Drawing Tool.
This class has the reference to the data class - MessageData.- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
BORDER_ELEMENT_MARGIN_ALL, BORDER_ELEMENT_MARGIN_BOTTOM, BORDER_ELEMENT_MARGIN_LEFT, BORDER_ELEMENT_MARGIN_LEFT_RIGHT, BORDER_ELEMENT_MARGIN_MODES, BORDER_ELEMENT_MARGIN_NONE, BORDER_ELEMENT_MARGIN_RIGHT, BORDER_ELEMENT_MARGIN_TOP, BORDER_ELEMENT_MARGIN_TOP_BOTTOM, BOTTOM_EDGE, INSIDE_EDGE_POSITION, LEFT_EDGE, NEED_AUTOSIZE_FULL, NEED_AUTOSIZE_LAYOUT, NEED_AUTOSIZE_NONE, NO_EDGE, NULL_INSETS, ON_EDGE_POSITION, OUTSIDE_EDGE_POSITION, RIGHT_EDGE, SPACE, SPACE_INSETS, SPACE_INSETS_EMPTY_TOP_BOTTOM, TOP_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxyFields 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_STROKEFields 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 TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.voidaddPresentationElement(PresentationElement element, int index, boolean resize) If a specified object not inserted in this container then adds a new object view to the container.voidautosize(boolean calculatePrefSize) Calculate preferred size and make this shape size at least as preferred (if size is smaller)voidautosizeByChildren(boolean calculatePrefSize) booleancanAddInstance(PresentationElement symbol) Object view has no children.booleancanChangeParent(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.booleanprotected booleanclone()static StringconstructMessageText(Message message, boolean showAttributesAndParameters) booleancoversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks if object covers provided pointprotected voidprotected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapperprotected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) com.dassault_systemes.modeler.foundation.image.pathicon.PathIconcom.dassault_systemes.modeler.foundation.image.pathicon.PathIcondynamicPathIcon(com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon pathIcon) com.dassault_systemes.modeler.foundation.model.ModelElementfindOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) Return bounds of the symbol that must be repainted.com.nomagic.ui.UnmodifiableInsetsgetChildrenInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) intReturns model element of this presentation element.Message represented by the view.com.nomagic.magicdraw.uml.symbols.shapes.MessageSignatureViewReturns the signature view from the container of this message.com.nomagic.magicdraw.uml.symbols.shapes.MessageNameLabelWrappergetNearestLinkPart(int x, int y) Returns nearest link part to specified point.Returns number of the messagecom.nomagic.magicdraw.uml.symbols.MessageNumberManagercom.dassault_systemes.modeler.foundation.image.pathicon.PathIconget definition of custom path ending (arrow, circle, icon, etc.) and stroke (dashed, solid, etc.)getStroke(boolean line) This method must be overridden, if you need to use DASHED_STROKE or another one.getStroke(boolean line, int lineStyle) This method must be overridden, if you need to use DASHED_STROKE or another one.booleanReturns true ifModelElementof this symbol can represented with other symbol.voidInitialize symbol and its children state.voidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managervoidSilently applies all properties after initializationbooleanintersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks whether object intersects with given rectanglebooleanprotected voidvoidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) protected voidprefDimensionByManipulatedChildren(Dimension pref, int locationX, int locationY) protected voidpreferredSizeIgnoringOrientation(Dimension pref, int locationX, int locationY) protected booleanprepareForLineDrawing(Graphics2D g, boolean line) Prepares graphics for line drawing.voidListens for property change it can be: data was edited text box was editedvoidResize recursively all symbols.static voidvoidMethod that initiates parent resize to accommodate children if some child's bounds are changed.voidsetDirection(int direction) static voidsetMessageLabelNumberText(PresentationElement owner, com.nomagic.magicdraw.uml.symbols.shapes.MessageNameLabelWrapper nameLabelWrapper) voidsetNumberManager(com.nomagic.magicdraw.uml.symbols.MessageNumberManager numberManager) voidsetReceiver(PresentationElement receiver) voidsetSender(PresentationElement sender) voidsetShowPredecessors(boolean show) Sets show predecessors list.voidsimpleSetBounds(Rectangle rect, boolean moveChildren, boolean calculatePrefSize) Sets bounds for this container shape view and all its componentsvoidsSetShowPredecessors(boolean show) voidMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
createConstraintLabelWrapper, createElementPropertiesLabelWrapper, createStereotypeLabelWrapper, createTaggedValueLabelWrapper, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, isShowConstraints, isShowElementProperties, isShowNumberTagName, isShowTaggedValues, setConstraintTextMode, setDSLStereotypesDisplayMode, setShowConstraints, setShowElementProperties, setShowTaggedValues, setStereotypesDisplayMode, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElementNumberDisplayMode, sSetShowConstraints, sSetShowElementProperties, sSetShowNumberTagName, sSetShowTaggedValues, sSetStereotypesDisplayMode, updateAfterLoadMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
addLabel, asPresentationElement, canBeAutosized, createCompartmentElements, edgeChanged, editName, getCollections, getHeaderBoundsForPreferredBounds, getLabelHandler, getName, getNameLabelBox, internalAppendChildRect, internalPostUpdatePresentationElement, isLabelWrapText, isShowName, isShowText, isWordWrap, removeLabel, setCollections, setName, setNameResizeLabel, setShowName, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, setVisibleElements, setWordWrap, sSetElement, sSetName, sSetShowName, sSetSuspendLabelAutoDisplayMode, sSetWordWrapMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, createBoundsShape, createStateForUpdateOperation, doInternalLayoutChildren, getAdditionalHeaderHeightForPreferredBounds, getChildrenBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderMaxYForShrinkableShape, getHeaderObject, getHeaderVerticalPosition, getHeaderVerticalPositionForLayout, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, getStereotypesToDisplay, internalGetHeaderBoundsForPreferredBounds, internalGetHeaderInsets, internalLayoutChildren, internalPostSpecificUpdate, internalPreSpecificUpdate, internalSpecificUpdate, internalUpdatePresentationElement, invalidate, isBorderVisible, isChildLayoutable, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, paintChildren, preferredDimension, setHeaderObject, setHeaderVerticalPosition, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientationMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, removePresentationElement, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, sRemovePresentationElement, sSetPresentationElementsMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, clearOldRect, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDefaultDimension, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getPreferredDimensionForAutosize, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, internalGetBoundsShape, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLaterMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, dispose, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsert, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, disposePropertyChangeListener, draw, 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, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, 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, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getOwnStyleDelegate, getParent, getParentSymbolStyleOwner, 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, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, intersects, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setElement, 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, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyleMethods 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, sGetIDMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeableMethods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointYMethods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElementsMethods inherited from interface com.nomagic.magicdraw.uml.symbols.LabelOwner
getModelElementMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.paths.PathCustomDraw
getLineWidthMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
TO_RIGHT
public static final int TO_RIGHT- See Also:
-
TO_LEFT
public static final int TO_LEFT- See Also:
-
DISTANCE_FROM_LINK
public static final int DISTANCE_FROM_LINK- See Also:
-
-
Constructor Details
-
MessageView
public MessageView() -
MessageView
-
-
Method Details
-
createNameLabelWrapper
protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()- Overrides:
createNameLabelWrapperin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
createLabels
protected void createLabels()- Overrides:
createLabelsin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
getNameLabelWrapper
public com.nomagic.magicdraw.uml.symbols.shapes.MessageNameLabelWrapper getNameLabelWrapper()- Overrides:
getNameLabelWrapperin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
-
getMessageSignatureLabelBox
public com.nomagic.magicdraw.uml.symbols.shapes.MessageSignatureView getMessageSignatureLabelBox()Returns the signature view from the container of this message. Data flows are contained in it too.- Returns:
- the
MessageSignatureView
-
updateNameBox
public void updateNameBox()- Overrides:
updateNameBoxin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
constructNameText
- Overrides:
constructNameTextin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
constructMessageText
-
setMessageLabelNumberText
public static void setMessageLabelNumberText(PresentationElement owner, com.nomagic.magicdraw.uml.symbols.shapes.MessageNameLabelWrapper nameLabelWrapper) -
preferredSizeIgnoringOrientation
- Overrides:
preferredSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
minimumSizeIgnoringOrientation
- Overrides:
minimumSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
simpleSetBounds
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewSets bounds for this container shape view and all its components- Overrides:
simpleSetBoundsin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels- Parameters:
rect- container shape view bounding rectanglemoveChildren- if moveChildren equals true then this method callscalculatePrefSize- calculate preferred size
-
getNearestLinkPart
Returns nearest link part to specified point. -
addPresentationElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewIf a specified object not inserted in this container then adds a new object view to the container.- Overrides:
addPresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
element- new PresentationElement objectindex- index to add atresize- resize parent
-
dynamicPathIcon
@CheckForNull public com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon dynamicPathIcon() -
dynamicPathIcon
public com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon dynamicPathIcon(@CheckForNull com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon pathIcon) -
getPathIcon
@CheckForNull public com.dassault_systemes.modeler.foundation.image.pathicon.PathIcon getPathIcon()Description copied from interface:com.nomagic.magicdraw.uml.symbols.paths.PathCustomDrawget definition of custom path ending (arrow, circle, icon, etc.) and stroke (dashed, solid, etc.)- Specified by:
getPathIconin interfacecom.nomagic.magicdraw.uml.symbols.paths.PathCustomDraw- Returns:
- custom path end draw, null if not specified
- See Also:
-
PathIcon
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintSelfin classPresentationElement
-
clone
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
-
canHavePaths
public boolean canHavePaths()- Overrides:
canHavePathsin classShapeElement- Returns:
- true if symbol can have connected paths. Return false here.
-
coversPoint
public boolean coversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementchecks if object covers provided point- Overrides:
coversPointin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- Returns:
- true if object covers this point
-
accept
Description copied from interface:MDElementMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
resizeParent
public void resizeParent()Description copied from class:PresentationElementMethod that initiates parent resize to accommodate children if some child's bounds are changed.- Overrides:
resizeParentin classPresentationElement
-
prefDimensionByManipulatedChildren
- Overrides:
prefDimensionByManipulatedChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
autosizeByChildren
public void autosizeByChildren(boolean calculatePrefSize) - Overrides:
autosizeByChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
autosize
public void autosize(boolean calculatePrefSize) Description copied from class:ShapeElementCalculate preferred size and make this shape size at least as preferred (if size is smaller)- Overrides:
autosizein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- Parameters:
calculatePrefSize- calculate preferred size
-
initialize
public void initialize()Description copied from class:PresentationElementInitialize symbol and its children state. Symbol must be initialized before doing any resize, painting and etc. These operations can lead to unpredictable results otherwise.- Overrides:
initializein classShapeElement
-
recursiveAutosize
public void recursiveAutosize()Description copied from class:PresentationElementResize recursively all symbols. Method must be called if something is changed in symbol (for example minimum size) and you want to resize (autosize) all hierarchy- Overrides:
recursiveAutosizein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
setDirection
public void setDirection(int direction) -
getDirection
public int getDirection() -
intersects
public boolean intersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementchecks whether object intersects with given rectangle- Overrides:
intersectsin classShapeElement- Returns:
- true if object and rectangle intersects
-
getBoundsToRepaint
Description copied from class:PresentationElementReturn bounds of the symbol that must be repainted. throws NoRectangleDefinedException- Overrides:
getBoundsToRepaintin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels- Returns:
- rectangle of bounds
- Throws:
NoRectangleDefinedException
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels- Parameters:
changer- new properties
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElementSilently applies all properties after initialization- Overrides:
internalSilentApplyin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
sSetShowPredecessors
public void sSetShowPredecessors(boolean show) -
setShowPredecessors
public void setShowPredecessors(boolean show) Sets show predecessors list.- Parameters:
show- show list
-
isShowPredecessors
public boolean isShowPredecessors()- Returns:
- show predecessors property value.
-
canChangeParent
public boolean canChangeParent(Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent) Description copied from class:PresentationElementReturns true, if element can change parent.- Overrides:
canChangeParentin classPresentationElement- Parameters:
movedTogether- collection of the elements, whose will change the parent together with this.newParent- new symbol parentchangeElementParent- change element parent- Returns:
- true if parent of symbol can be changed
-
resetMessagePositions
-
getElement
Description copied from class:PresentationElementReturns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
getElementin interfacecom.nomagic.magicdraw.uml.symbols.LabelOwner- Specified by:
getElementin interfaceModelElementProvider- Overrides:
getElementin classPresentationElement- Returns:
- model element of this presentation element.
-
findOwnerForElement
public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) - Overrides:
findOwnerForElementin classPresentationElement
-
getMessage
Description copied from interface:NumberedMessageViewMessage represented by the view.- Specified by:
getMessagein interfaceNumberedMessageView- Returns:
- message represented by the view
-
getNumber
Description copied from interface:NumberedMessageViewReturns number of the message- Specified by:
getNumberin interfaceNumberedMessageView- Returns:
- nested number of the message
-
getNumberManager
public com.nomagic.magicdraw.uml.symbols.MessageNumberManager getNumberManager() -
setNumberManager
public void setNumberManager(com.nomagic.magicdraw.uml.symbols.MessageNumberManager numberManager) -
getSender
-
getReceiver
-
setReceiver
-
setSender
-
getConnector
-
propertyChange
Description copied from class:PresentationElementListens for property change it can be: data was edited text box was edited- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classPresentationElement
-
checkShowsProxy
protected boolean checkShowsProxy()- Overrides:
checkShowsProxyin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
getChildrenInsets
public com.nomagic.ui.UnmodifiableInsets getChildrenInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) - Overrides:
getChildrenInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
insetsLevel- describes the level of insets- Returns:
- shape insets for children
-
getStroke
This method must be overridden, if you need to use DASHED_STROKE or another one.- Returns:
- the stroke for line drawing ( by default SOLID_STROKE).
-
prepareForLineDrawing
Prepares graphics for line drawing. Calls super prepareForLineDrawing and sets stroke. -
getStroke
This method must be overridden, if you need to use DASHED_STROKE or another one.- Returns:
- the stroke for line drawing ( by default SOLID_STROKE).
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-