Class ActivationView
- 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.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,java.beans.PropertyChangeListener,java.lang.Cloneable,java.lang.Comparable,java.util.EventListener
@OpenApi public class ActivationView extends com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewCreates activation object in sequence diagram. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds 
- 
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 static intBOTTOM_LENGTHstatic intDEFAULT_HEIGHTstatic intDEFAULT_WIDTHstatic intDISTANCE_FROM_NESTEDDistance by which parent activations extend inner activations.private booleanresizedByUser- 
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS 
- 
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, SUSPEND_SHAPE_AUTO_RESIZE_FALSE, SUSPEND_SHAPE_AUTO_RESIZE_MODES, SUSPEND_SHAPE_AUTO_RESIZE_SAME_AS_DIAGRAM, SUSPEND_SHAPE_AUTO_RESIZE_TRUE, 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, SHADOW_WIDTH, SOLID_STROKE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ActivationView()ActivationView(PresentationElement parent) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .voidadjustBounds(java.awt.Rectangle bounds)Validates boundsjava.awt.RectangleadjustBoundsForMoving(java.awt.Rectangle rect, java.util.Collection<PresentationElement> movedTogether)validate bounds for movingvoidautoResize()booleancanAddInstance(PresentationElement o)Object view has no children.protected booleancanBeAutosized()booleancanChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent)Returns true, if element can change parent.booleancheckElementParentOnAdd(PresentationElement child)voiddispose()disposes ends of links when link is deletedprotected voiddisposeConnectedPaths()com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewfindLowerMessage()com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewfindParentMessage()com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageViewfindUpperMessage()ElementgetActualElement()Because some views returns theirs parent model element, we do not know have they this member set or not.PresentationElementgetDynamicStyleOwner()ElementgetElement()Returns model element of this presentation element.SequenceLifelineViewgetLifelineView()Returns SequenceLifelineView to which this activation belongs.LifeLineLineViewgetLine()private intgetMaxYOfNestedActivation()Gets maximum y position of the nested activations lying on this activation.intgetMiddlePointY(java.awt.Point relativePoint)java.util.List<ActivationView>getNestedActivations()Retrieves a list of nested activations placed on this activation.intgetNestingLevel()Returns nesting level of this activation (counted from 0).ActivationViewgetParentActivation()Returns parent activation if this activation is nested.PresentationElementgetParentSymbolPropertyOwner()Returns parent symbol property manager to which this symbol delegates symbol property related functionality.UnmodifiableDimensiongetPreferredDimensionForAutosize()Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainergetSeqContainer()com.nomagic.magicdraw.uml.symbols.PresentationElementVisibilitygetVisibility()booleanhasNestedActivations()Indicates if this activation has nested activations.booleanhasSameNestingLevel(ActivationView activation)Indicates if this activation has same nesting level as a given one.protected java.awt.RectangleinternalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)voidinternalLayoutChildren(boolean calculatePrefSize)booleanisMovable(java.util.Collection msg)booleanisMovableByMoveManager()Method indicates if object of this instance must be registered in move manager.booleanisNested()Indicates if this activation is nested.booleanisResizedByUser()protected booleanisSnapToGrid()booleanisUseGradientForFill()Do we need to use gradient for fill color? Checks diagram property.voidmoveLinksToSelf()Move links to self.private voidmoveMessage(com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView message)protected voidmovePathElement(PathElement link, PathConnector requestor)Calculates position of path element.voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)voidrememberBounds()Remember old boundsvoidrememberBounds(java.awt.Rectangle bounds)booleanrepresentsExecutionSpecification()voidsDispose()dispose without adding container for re-layout.voidsetBounds(java.awt.Rectangle bounds)sets bounds of this object viewvoidsetParent(PresentationElement parent)Sets parent for this view.voidsetResizedByUser(boolean resizedByUser)voidsSetElement(Element element)booleanuseParentProperties()Does this element uses parent properties or has it 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, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getProxyPresentationElementsStream, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalAppendChildRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalRecursiveAutosizeForChildren, internalSetChildren, internalUpdatePresentationElement, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildren, paintChildrenBackground, prefDimensionByManipulatedChildren, preferredDimension, recursiveAutosize, removePresentationElement, removePresentationElement, sAddPresentationElement, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, 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, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalApplyProperties, internalGetBoundsShape, internalSilentApply, intersects, isAutosized, isCenterlineInner, isChildLayoutable, isHorizontalCenterlineProvider, isOnEdge, 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, canChangeElementParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, disposeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, editName, findParentForData, findPresentationElement, firePropertyChange, generateID, getActualProperty, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getElementNumberDisplayMode, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getPreferredBounds, 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, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalGetPresentationElementStroke, internalSnapToGrid, internalSnapToGrid, invalidate, isChildVisible, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDiagramSurface, setElement, setFont, setFontProperty, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setNeedRecreateListeners, setPropertyManager, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setStereotypeColor, setStereotypeFont, setStrokeIfNotTheSame, setTestUpdateFlag, setTextColor, setTextColorProperty, setTextEditable, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLineWidth, sSetLocation, sSetLocation, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange 
- 
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getName, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID 
- 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
 - 
 
 - 
 
- 
- 
Field Detail
- 
BOTTOM_LENGTH
public static final int BOTTOM_LENGTH
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
- See Also:
 - Constant Field Values
 
 
- 
DISTANCE_FROM_NESTED
public static final int DISTANCE_FROM_NESTED
Distance by which parent activations extend inner activations.- See Also:
 - Constant Field Values
 
 
- 
resizedByUser
private boolean resizedByUser
 
 - 
 
- 
Constructor Detail
- 
ActivationView
public ActivationView()
 
- 
ActivationView
public ActivationView(@CheckForNull PresentationElement parent) 
 - 
 
- 
Method Detail
- 
moveLinksToSelf
public void moveLinksToSelf()
Description copied from class:ShapeElementMove links to self. 
- 
sSetElement
public void sSetElement(@CheckForNull Element element) 
- 
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
 
- 
isUseGradientForFill
public boolean isUseGradientForFill()
Description copied from class:PresentationElementDo we need to use gradient for fill color? Checks diagram property.- Returns:
 - diagram gradient fill color value.
 
 
- 
getMiddlePointY
public int getMiddlePointY(java.awt.Point relativePoint)
 
- 
adjustBoundsForMoving
public java.awt.Rectangle adjustBoundsForMoving(java.awt.Rectangle rect, java.util.Collection<PresentationElement> movedTogether)Description copied from class:PresentationElementvalidate bounds for moving- Overrides:
 adjustBoundsForMovingin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
 
- 
movePathElement
protected void movePathElement(PathElement link, @CheckForNull PathConnector requestor)
Description copied from class:PathConnectorCalculates position of path element.- Parameters:
 link- element which position will be calculated.requestor- the requestor of this path moving. Implementations may check in order to avoid endless loops.
 
- 
moveMessage
private void moveMessage(com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView message)
 
- 
setBounds
public void setBounds(java.awt.Rectangle bounds)
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 java.awt.Rectangle internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
- Overrides:
 internalGetManipulatedChildrenRectin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
 
- 
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElementMethod accepts visitor, and calls method visit<class name>(this) of 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
public boolean isMovable(java.util.Collection msg)
- Parameters:
 msg- message- Returns:
 - true if activation must be moved together with given messages
 
 
- 
setParent
public void setParent(PresentationElement parent)
Description copied from class:PresentationElementSets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)orPresentationElement.sAddPresentationElement(PresentationElement)}- Parameters:
 parent- parent view
 
- 
autoResize
public void autoResize()
 
- 
getElement
public Element 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
@CheckForNull public 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. 
- 
dispose
public void dispose()
Description copied from class:PresentationElementdisposes ends of links when link is deleted- Specified by:
 disposein interfaceBaseElement
 
- 
sDispose
public void sDispose()
dispose without adding container for re-layout. Used to dispose symbols during container re-layout 
- 
disposeConnectedPaths
protected void disposeConnectedPaths()
 
- 
getLine
public LifeLineLineView getLine()
 
- 
getVisibility
public com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility getVisibility()
- Returns:
 - element visibility
 
 
- 
useParentProperties
public boolean useParentProperties()
Description copied from class:PresentationElementDoes this element uses parent properties or has it own?- Overrides:
 useParentPropertiesin classPresentationElement- Returns:
 - true, if element does not have properties and uses parent's.
 
 
- 
getParentSymbolPropertyOwner
public PresentationElement getParentSymbolPropertyOwner()
Description copied from class:PresentationElementReturns parent symbol property manager to which this symbol delegates symbol property related functionality.- Returns:
 - parent parent symbol to delegate or null if this symbol does not delegate.
 
 
- 
getDynamicStyleOwner
@CheckForNull public PresentationElement getDynamicStyleOwner()
 
- 
representsExecutionSpecification
public boolean representsExecutionSpecification()
 
- 
setResizedByUser
public void setResizedByUser(boolean resizedByUser)
 
- 
isResizedByUser
public boolean isResizedByUser()
 
- 
isSnapToGrid
protected boolean isSnapToGrid()
 
- 
canChangeParent
public boolean canChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent)
Description copied from class:PresentationElementReturns true, if element can change parent.- 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. 
- 
getSeqContainer
public com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer getSeqContainer()
 
- 
rememberBounds
public void rememberBounds()
Description copied from class:PresentationElementRemember old bounds 
- 
rememberBounds
public void rememberBounds(java.awt.Rectangle bounds)
 
- 
checkElementParentOnAdd
public boolean checkElementParentOnAdd(PresentationElement child)
 
- 
getNestingLevel
public int getNestingLevel()
Returns nesting level of this activation (counted from 0).- Returns:
 - nesting level.
 
 
- 
getMaxYOfNestedActivation
private int getMaxYOfNestedActivation()
Gets maximum y position of the nested activations lying on this activation.- Returns:
 - maximum y coordinate.
 
 
- 
getNestedActivations
public java.util.List<ActivationView> 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
public boolean hasSameNestingLevel(ActivationView activation)
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
@CheckForNull public ActivationView getParentActivation()
Returns parent activation if this activation is nested.- Returns:
 - parent activation if nested, null otherwise.
 
 
- 
getLifelineView
@CheckForNull public SequenceLifelineView getLifelineView()
Returns SequenceLifelineView to which this activation belongs.- Returns:
 - SequenceLifelineView to which this activation belongs.
 
 
- 
canAddInstance
public boolean canAddInstance(PresentationElement o)
Description copied from class:PresentationElementObject view has no children.- Overrides:
 canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
 
- 
adjustBounds
public void adjustBounds(java.awt.Rectangle bounds)
Description copied from class:ShapeElementValidates bounds- Parameters:
 bounds- bounds
 
- 
getPreferredDimensionForAutosize
public UnmodifiableDimension getPreferredDimensionForAutosize()
Description copied from class:PresentationElementReturns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Returns:
 - preferred dimension
 
 
- 
canBeAutosized
protected boolean canBeAutosized()
 
 - 
 
 -