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 int
static final int
static final int
static final int
Distance by which parent activations extend inner activations.Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGE
Fields 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_EDGE
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.void
adjustBounds
(Rectangle bounds) Validates boundsadjustBoundsBeforeChange
(Rectangle rect, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Validate bounds before bounds change operationvoid
boolean
canAddInstance
(PresentationElement symbol) Object view has no children.protected boolean
boolean
canChangeParent
(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.boolean
void
dispose()
disposes ends of links when link is deletedprotected void
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
Because 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()
int
getMiddlePointY
(Point relativePoint) Retrieves a list of nested activations placed on this activation.int
Returns 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.SequenceObjectViewContainer
com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility
boolean
Indicates if this activation has nested activations.boolean
hasSameNestingLevel
(ActivationView activation) Indicates if this activation has same nesting level as a given one.protected Rectangle
internalGetManipulatedChildrenRect
(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) Calculate union area of owned manipulated children added not on a shape bordervoid
internalLayoutChildren
(boolean calculatePrefSize) boolean
isMovable
(Collection msg) boolean
Method indicates if object of this instance must be registered in move manager.boolean
isNested()
Indicates if this activation is nested.boolean
protected boolean
boolean
Do we need to use gradient for fill color? Checks diagram property.void
Move links to self.protected void
movePathElement
(PathElement link, PathConnector requestor) Calculates position of a path element.void
paintSelf
(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) void
Remember old boundsvoid
rememberBounds
(Rectangle bounds) boolean
void
sDispose()
dispose without adding container for re-layout.void
sets bounds of this object viewvoid
setParent
(PresentationElement parent) Sets parent for this view.void
setResizedByUser
(boolean resizedByUser) void
sSetElement
(Element element) protected boolean
boolean
Does 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, sSetPresentationElements
Methods 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, updateLater
Methods 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, sSetConnectedPathElements
Methods 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, useParentProperties
Methods 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, sGetID
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.manipulators.centerlines.CenterlineableShape
asPresentationElement, getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY
Methods 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:ShapeElement
Move links to self.- Overrides:
moveLinksToSelf
in classShapeElement
-
sSetElement
- Overrides:
sSetElement
in classPresentationElement
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintSelf
in classPresentationElement
-
isUseGradientForFill
public boolean isUseGradientForFill()Description copied from class:PresentationElement
Do we need to use gradient for fill color? Checks diagram property.- Overrides:
isUseGradientForFill
in classPresentationElement
- Returns:
- diagram gradient fill color value.
-
getMiddlePointY
- Overrides:
getMiddlePointY
in classShapeElement
-
adjustBoundsBeforeChange
public Rectangle adjustBoundsBeforeChange(Rectangle rect, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Description copied from class:PresentationElement
Validate bounds before bounds change operation- Overrides:
adjustBoundsBeforeChange
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
movePathElement
Description copied from class:PathConnector
Calculates position of a path element.- Overrides:
movePathElement
in 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:PresentationElement
sets bounds of this object view- Overrides:
setBounds
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
bounds
- rectangle of bounds
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildren
in 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.ContainerShapeView
Calculate union area of owned manipulated children added not on a shape border- Overrides:
internalGetManipulatedChildrenRect
in 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:MDElement
Method 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:PresentationElement
Sets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)
orPresentationElement.sAddPresentationElement(PresentationElement)
}- Overrides:
setParent
in classPathConnector
- Parameters:
parent
- parent view
-
autoResize
public void autoResize() -
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 interfaceModelElementProvider
- Overrides:
getElement
in classPresentationElement
- Returns:
- model element of this presentation element.
-
getActualElement
Description copied from class:PresentationElement
Because some views returns theirs parent model element, we do not know have they this member set or not.- Overrides:
getActualElement
in classPresentationElement
-
dispose
public void dispose()Description copied from class:PresentationElement
disposes ends of links when link is deleted- Specified by:
dispose
in interfaceBaseElement
- Overrides:
dispose
in 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:
disposeConnectedPaths
in classPathConnector
-
getLine
-
getVisibility
public com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility getVisibility()- Overrides:
getVisibility
in classPresentationElement
- Returns:
- element visibility
-
useParentStyle
public boolean useParentStyle()Description copied from class:PresentationElement
Does this element uses parent style or has it's own?- Overrides:
useParentStyle
in classPresentationElement
- Returns:
- true, if element does not have style and uses parent's style.
-
getParentSymbolStyleOwner
Description copied from class:PresentationElement
Returns parent to which this symbol delegates style attributes related functionality.- Overrides:
getParentSymbolStyleOwner
in classPresentationElement
- Returns:
- parent symbol to delegate or null if this symbol does not delegate.
-
getDynamicStyleOwner
- Overrides:
getDynamicStyleOwner
in classPresentationElement
-
representsExecutionSpecification
public boolean representsExecutionSpecification() -
setResizedByUser
public void setResizedByUser(boolean resizedByUser) -
isResizedByUser
public boolean isResizedByUser() -
isSnapToGrid
protected boolean isSnapToGrid()- Overrides:
isSnapToGrid
in classShapeElement
-
canChangeParent
public boolean canChangeParent(Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent) Description copied from class:PresentationElement
Returns true, if element can change parent.- Overrides:
canChangeParent
in 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:PresentationElement
Method indicates if object of this instance must be registered in move manager.- Overrides:
isMovableByMoveManager
in classPresentationElement
-
getSeqContainer
public com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer getSeqContainer() -
rememberBounds
public void rememberBounds()Description copied from class:PresentationElement
Remember old bounds- Overrides:
rememberBounds
in classPresentationElement
-
rememberBounds
- Overrides:
rememberBounds
in classPresentationElement
-
checkElementOwnerOnChange
- Overrides:
checkElementOwnerOnChange
in 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:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
adjustBounds
Description copied from class:ShapeElement
Validates bounds- Overrides:
adjustBounds
in classShapeElement
- Parameters:
bounds
- bounds
-
getPreferredDimensionForAutosize
Description copied from class:PresentationElement
Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Overrides:
getPreferredDimensionForAutosize
in classShapeElement
- Returns:
- preferred dimension
-
canBeAutosized
protected boolean canBeAutosized()- Overrides:
canBeAutosized
in classShapeElement
-
supportsVisibleConnectedPathElementsIfSelfInvisible
protected boolean supportsVisibleConnectedPathElementsIfSelfInvisible()- Overrides:
supportsVisibleConnectedPathElementsIfSelfInvisible
in classPathConnector
-