Class SequenceLifelineView
- 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.AbstractHeaderShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
- com.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
-
- com.nomagic.magicdraw.uml.symbols.shapes.SequenceLifelineView
-
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.CompartmentContainer
,com.nomagic.magicdraw.uml.symbols.CompartmentOwner
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,com.nomagic.magicdraw.uml.symbols.shapes.OwnerNameLabelOwner
,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,com.nomagic.magicdraw.uml.symbols.Wrapable
,NameOwner
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApi public class SequenceLifelineView extends com.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
Creates lifeline "head" in sequence diagram.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
-
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 private boolean
mCreated
true , if object was created bymessage private com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer.LifelineCollector
mLifelinesCollector
static int
TOP_Y
Sequence objects top left corner y coordinate.-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_IMAGE_AND_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODES
-
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
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.OwnerNameLabelOwner
OWNER_DISPLAY_MODE_OLD, OWNER_DISPLAY_MODE_STD, OWNER_DISPLAY_MODES
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
QNAME_DISPLAY_MODE_ABOVE_NAME, QNAME_DISPLAY_MODE_BELOW_NAME, QNAME_DISPLAY_MODE_DO_NOT_DISPLAY, QNAME_DISPLAY_MODE_MERGE_WITH_NAME, QNAME_DISPLAY_MODES
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.StereotypesDisplayModeOwner
DSL_STEREOTYPE_DISPLAY_MODE_ALL, DSL_STEREOTYPE_DISPLAY_MODE_LAST, DSL_STEREOTYPE_DISPLAY_MODE_NONE, DSL_STEREOTYPE_DISPLAY_MODES, STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, STEREOTYPE_DISPLAY_MODE_ICON, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, STEREOTYPES_DISPLAY_MODES, STEREOTYPES_DISPLAY_MODES_SIMPLE
-
-
Constructor Summary
Constructors Constructor Description SequenceLifelineView()
SequenceLifelineView(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 rec, java.util.Collection<PresentationElement> movedTogether)
validate bounds for movingvoid
atInsert()
Invalidates object at insertvoid
autosize(boolean calculatePrefSize)
Calculate preferred size and make this shape size at least as preferred(if size is smaller)void
autosizeByChildren(boolean calculatePrefSize)
boolean
canAddInstance(PresentationElement obj)
Object view has no children.boolean
canChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent)
Returns true, if element can change parent.boolean
canHavePaths()
boolean
canSuppressContent()
boolean
canUseEntireActivation()
SequenceLifelineView
clone()
Returns a copy of theElement
.protected void
createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
Element
findParentForData(PresentationElement parent, com.nomagic.uml2.ElementAddContext addContext)
java.util.List<LifeLineLineView>
getAllLifelines()
java.util.List<com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView>
getAllMessages()
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
getCreateMessage()
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
getDeleteMessage()
Gets delete message destroying this lifeline.com.nomagic.magicdraw.uml.symbols.shapes.SequenceLifelineHeaderView
getHeaderView()
com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer.LifelineCollector
getLifelinesCollector()
LifeLineLineView
getMainLifeLine()
int
getMinimalDistanceFromTop()
com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer
getSeqContainer()
boolean
hasSharedData()
Returns true if data of this object can be shared.protected boolean
internalAppendChildRect(PresentationElement view)
void
internalApplyProperties(PropertyManager man)
Applies properties from given property managerprotected java.awt.Rectangle
internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
void
internalSilentApply()
Silently applies all properties after initializationprotected void
internalSnapToGrid(java.awt.Point p, float step)
protected void
internalSpecificUpdate()
boolean
isCreated()
protected boolean
isDrawSeparator()
boolean
isShowEntireActivation()
boolean
isShowSelector()
boolean
isUseEntireActivation()
java.awt.Rectangle
moveObjectToXY(int newX, int newY)
void
movePathElement(PathElement link, PathConnector requestor)
Calculates position of path element.protected void
prefDimensionByManipulatedChildren(java.awt.Dimension pref, int locationX, int locationY)
void
rememberBounds()
Remember old boundsvoid
rememberBounds(java.awt.Rectangle bounds)
void
resizeParent()
Method that initiates parent resize to accommodate children if some child's bounds are changed.void
setCreated(boolean created)
void
setShowEntireActivation(boolean show)
void
sSetShowEntireActivation(boolean show)
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
checkShowsProxy, getClassifier, getElement, getLifeline, getMetaClassifiersQPropertyName, getNestedPath, getOwnerDisplayMode, propertyChange, setNestedPath, setOwnerDisplayMode, sSetClassifiers, sSetNestedPath, sSetOwnerDisplayMode, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
addBreakPoints, doActualShapeDrawing, getClassifiers, getDefaultDimension, getSeparatorDistanceFromRightSide, getStereotypesToDisplay, getTypeClass, isActive, isDrawUnderLine, isShowClass, isShowFullType, selfSpecificHeaderShapeDraw, setDrawUnderLine, setShowClass, setShowFullType, sSetShowClass, sSetShowFullType
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, addPresentationElement, areBoxCompartmentsSuppressed, canAddChild, canHideBorder, childrenBoundsForReshape, createBoundsShape, createChangedCompartmentVisibilityProperty, createCompartmentElements, createStateForUpdateOperation, dispose, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotify, getBooleanCompartmentPropertyValue, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, getCompartmentByID, getCompartmentContainer, getCompartmentIDs, getCompartmentRegistrationInfo, getCompartments, getConfiguredPreferredSizeForAutosize, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, getSuppressCompartmentPropertyID, hasManipulatedChildrenIncludingIndirect, internalAddIndirectManipulatedChildrenRect, internalBeforeUpdate, internalGetHeaderInsets, internalGetIndirectManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalLayoutChildren, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, preferredSizeIgnoringOrientation, recursiveAutosize, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setQNameDisplayMode, setReshapeMode, setSecondaryImageAndStereotypeDisplayMode, setShowCompartmentName, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, sSetWrapEnabled, updateBorderVisibility, updateChildrenVisibility, updateCompartmentsVisibility
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, editName, getAdditionalHeaderHeightForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, internalGetHeaderBoundsForPreferredBounds, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalGetChildAt, internalGetManipulatedChildrenRect, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElements, needAdjustToMaximumDimension, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, 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, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, 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, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, initializeAndAutosize, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalGetPresentationElementStroke, internalSnapToGrid, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, removeFromSortManager, removeItSelfOnUpdate, 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, 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, useParentProperties
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID
-
-
-
-
Field Detail
-
mLifelinesCollector
private com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer.LifelineCollector mLifelinesCollector
-
mCreated
private boolean mCreated
true , if object was created bymessage
-
TOP_Y
public static final int TOP_Y
Sequence objects top left corner y coordinate.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SequenceLifelineView
public SequenceLifelineView()
-
SequenceLifelineView
public SequenceLifelineView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
getMainLifeLine
@CheckForNull public LifeLineLineView getMainLifeLine()
- Returns:
- main lifeline
-
sSetShowEntireActivation
public void sSetShowEntireActivation(boolean show)
-
isShowEntireActivation
public boolean isShowEntireActivation()
-
isShowSelector
public boolean isShowSelector()
-
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
-
setShowEntireActivation
public void setShowEntireActivation(boolean show)
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
- Parameters:
man
- new properties
-
canHavePaths
public boolean canHavePaths()
- Returns:
- true if symbol can have connected paths. Return false here.
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
-
clone
public SequenceLifelineView clone()
Description copied from class:ElementImpl
Returns a copy of theElement
.- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
- Returns:
- the cloned object
-
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
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.
-
resizeParent
public void resizeParent()
Description copied from class:PresentationElement
Method that initiates parent resize to accommodate children if some child's bounds are changed.
-
prefDimensionByManipulatedChildren
protected void prefDimensionByManipulatedChildren(java.awt.Dimension pref, int locationX, int locationY)
- Overrides:
prefDimensionByManipulatedChildren
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
autosizeByChildren
public void autosizeByChildren(boolean calculatePrefSize)
- Overrides:
autosizeByChildren
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
-
adjustBounds
public void adjustBounds(java.awt.Rectangle bounds)
Description copied from class:ShapeElement
Validates bounds- Parameters:
bounds
- bounds
-
internalSnapToGrid
protected void internalSnapToGrid(java.awt.Point p, float step)
-
setCreated
public void setCreated(boolean created)
-
isCreated
public boolean isCreated()
-
getAllMessages
public java.util.List<com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView> getAllMessages()
-
getAllLifelines
public java.util.List<LifeLineLineView> getAllLifelines()
-
moveObjectToXY
@CheckForNull public java.awt.Rectangle moveObjectToXY(int newX, int newY)
-
movePathElement
public void movePathElement(PathElement link, @CheckForNull PathConnector requestor)
Description copied from class:PathConnector
Calculates position of path element.- Overrides:
movePathElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
- Parameters:
link
- element which position will be calculated.requestor
- the requestor of this path moving. Implementations may check in order to avoid endless loops.
-
getCreateMessage
@CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView getCreateMessage()
- Returns:
- if object is created by
message, returns that message
-
getDeleteMessage
@CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView getDeleteMessage()
Gets delete message destroying this lifeline.- Returns:
- delete message is this lifeline is destroyed, null otherwise.
-
adjustBoundsForMoving
public java.awt.Rectangle adjustBoundsForMoving(java.awt.Rectangle rec, java.util.Collection<PresentationElement> movedTogether)
Description copied from class:PresentationElement
validate bounds for moving- Overrides:
adjustBoundsForMoving
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
getMinimalDistanceFromTop
public int getMinimalDistanceFromTop()
-
findParentForData
public Element findParentForData(PresentationElement parent, com.nomagic.uml2.ElementAddContext addContext)
-
internalAppendChildRect
protected boolean internalAppendChildRect(PresentationElement view)
- Overrides:
internalAppendChildRect
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
canSuppressContent
public boolean canSuppressContent()
- Overrides:
canSuppressContent
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getSeqContainer
public com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer getSeqContainer()
-
autosize
public void autosize(boolean calculatePrefSize)
Description copied from class:ShapeElement
Calculate preferred size and make this shape size at least as preferred(if size is smaller)- Overrides:
autosize
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
- Parameters:
calculatePrefSize
- calculate preferred size
-
canUseEntireActivation
public boolean canUseEntireActivation()
-
isUseEntireActivation
public boolean isUseEntireActivation()
-
atInsert
public void atInsert()
Description copied from class:PresentationElement
Invalidates object at insert- Specified by:
atInsert
in interfaceBaseElement
- Overrides:
atInsert
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
rememberBounds
public void rememberBounds()
Description copied from class:PresentationElement
Remember old bounds
-
rememberBounds
public void rememberBounds(java.awt.Rectangle bounds)
-
getLifelinesCollector
public com.nomagic.magicdraw.uml.symbols.SequenceObjectViewContainer.LifelineCollector getLifelinesCollector()
-
isDrawSeparator
protected boolean isDrawSeparator()
- Overrides:
isDrawSeparator
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
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
-
hasSharedData
public boolean hasSharedData()
Description copied from class:PresentationElement
Returns true if data of this object can be shared. If data is not shared data can be deleted with del key. Or it must be deleted with CRL+D- Returns:
- true if data of this object can be shared.
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.SequenceLifelineHeaderView getHeaderView()
- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseLifelineView
-
-