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.ContainerShapeView
Creates 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 int
BOTTOM_LENGTH
static int
DEFAULT_HEIGHT
static int
DEFAULT_WIDTH
static int
DISTANCE_FROM_NESTED
Distance by which parent activations extend inner activations.private boolean
resizedByUser
-
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 void
accept(Visitor visitor)
Method accepts visitor, and calls method visit<class name>(this) of visitor .void
adjustBounds(java.awt.Rectangle bounds)
Validates boundsjava.awt.Rectangle
adjustBoundsForMoving(java.awt.Rectangle rect, java.util.Collection<PresentationElement> movedTogether)
validate bounds for movingvoid
autoResize()
boolean
canAddInstance(PresentationElement o)
Object view has no children.protected boolean
canBeAutosized()
boolean
canChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent)
Returns true, if element can change parent.boolean
checkElementParentOnAdd(PresentationElement child)
void
dispose()
disposes ends of links when link is deletedprotected void
disposeConnectedPaths()
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
findLowerMessage()
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
findParentMessage()
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
findUpperMessage()
Element
getActualElement()
Because some views returns theirs parent model element, we do not know have they this member set or not.PresentationElement
getDynamicStyleOwner()
Element
getElement()
Returns model element of this presentation element.SequenceLifelineView
getLifelineView()
Returns SequenceLifelineView to which this activation belongs.LifeLineLineView
getLine()
private int
getMaxYOfNestedActivation()
Gets maximum y position of the nested activations lying on this activation.int
getMiddlePointY(java.awt.Point relativePoint)
java.util.List<ActivationView>
getNestedActivations()
Retrieves a list of nested activations placed on this activation.int
getNestingLevel()
Returns nesting level of this activation (counted from 0).ActivationView
getParentActivation()
Returns parent activation if this activation is nested.PresentationElement
getParentSymbolPropertyOwner()
Returns parent symbol property manager to which this symbol delegates symbol property related functionality.UnmodifiableDimension
getPreferredDimensionForAutosize()
Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer
getSeqContainer()
com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility
getVisibility()
boolean
hasNestedActivations()
Indicates if this activation has nested activations.boolean
hasSameNestingLevel(ActivationView activation)
Indicates if this activation has same nesting level as a given one.protected java.awt.Rectangle
internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
void
internalLayoutChildren(boolean calculatePrefSize)
boolean
isMovable(java.util.Collection msg)
boolean
isMovableByMoveManager()
Method indicates if object of this instance must be registered in move manager.boolean
isNested()
Indicates if this activation is nested.boolean
isResizedByUser()
protected boolean
isSnapToGrid()
boolean
isUseGradientForFill()
Do we need to use gradient for fill color? Checks diagram property.void
moveLinksToSelf()
Move links to self.private void
moveMessage(com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView message)
protected void
movePathElement(PathElement link, PathConnector requestor)
Calculates position of path element.void
paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
void
rememberBounds()
Remember old boundsvoid
rememberBounds(java.awt.Rectangle bounds)
boolean
representsExecutionSpecification()
void
sDispose()
dispose without adding container for re-layout.void
setBounds(java.awt.Rectangle bounds)
sets bounds of this object viewvoid
setParent(PresentationElement parent)
Sets parent for this view.void
setResizedByUser(boolean resizedByUser)
void
sSetElement(Element element)
boolean
useParentProperties()
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:ShapeElement
Move 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:PresentationElement
Do 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:PresentationElement
validate bounds for moving- Overrides:
adjustBoundsForMoving
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
movePathElement
protected void movePathElement(PathElement link, @CheckForNull PathConnector requestor)
Description copied from class:PathConnector
Calculates 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: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 java.awt.Rectangle internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
- Overrides:
internalGetManipulatedChildrenRect
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
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:PresentationElement
Sets 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: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
@CheckForNull public 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.
-
dispose
public void dispose()
Description copied from class:PresentationElement
disposes ends of links when link is deleted- Specified by:
dispose
in 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:PresentationElement
Does this element uses parent properties or has it own?- Overrides:
useParentProperties
in classPresentationElement
- Returns:
- true, if element does not have properties and uses parent's.
-
getParentSymbolPropertyOwner
public PresentationElement getParentSymbolPropertyOwner()
Description copied from class:PresentationElement
Returns 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:PresentationElement
Returns 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:PresentationElement
Method 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:PresentationElement
Remember 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:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
adjustBounds
public void adjustBounds(java.awt.Rectangle bounds)
Description copied from class:ShapeElement
Validates bounds- Parameters:
bounds
- bounds
-
getPreferredDimensionForAutosize
public UnmodifiableDimension getPreferredDimensionForAutosize()
Description copied from class:PresentationElement
Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Returns:
- preferred dimension
-
canBeAutosized
protected boolean canBeAutosized()
-
-