Class ActivationView
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.ActivationView
- All Implemented Interfaces:
BaseElement,MDElement,ModelElementProvider,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class ActivationView
extends com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
Creates activation object in sequence diagram.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intDistance by which parent activations extend inner activations.Fields 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_STROKE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.voidadjustBounds(Rectangle bounds) Validates boundsadjustBoundsBeforeChange(Rectangle rect, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Validate bounds before bounds change operationvoidbooleancanAddInstance(PresentationElement symbol) Object view has no children.protected booleanbooleancanChangeParent(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.booleanvoiddispose()disposes ends of links when link is deletedprotected voidcom.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewcom.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewcom.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewBecause some views returns theirs parent model element, we do not know have they this member set or not.Returns model element of this presentation element.Returns SequenceLifelineView to which this activation belongs.getLine()intgetMiddlePointY(Point relativePoint) Retrieves a list of nested activations placed on this activation.intReturns nesting level of this activation (counted from 0).Returns parent activation if this activation is nested.Returns parent to which this symbol delegates style attributes related functionality.Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainercom.nomagic.magicdraw.uml.symbols.PresentationElementVisibilitybooleanIndicates if this activation has nested activations.booleanhasSameNestingLevel(ActivationView activation) Indicates if this activation has same nesting level as a given one.protected RectangleinternalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) Calculate union area of owned manipulated children added not on a shape bordervoidinternalLayoutChildren(boolean calculatePrefSize) booleanisMovable(Collection msg) booleanMethod indicates if object of this instance must be registered in move manager.booleanisNested()Indicates if this activation is nested.booleanprotected booleanbooleanDo we need to use gradient for fill color? Checks diagram property.voidMove links to self.protected voidmovePathElement(PathElement link, PathConnector requestor) Calculates position of a path element.voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) voidRemember old boundsvoidrememberBounds(Rectangle bounds) booleanvoidsDispose()dispose without adding container for re-layout.voidsets bounds of this object viewvoidsetParent(PresentationElement parent) Sets parent for this view.voidsetResizedByUser(boolean resizedByUser) voidsSetElement(Element element) protected booleanbooleanDoes this element uses parent style or has it's own?Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosize, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, checkShowsProxy, childrenBoundsForReshape, clearShowsProxy, clone, constructLayoutHelper, correctChildrenVector, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getProxyPresentationElementsStream, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalAppendChildRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalSetChildren, internalUpdatePresentationElement, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildren, paintChildrenBackground, prefDimensionByManipulatedChildren, preferredDimension, recursiveAutosize, removePresentationElement, removePresentationElement, sAddPresentationElement, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElementsMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, autosizeAndResizeParent, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canHavePaths, clearOldRect, coversPoint, createBoundsShape, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDefaultDimension, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalApplyProperties, internalGetBoundsShape, internalSilentApply, intersects, isAutosized, isCenterlineInner, isChildLayoutable, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumDimension, minimumDimensionForShrinking, minimumOrMinimumShrinkableDimension, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetAutosize, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLaterMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, createSmartListenerConfig, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElementsMethods 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, 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, editName, findOwnerForChildElement, findOwnerForElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getAdditionalRenderersToNotifyOnPropertiesChange, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, 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, getPreferredBounds, 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, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, hasSharedModelElement, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, intersects, invalidate, isChildVisible, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setElement, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setTextEditable, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLocation, sSetLocation, sSetModelElement, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentPropertiesMethods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getName, 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
asPresentationElement, getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointYMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
-
Field Details
-
BOTTOM_LENGTH
public static final int BOTTOM_LENGTH- See Also:
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT- See Also:
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
-
DISTANCE_FROM_NESTED
public static final int DISTANCE_FROM_NESTEDDistance by which parent activations extend inner activations.- See Also:
-
-
Constructor Details
-
ActivationView
public ActivationView() -
ActivationView
-
-
Method Details
-
moveLinksToSelf
public void moveLinksToSelf()Description copied from class:ShapeElementMove links to self.- Overrides:
moveLinksToSelfin classShapeElement
-
sSetElement
- Overrides:
sSetElementin classPresentationElement
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintSelfin classPresentationElement
-
isUseGradientForFill
public boolean isUseGradientForFill()Description copied from class:PresentationElementDo we need to use gradient for fill color? Checks diagram property.- Overrides:
isUseGradientForFillin classPresentationElement- Returns:
- diagram gradient fill color value.
-
getMiddlePointY
- Overrides:
getMiddlePointYin classShapeElement
-
adjustBoundsBeforeChange
public Rectangle adjustBoundsBeforeChange(Rectangle rect, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Description copied from class:PresentationElementValidate bounds before bounds change operation- Overrides:
adjustBoundsBeforeChangein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
movePathElement
Description copied from class:PathConnectorCalculates position of a path element.- Overrides:
movePathElementin classShapeElement- Parameters:
link- element which position will be calculated.requestor- the requestor of this path moving. Implementations may check to avoid endless loops.
-
setBounds
Description copied from class:PresentationElementsets bounds of this object view- Overrides:
setBoundsin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
bounds- rectangle of bounds
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
internalGetManipulatedChildrenRect
@CheckForNull protected Rectangle internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewCalculate union area of owned manipulated children added not on a shape border- Overrides:
internalGetManipulatedChildrenRectin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
insetsLevel- include insets if shape has manipulated children- Returns:
- rectangle of children or null if there are no children
-
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. -
findUpperMessage
@CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView findUpperMessage()- Returns:
- finds the top message. If there is incoming and outgoing message and the same y coordinate, then the incoming one will
be selected as the upper, in order for
findParentMessage()method to work correctly in such case
-
findLowerMessage
@CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView findLowerMessage()- Returns:
- finds the lower message
-
findParentMessage
@CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView findParentMessage()- Returns:
- first incoming non asynchronous message from top
-
isMovable
- Parameters:
msg- message- Returns:
- true if activation must be moved together with given messages
-
setParent
Description copied from class:PresentationElementSets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)orPresentationElement.sAddPresentationElement(PresentationElement)}- Overrides:
setParentin classPathConnector- Parameters:
parent- parent view
-
autoResize
public void autoResize() -
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 interfaceModelElementProvider- Overrides:
getElementin classPresentationElement- Returns:
- model element of this presentation element.
-
getActualElement
Description copied from class:PresentationElementBecause some views returns theirs parent model element, we do not know have they this member set or not.- Overrides:
getActualElementin classPresentationElement
-
dispose
public void dispose()Description copied from class:PresentationElementdisposes ends of links when link is deleted- Specified by:
disposein interfaceBaseElement- Overrides:
disposein classPathConnector
-
sDispose
public void sDispose()dispose without adding container for re-layout. Used to dispose symbols during container re-layout -
disposeConnectedPaths
protected void disposeConnectedPaths()- Overrides:
disposeConnectedPathsin classPathConnector
-
getLine
-
getVisibility
public com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility getVisibility()- Overrides:
getVisibilityin classPresentationElement- Returns:
- element visibility
-
useParentStyle
public boolean useParentStyle()Description copied from class:PresentationElementDoes this element uses parent style or has it's own?- Overrides:
useParentStylein classPresentationElement- Returns:
- true, if element does not have style and uses parent's style.
-
getParentSymbolStyleOwner
Description copied from class:PresentationElementReturns parent to which this symbol delegates style attributes related functionality.- Overrides:
getParentSymbolStyleOwnerin classPresentationElement- Returns:
- parent symbol to delegate or null if this symbol does not delegate.
-
getDynamicStyleOwner
- Overrides:
getDynamicStyleOwnerin classPresentationElement
-
representsExecutionSpecification
public boolean representsExecutionSpecification() -
setResizedByUser
public void setResizedByUser(boolean resizedByUser) -
isResizedByUser
public boolean isResizedByUser() -
isSnapToGrid
protected boolean isSnapToGrid()- Overrides:
isSnapToGridin classShapeElement
-
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
-
isMovableByMoveManager
public boolean isMovableByMoveManager()Description copied from class:PresentationElementMethod indicates if object of this instance must be registered in move manager.- Overrides:
isMovableByMoveManagerin classPresentationElement
-
getSeqContainer
public com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer getSeqContainer() -
rememberBounds
public void rememberBounds()Description copied from class:PresentationElementRemember old bounds- Overrides:
rememberBoundsin classPresentationElement
-
rememberBounds
- Overrides:
rememberBoundsin classPresentationElement
-
checkElementOwnerOnChange
- Overrides:
checkElementOwnerOnChangein classPresentationElement
-
getNestingLevel
public int getNestingLevel()Returns nesting level of this activation (counted from 0).- Returns:
- nesting level.
-
getNestedActivations
Retrieves a list of nested activations placed on this activation.- Returns:
- a list of nested activations.
-
isNested
public boolean isNested()Indicates if this activation is nested.- Returns:
- true if activation is nested, false otherwise.
-
hasSameNestingLevel
Indicates if this activation has same nesting level as a given one.- Parameters:
activation- - activation to which nesting level is compared.- Returns:
- true if nesting levels of activations are the same.
-
hasNestedActivations
public boolean hasNestedActivations()Indicates if this activation has nested activations.- Returns:
- true if this activation has nested activations, false otherwise.
-
getParentActivation
Returns parent activation if this activation is nested.- Returns:
- parent activation if nested, null otherwise.
-
getLifelineView
Returns SequenceLifelineView to which this activation belongs.- Returns:
- SequenceLifelineView to which this activation belongs.
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
adjustBounds
Description copied from class:ShapeElementValidates bounds- Overrides:
adjustBoundsin classShapeElement- Parameters:
bounds- bounds
-
getPreferredDimensionForAutosize
Description copied from class:PresentationElementReturns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Overrides:
getPreferredDimensionForAutosizein classShapeElement- Returns:
- preferred dimension
-
canBeAutosized
protected boolean canBeAutosized()- Overrides:
canBeAutosizedin classShapeElement
-
supportsVisibleConnectedPathElementsIfSelfInvisible
protected boolean supportsVisibleConnectedPathElementsIfSelfInvisible()- Overrides:
supportsVisibleConnectedPathElementsIfSelfInvisiblein classPathConnector
-