Class SwimlaneCellView
- 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.SwimlaneCellView
-
- 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 SwimlaneCellView extends com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
-
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 UnmodifiableDimension
DEFAULT_SIZE
private com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView
mHorizontalHeader
private boolean
mIgnoreAdjustChildBounds
private java.util.Set<ActivityPartition>
mPartitions
private com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView
mVerticalHeader
-
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 SwimlaneCellView()
SwimlaneCellView(PresentationElement parent)
-
Method Summary
All Methods Static 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
addPartition(ActivityPartition partition)
void
addPresentationElement(PresentationElement element, int index, boolean resize)
void
addToPartition(ActivityPartition partition, PresentationElement view)
void
addToPartitions(PresentationElement element)
void
adjustChildBounds(java.awt.Rectangle bounds, PresentationElement element)
For adjusting child bounds when child type is not known but bounds should be corrected.boolean
canAddChild()
Checks if new elements can be added to this elementboolean
canAddInstance(PresentationElement obj)
Object view has no children.boolean
canBeDeleted()
Checks if element can be deleted from project.SwimlaneCellView
clone()
Clones this object.private static java.util.Collection<Element>
getActivityPartitionContainer(Element element, ActivityPartition partition)
protected UnmodifiableDimension
getDefaultDimension()
PresentationElement
getDynamicStyleOwner()
Element
getElement()
Returns model element of this presentation element.com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView
getHeader(boolean vertical)
com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView
getHorizontalHeader()
SwimlaneView
getMultiSwimlane()
java.util.Set<ActivityPartition>
getPartitions()
java.util.Set<ActivityPartition>
getPartitionsRecursively()
protected java.util.stream.Stream<PresentationElement>
getProxyPresentationElementsStream()
com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView
getVerticalHeader()
boolean
hasManipulator()
Returns true, if view has manipulator (is selectable)private static void
init(SwimlaneCellView swimlaneCellView)
Element
internalGetElementToConnectLink(Element path, boolean asClient)
Returns element that should be used for given link connecting.java.awt.BasicStroke
internalGetPresentationElementStroke(int width)
Return a stroke used to paint symbol's main partprotected void
internalUpdatePresentationElement()
Internal symbol update method for subclassing.boolean
isHeaderInner()
boolean
isHorizontalCenterlineProvider()
Indicates whether this shape provides horizontal centerlines to other shapes.boolean
isMovableByMoveManager()
Method indicates if object of this instance must be registered in move manager.boolean
isSortable()
If OV is sortable (must be added to sort manager for sorting) method must return true;boolean
isVerticalCenterlineProvider()
Indicates whether this shape provides vertical centerlines to other shapes.protected void
moveChildren(int dx, int dy, java.util.function.Predicate<PresentationElement> filter)
boolean
mustShowContextMenu()
void
paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
static void
removeFromPartition(PresentationElement parent, PresentationElement toRemove)
If given parent is ActivityPartition (SwimlaneCellView), the information about inPartition is removed from Element of given toRemove symbol.void
removeFromPartitions(PresentationElement element)
void
removeHeader(boolean vertical)
void
removeHeaderFromCell(com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView header)
Removes header from cell data structures.void
removePartition(ActivityPartition partition)
void
sAddPresentationElement(PresentationElement element, int index)
Add given child to this symbol at given indexvoid
setHeader(com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView header)
boolean
snapsToCenterlines()
void
sRemovePresentationElement(PresentationElement element)
Removes given childvoid
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, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosize, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, checkShowsProxy, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, correctChildrenVector, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalAppendChildRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalLayoutChildren, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, needAdjustToPreferred, paintChildren, paintChildrenBackground, prefDimensionByManipulatedChildren, preferredDimension, recursiveAutosize, removePresentationElement, removePresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, autosizeAndResizeParent, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, coversPoint, createBoundsShape, 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, getPreferredDimensionForAutosize, getReshapeMode, getSuspendShapeAutoResizeMode, initialize, internalApplyProperties, internalGetBoundsShape, internalSilentApply, intersects, isAutosized, isCenterlineInner, isChildLayoutable, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, layoutChildren, maximumDimension, minimumDimension, minimumDimensionForShrinking, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, sSetAutosize, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, createSmartListenerConfig, dispose, 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, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsert, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, 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, editName, findParentForData, findPresentationElement, firePropertyChange, generateID, getActualElement, 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, getParentSymbolPropertyOwner, 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, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalSnapToGrid, internalSnapToGrid, invalidate, isChildVisible, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, 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, 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
-
mIgnoreAdjustChildBounds
private boolean mIgnoreAdjustChildBounds
-
DEFAULT_SIZE
public static final UnmodifiableDimension DEFAULT_SIZE
-
mPartitions
private java.util.Set<ActivityPartition> mPartitions
-
mVerticalHeader
private com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView mVerticalHeader
-
mHorizontalHeader
private com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView mHorizontalHeader
-
-
Constructor Detail
-
SwimlaneCellView
public SwimlaneCellView()
-
SwimlaneCellView
public SwimlaneCellView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
init
private static void init(SwimlaneCellView swimlaneCellView)
-
getPartitions
public java.util.Set<ActivityPartition> getPartitions()
-
getPartitionsRecursively
public java.util.Set<ActivityPartition> getPartitionsRecursively()
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
-
getHorizontalHeader
public com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView getHorizontalHeader()
-
getVerticalHeader
public com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView getVerticalHeader()
-
getHeader
public com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView getHeader(boolean vertical)
-
setHeader
public void setHeader(com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView header)
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
-
internalGetPresentationElementStroke
public java.awt.BasicStroke internalGetPresentationElementStroke(int width)
Description copied from class:PresentationElement
Return a stroke used to paint symbol's main part- Parameters:
width
- a custom stroke width. Other stroke parameters will be specific to symbol- Returns:
- a stroke used to paint symbol's main part
-
isHeaderInner
public boolean isHeaderInner()
-
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.
-
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.
-
internalGetElementToConnectLink
public Element internalGetElementToConnectLink(@CheckForNull Element path, boolean asClient)
Description copied from class:PresentationElement
Returns element that should be used for given link connecting. All possible elements are return by method getElementsForLinkConnecting. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
- all possible elements
- See Also:
PresentationElement.getElementsForLinkConnecting()
-
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.ContainerShapeView
-
canAddChild
public boolean canAddChild()
Description copied from interface:BaseElement
Checks if new elements can be added to this element- Specified by:
canAddChild
in interfaceBaseElement
- Overrides:
canAddChild
in classcom.nomagic.magicdraw.uml.MDElementImpl
- Returns:
- true, if new sub elements can be added.
-
canBeDeleted
public boolean canBeDeleted()
Description copied from interface:BaseElement
Checks if element can be deleted from project. Element cannot be deleted if it is not isEditable(), parent is not set or parent does not allow to remove this element.- Specified by:
canBeDeleted
in interfaceBaseElement
- Overrides:
canBeDeleted
in classcom.nomagic.magicdraw.uml.MDElementImpl
- Returns:
- true, if element can be deleted from project.
- See Also:
BaseElement.isEditable()
-
isSortable
public boolean isSortable()
Description copied from class:PresentationElement
If OV is sortable (must be added to sort manager for sorting) method must return true;
-
addToPartitions
public void addToPartitions(PresentationElement element)
-
addToPartition
public void addToPartition(ActivityPartition partition, PresentationElement view)
-
getActivityPartitionContainer
@CheckForNull private static java.util.Collection<Element> getActivityPartitionContainer(@CheckForNull Element element, ActivityPartition partition)
-
addPartition
public void addPartition(ActivityPartition partition)
-
removePartition
public void removePartition(ActivityPartition partition)
-
removeHeader
public void removeHeader(boolean vertical)
-
removeFromPartitions
public void removeFromPartitions(PresentationElement element)
-
sAddPresentationElement
public void sAddPresentationElement(PresentationElement element, int index)
Description copied from class:PresentationElement
Add given child to this symbol at given index- Overrides:
sAddPresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
element
- child to addindex
- index to add at. Can be -1
-
sRemovePresentationElement
public void sRemovePresentationElement(PresentationElement element)
Description copied from class:PresentationElement
Removes given child- Overrides:
sRemovePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
element
- child
-
addPresentationElement
public void addPresentationElement(PresentationElement element, int index, boolean resize)
- Overrides:
addPresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
mustShowContextMenu
public boolean mustShowContextMenu()
-
getMultiSwimlane
public SwimlaneView getMultiSwimlane()
-
sSetElement
public void sSetElement(Element element)
-
moveChildren
protected void moveChildren(int dx, int dy, java.util.function.Predicate<PresentationElement> filter)
- Overrides:
moveChildren
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
adjustChildBounds
public void adjustChildBounds(java.awt.Rectangle bounds, PresentationElement element)
Description copied from class:PresentationElement
For adjusting child bounds when child type is not known but bounds should be corrected.
-
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.
-
isMovableByMoveManager
public boolean isMovableByMoveManager()
Description copied from class:PresentationElement
Method indicates if object of this instance must be registered in move manager.
-
clone
public SwimlaneCellView clone()
Clones this object.- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Returns:
- the cloned object
-
getProxyPresentationElementsStream
protected java.util.stream.Stream<PresentationElement> getProxyPresentationElementsStream()
- Overrides:
getProxyPresentationElementsStream
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
isVerticalCenterlineProvider
public boolean isVerticalCenterlineProvider()
Description copied from class:ShapeElement
Indicates whether this shape provides vertical centerlines to other shapes.- Returns:
- true if this shape provides vertical centerlines, false otherwise.
-
isHorizontalCenterlineProvider
public boolean isHorizontalCenterlineProvider()
Description copied from class:ShapeElement
Indicates whether this shape provides horizontal centerlines to other shapes.- Returns:
- true if this shape provides horizontal centerlines, false otherwise.
-
removeHeaderFromCell
public void removeHeaderFromCell(com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView header)
Removes header from cell data structures.- Parameters:
header
- which has to be removed.
-
internalUpdatePresentationElement
protected void internalUpdatePresentationElement()
Description copied from class:PresentationElement
Internal symbol update method for subclassing. It is called from update as part of full update action.- Overrides:
internalUpdatePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- See Also:
PresentationElement.update()
-
snapsToCenterlines
public boolean snapsToCenterlines()
- Specified by:
snapsToCenterlines
in interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
removeFromPartition
public static void removeFromPartition(PresentationElement parent, PresentationElement toRemove)
If given parent is ActivityPartition (SwimlaneCellView), the information about inPartition is removed from Element of given toRemove symbol. If not, does nothing.- Parameters:
parent
- possible ActivityPartition symboltoRemove
- element to remove from partition
-
hasManipulator
public boolean hasManipulator()
Description copied from class:PresentationElement
Returns true, if view has manipulator (is selectable)
-
getDynamicStyleOwner
@CheckForNull public PresentationElement getDynamicStyleOwner()
-
-