Class BarView
- 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.ShapeWithLabels
-
- com.nomagic.magicdraw.uml.symbols.shapes.BarView
-
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.LabelOwner
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,NameOwner
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApi public class BarView extends com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
Creates synchronization bar view object in activity diagram.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels.ShapeWithLabelsNameLabelWrapper
-
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 static java.util.List<java.lang.String>
BAR_ORIENTATION
private static java.awt.Dimension
DEFAULT_HORIZONTAL_SIZE
private static int
DEFAULT_PATH_DISTANCE_FROM_CORNER
Smart path layout uses this constant to find a usable connection point for paths.private static java.awt.Dimension
DEFAULT_VERTICAL_SIZE
static java.lang.String
HORIZONTAL
static int
INNER_RECT_GAP
Distance from outer to inner rectangularprivate java.lang.String
mOrientation
private static int
PREFERRED_BREAKPOINT_DISTANCE
Smart path layout uses this constant to create a breakpoint for layouted path.static java.lang.String
VERTICAL
-
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.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 BarView()
BarView(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 .private int
calculatePathDistanceFromCorner(int nearestPathDistance)
Calculates path connection distance from bar corner.Element
findParentForData(PresentationElement parent, com.nomagic.uml2.ElementAddContext addContext)
private java.awt.Point
findUsableConnectionPoint(int edge, java.awt.Point corner)
Finds a usable connection point for paths on a specified edge close to the specified corner.private java.util.List
getConnectedPathPointsOnEdge(int edge)
Gets all path connection points on the specified edge.int
getMiddlePointX(java.awt.Point rel)
int
getMiddlePointY(java.awt.Point rel)
java.lang.String
getOrientation()
boolean
hasSharedData()
Returns true if data of this object can be shared.void
internalApplyProperties(PropertyManager man)
Applies propertiesvoid
internalSilentApply()
Silently applies all properties after initializationboolean
isForkNode()
Indicates if this symbol represents fork node.boolean
isJoinNode()
Indicates if this symbol represents join node.private boolean
isJoinPseudostate()
private boolean
isSeparateJoinForkNotation()
protected void
minimumSizeIgnoringOrientation(java.awt.Dimension min)
protected void
movePathElement(PathElement link, PathConnector requestor)
Calculates position of path element.void
paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
protected void
preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
void
setOrientation(java.lang.String o)
private void
smartLayoutPathOnAllowedEdges(PathElement link)
Smart layouts path on bar edges.void
sSetOrientation(java.lang.String o)
Sets orientation for the barvoid
sSetParent(PresentationElement parent)
Sets parent for this view.-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
addLabel, canAddInstance, canBeAutosized, clone, createCompartmentElements, createConstraintLabelWrapper, createElementPropertiesLabelWrapper, createLabels, createNameLabelWrapper, createSmartListenerConfig, createStereotypeLabelWrapper, createTaggedValueLabelWrapper, edgeChanged, editName, getBoundsToRepaint, getCollections, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getDSLStereotypesDisplayMode, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getHeaderBoundsForPreferredBounds, getLabelHandler, getName, getNameLabelBox, getNameLabelWrapper, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, internalAppendChildRect, internalPostUpdatePresentationElement, isLabelWrapText, isShowConstraints, isShowElementProperties, isShowName, isShowNumberTagName, isShowTaggedValues, isShowText, isWordWrap, removeLabel, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setName, setNameResizeLabel, setShowConstraints, setShowElementProperties, setShowName, setShowTaggedValues, setStereotypesDisplayMode, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, setVisibleElements, setWordWrap, simpleSetBounds, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetShowConstraints, sSetShowElementProperties, sSetShowName, sSetShowNumberTagName, sSetShowTaggedValues, sSetStereotypesDisplayMode, sSetSuspendLabelAutoDisplayMode, sSetWordWrap, updateAfterLoad, updateNameBox
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, createBoundsShape, createStateForUpdateOperation, doInternalLayoutChildren, getAdditionalHeaderHeightForPreferredBounds, getChildrenBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderMaxYForShrinkableShape, getHeaderObject, getHeaderVerticalPosition, getHeaderVerticalPositionForLayout, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, getStereotypesToDisplay, internalGetHeaderBoundsForPreferredBounds, internalGetHeaderInsets, internalLayoutChildren, internalPostSpecificUpdate, internalPreSpecificUpdate, internalSpecificUpdate, internalUpdatePresentationElement, invalidate, isBorderVisible, isChildLayoutable, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, paintChildren, preferredDimension, setHeaderObject, setHeaderVerticalPosition, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElement, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, checkShowsProxy, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, recursiveAutosize, removePresentationElement, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, sRemovePresentationElement, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canHavePaths, clearOldRect, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDefaultDimension, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getPreferredDimensionForAutosize, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, 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, adjustChildBounds, 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, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElement, getElementNumberDisplayMode, 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, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalGetPresentationElementStroke, internalSnapToGrid, 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, 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, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLineWidth, sSetLocation, sSetLocation, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, 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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INNER_RECT_GAP
public static final int INNER_RECT_GAP
Distance from outer to inner rectangular- See Also:
- Constant Field Values
-
VERTICAL
public static final java.lang.String VERTICAL
- See Also:
- Constant Field Values
-
HORIZONTAL
public static final java.lang.String HORIZONTAL
- See Also:
- Constant Field Values
-
BAR_ORIENTATION
public static final java.util.List<java.lang.String> BAR_ORIENTATION
-
mOrientation
private java.lang.String mOrientation
-
DEFAULT_HORIZONTAL_SIZE
private static final java.awt.Dimension DEFAULT_HORIZONTAL_SIZE
-
DEFAULT_VERTICAL_SIZE
private static final java.awt.Dimension DEFAULT_VERTICAL_SIZE
-
DEFAULT_PATH_DISTANCE_FROM_CORNER
private static final int DEFAULT_PATH_DISTANCE_FROM_CORNER
Smart path layout uses this constant to find a usable connection point for paths.- See Also:
- Constant Field Values
-
PREFERRED_BREAKPOINT_DISTANCE
private static final int PREFERRED_BREAKPOINT_DISTANCE
Smart path layout uses this constant to create a breakpoint for layouted path.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BarView
public BarView()
-
BarView
public BarView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
minimumSizeIgnoringOrientation
protected void minimumSizeIgnoringOrientation(java.awt.Dimension min)
- Overrides:
minimumSizeIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
preferredSizeIgnoringOrientation
protected void preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
- Overrides:
preferredSizeIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
-
isSeparateJoinForkNotation
private boolean isSeparateJoinForkNotation()
-
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.
-
getMiddlePointX
public int getMiddlePointX(java.awt.Point rel)
-
getMiddlePointY
public int getMiddlePointY(java.awt.Point rel)
-
sSetOrientation
public void sSetOrientation(java.lang.String o)
Sets orientation for the bar- Parameters:
o
- orientation
-
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
setOrientation
public void setOrientation(java.lang.String o)
-
getOrientation
public java.lang.String getOrientation()
- Returns:
- orientation of the bar
-
findParentForData
public Element findParentForData(PresentationElement parent, com.nomagic.uml2.ElementAddContext addContext)
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Applies properties- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
- Parameters:
man
- new properties
-
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.
-
smartLayoutPathOnAllowedEdges
private void smartLayoutPathOnAllowedEdges(PathElement link)
Smart layouts path on bar edges. Horizontal bar cannot have paths on vertical sides and vertical bar cannot have paths on horizontal sides.- Parameters:
link
- - path which should be layouted.
-
findUsableConnectionPoint
private java.awt.Point findUsableConnectionPoint(int edge, java.awt.Point corner)
Finds a usable connection point for paths on a specified edge close to the specified corner.- Parameters:
edge
- - edge on which a point should be found.corner
- - a point close to which a point should be found- Returns:
- a usable path connection point.
-
calculatePathDistanceFromCorner
private int calculatePathDistanceFromCorner(int nearestPathDistance)
Calculates path connection distance from bar corner.- Parameters:
nearestPathDistance
- - distance to the nearest path from corner.- Returns:
- preferred path distance from corner.
-
getConnectedPathPointsOnEdge
private java.util.List getConnectedPathPointsOnEdge(int edge)
Gets all path connection points on the specified edge.- Parameters:
edge
- - edge on which connection points have to be round.- Returns:
- a list of connection points.
-
isForkNode
public boolean isForkNode()
Indicates if this symbol represents fork node.- Returns:
- true if this symbol represents fork node, false otherwise.
-
isJoinNode
public boolean isJoinNode()
Indicates if this symbol represents join node.- Returns:
- true if this symbol represents join node, false otherwise.
-
isJoinPseudostate
private boolean isJoinPseudostate()
-
sSetParent
public void sSetParent(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
-
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.
-
-