Class PortView
- 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.TypedElementWithLabels
 - 
- com.nomagic.magicdraw.uml.symbols.shapes.PortView
 
 
 
 
 
 
 
 
 
 
 
- 
- 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,com.nomagic.magicdraw.uml.symbols.shapes.PortOwner,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,java.beans.PropertyChangeListener,java.lang.Cloneable,java.lang.Comparable,java.util.EventListener
@OpenApi public class PortView extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels implements com.nomagic.magicdraw.uml.symbols.shapes.PortOwner 
- 
- 
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 intMIN_SIZE_HEIGHTstatic intMIN_SIZE_WIDTHprivate booleanupdateNestedPorts- 
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
LABELS_DISPLAY_MODE_ALL_INSIDE, LABELS_DISPLAY_MODE_INSIDE_ENCLOSING_SHAPE, LABELS_DISPLAY_MODE_NAME_INSIDE, LABELS_DISPLAY_MODE_OUTSIDE, LABELS_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.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 PortView()PortView(PresentationElement parent) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .private static voidadjustPositionFor(com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView view, com.nomagic.magicdraw.uml.symbols.shapes.Alignment iconPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment iconPositionVertical)voidadjustPositionForProvidedInterfacesLabel()voidadjustPositionForRequiredInterfacesLabel()booleancanAddInstance(PresentationElement obj)Object view has no children.booleancanChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent)Returns true, if element can change parent.protected voidcreateLabels()protected voidcreateSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)voiddrawLinesToInterfacesLabels(java.awt.Graphics2D g)Draw lines to interfaces labels.voiddrawLineToLabel(java.awt.Graphics g, com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView label, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionVertical)ElementfindParentForData(PresentationElement newParent, com.nomagic.uml2.ElementAddContext addContext)PresentationElementgetBorderOwnerExcludingPort()Gets owner of the border on which this port lies.protected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetDefaultHorizontalPositionForProvidedLabel()protected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetDefaultHorizontalPositionForRequiredLabel()Default position required lollipop.protected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetDefaultVerticalPositionForProvidedLabel()protected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetDefaultVerticalPositionForRequiredLabel()Default position required lollipop.PortgetElement()Returns model element of this presentation element.EncapsulatedClassifiergetEncapsulatedClassifier()TypedElementgetEncapsulatedClassifierProvider()com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetIconPositionForProvidedHorizontal()com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetIconPositionForProvidedVertical()com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetIconPositionForRequiredHorizontal()com.nomagic.magicdraw.uml.symbols.shapes.AlignmentgetIconPositionForRequiredVertical()intgetOnEdgePosition()Returns position on edge.PortgetPort()Deprecated.use #getElementstatic PortgetPort(PresentationElement symbol)static EncapsulatedClassifiergetPortClassifier(PresentationElement parent)private java.awt.PointgetPortConnectionPoint(com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionVertical)Finds connection point on the port by the label positioncom.nomagic.magicdraw.uml.symbols.shapes.ProvidedInterfaceLabelWrappergetProvidedInterfaceLabelWrapper()com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconViewgetProvidedInterfacesLabelBox()protected java.util.stream.Stream<PresentationElement>getProxyPresentationElementsStream()com.nomagic.magicdraw.uml.symbols.shapes.RequiredInterfaceLabelWrappergetRequiredInterfaceLabelWrapper()com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconViewgetRequiredInterfacesLabelBox()voidinternalApplyProperties(PropertyManager propertyManager)Applies properties from given property managerjava.util.Collection<? extends Element>internalGetElementsForLinkConnecting()Returns all possible element that can be used for some link connecting.ElementinternalGetElementToConnectLink(Element path, boolean asClient)Returns element that should be used for given link connecting.voidinternalSilentApply()Silently applies all properties after initializationprotected voidinternalSpecificUpdate()protected booleanisDrawRectangle()static booleanisPort(PresentationElement element)Check if given symbol represents Portprivate static booleanisRightOwnerForPort(BaseElement modelOwner, Classifier viewOwner)booleanisShowInheritedSign()booleanisShowMultiplicity()booleanisShowProvidedInterfaces()booleanisShowRequiredInterfaces()protected booleanisSnapToGrid()private booleanisUpdateNestedPorts()static booleanownerValid(PresentationElement symbol)voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)voidpropertyChange(java.beans.PropertyChangeEvent e)Listens for property change it can be: data was edited text box was editedvoidsetOnEdge(int onEdge)Sets on edge property.voidsetShowInheritedSign(boolean showInheritedSign)Show inherited members sign in compartmentvoidsetShowMultiplicity(boolean showMultiplicity)voidsetShowProvidedInterfaces(boolean show)voidsetShowRequiredInterfaces(boolean show)private voidsetUpdateNestedPorts(boolean updateNestedPorts)voidsSetShowInheritedSign(boolean showInheritedSign)Show inherited signvoidsSetShowMultiplicity(boolean showMultiplicity)voidsSetShowProvidedInterfaces(boolean show)voidsSetShowRequiredInterfaces(boolean show)voidupdateNameBox()- 
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
calculateOnEdgeBounds, checkShowsProxy, createCompartmentElements, createConstraintLabelWrapper, createElementPropertiesLabelWrapper, createNameLabelWrapper, createStereotypeLabelWrapper, createTaggedValueLabelWrapper, doInternalLayoutChildren, editName, getClassifiers, getCollections, getHeaderBoundsForPreferredBounds, getHeaderObject, getLabelDisplayMode, getName, getType, internalGetHeaderInsets, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, isShowFullType, isShowNameAndTypeInside, isShowText, isShowType, minimumSizeIgnoringOrientation, preferredSizeIgnoringOrientation, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setLabelDisplayMode, setMinSize, setName, setNameResizeLabel, setShowConstraints, setShowElementProperties, setShowFullType, setShowName, setShowTaggedValues, setShowType, setStereotypesDisplayMode, setVisibleElements, setWordWrap, sSetClassifier, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetLabelDisplayMode, sSetName, sSetShowFullType, sSetShowType, sSetStereotypesDisplayMode, sSetType, sSetWordWrap, updateIcon 
- 
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
addLabel, canBeAutosized, clone, edgeChanged, getBoundsToRepaint, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getDSLStereotypesDisplayMode, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getLabelHandler, getNameLabelBox, getNameLabelWrapper, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, internalAppendChildRect, internalPostUpdatePresentationElement, isLabelWrapText, isShowConstraints, isShowElementProperties, isShowName, isShowNumberTagName, isShowTaggedValues, isWordWrap, removeLabel, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, simpleSetBounds, sSetElement, sSetElementNumberDisplayMode, sSetShowConstraints, sSetShowElementProperties, sSetShowName, sSetShowNumberTagName, sSetShowTaggedValues, sSetSuspendLabelAutoDisplayMode, updateAfterLoad 
- 
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, createBoundsShape, createStateForUpdateOperation, getAdditionalHeaderHeightForPreferredBounds, getChildrenBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderMaxYForShrinkableShape, getHeaderVerticalPosition, getHeaderVerticalPositionForLayout, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getStereotypesToDisplay, internalGetHeaderBoundsForPreferredBounds, internalLayoutChildren, internalPreSpecificUpdate, 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, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, 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, calculatePreferredDimension, calculatePreferredDimension, canHavePaths, clearOldRect, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDefaultDimension, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getPreferredDimension, getPreferredDimensionForAutosize, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, 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, 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, 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, hasSharedData, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, 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, 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, sSetParent, 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
- 
MIN_SIZE_HEIGHT
public static final int MIN_SIZE_HEIGHT
- See Also:
 - Constant Field Values
 
 
- 
MIN_SIZE_WIDTH
public static final int MIN_SIZE_WIDTH
- See Also:
 - Constant Field Values
 
 
- 
updateNestedPorts
private boolean updateNestedPorts
 
 - 
 
- 
Constructor Detail
- 
PortView
public PortView()
 
- 
PortView
public PortView(@CheckForNull PresentationElement parent) 
 - 
 
- 
Method Detail
- 
getElement
public Port getElement()
Description copied from class:PresentationElementReturns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
 getElementin interfacecom.nomagic.magicdraw.uml.symbols.LabelOwner- Specified by:
 getElementin interfaceModelElementProvider- Overrides:
 getElementin classPresentationElement- Returns:
 - model element of this presentation element.
 
 
- 
getPort
public static Port getPort(PresentationElement symbol)
- Parameters:
 symbol- symbol- Returns:
 - return element of given symbol as Port
 
 
- 
isPort
public static boolean isPort(PresentationElement element)
Check if given symbol represents Port- Parameters:
 element- symbol- Returns:
 - true if symbol is PortView or PartView which represents Port
 
 
- 
createLabels
protected void createLabels()
- Overrides:
 createLabelsin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
 
- 
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
 internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
 
- 
updateNameBox
public void updateNameBox()
- Overrides:
 updateNameBoxin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
 
- 
getRequiredInterfaceLabelWrapper
public com.nomagic.magicdraw.uml.symbols.shapes.RequiredInterfaceLabelWrapper getRequiredInterfaceLabelWrapper()
 
- 
getProvidedInterfaceLabelWrapper
public com.nomagic.magicdraw.uml.symbols.shapes.ProvidedInterfaceLabelWrapper getProvidedInterfaceLabelWrapper()
 
- 
getRequiredInterfacesLabelBox
@CheckForNull public com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView getRequiredInterfacesLabelBox()
 
- 
getProvidedInterfacesLabelBox
@CheckForNull public final com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView getProvidedInterfacesLabelBox()
 
- 
ownerValid
public static boolean ownerValid(PresentationElement symbol)
 
- 
getPortClassifier
@CheckForNull public static EncapsulatedClassifier getPortClassifier(PresentationElement parent)
 
- 
getBorderOwnerExcludingPort
public PresentationElement getBorderOwnerExcludingPort()
Gets owner of the border on which this port lies. Does not take into consideration nested ports.- Returns:
 - symbol on which this port lies, excluding nested ports.
 
 
- 
isRightOwnerForPort
private static boolean isRightOwnerForPort(BaseElement modelOwner, @CheckForNull Classifier viewOwner)
 
- 
getPort
@OpenApi @Deprecated public Port getPort()
Deprecated.use #getElementGets port represented by this port symbol. 
- 
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElementMethod accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details. 
- 
canChangeParent
public boolean canChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent)
Description copied from class:PresentationElementReturns true, if element can change parent.- Parameters:
 movedTogether- collection of the elements, whose will change the parent together with this.newParent- new symbol parentchangeElementParent- change element parent- Returns:
 - true if parent of symbol can be changed
 
 
- 
isSnapToGrid
protected boolean isSnapToGrid()
 
- 
getOnEdgePosition
public int getOnEdgePosition()
Description copied from class:ShapeElementReturns position on edge.- Returns:
 - position on edge.
 - See Also:
 ShapeElement.ON_EDGE_POSITION,ShapeElement.INSIDE_EDGE_POSITION,ShapeElement.OUTSIDE_EDGE_POSITION
 
- 
setOnEdge
public void setOnEdge(int onEdge)
Description copied from class:ShapeElementSets on edge property.- Parameters:
 onEdge- the edge constant- See Also:
 ShapeElement.getOnEdge()
 
- 
adjustPositionForProvidedInterfacesLabel
public void adjustPositionForProvidedInterfacesLabel()
 
- 
adjustPositionForRequiredInterfacesLabel
public void adjustPositionForRequiredInterfacesLabel()
 
- 
internalGetElementToConnectLink
public Element internalGetElementToConnectLink(@CheckForNull Element path, boolean asClient)
Description copied from class:PresentationElementReturns 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()
 
- 
internalGetElementsForLinkConnecting
public java.util.Collection<? extends Element> internalGetElementsForLinkConnecting()
Description copied from class:PresentationElementReturns all possible element that can be used for some link connecting. One of these elements are return in method getElementToConnectLink() in specific situation. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
 - all possible elements
 - See Also:
 PresentationElement.getElementToConnectLink(Element, boolean)
 
- 
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
 createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
 
- 
findParentForData
public Element findParentForData(PresentationElement newParent, com.nomagic.uml2.ElementAddContext addContext)
 
- 
isShowRequiredInterfaces
public boolean isShowRequiredInterfaces()
 
- 
isShowProvidedInterfaces
public boolean isShowProvidedInterfaces()
 
- 
sSetShowProvidedInterfaces
public void sSetShowProvidedInterfaces(boolean show)
 
- 
setShowProvidedInterfaces
public void setShowProvidedInterfaces(boolean show)
 
- 
sSetShowRequiredInterfaces
public void sSetShowRequiredInterfaces(boolean show)
 
- 
setShowRequiredInterfaces
public void setShowRequiredInterfaces(boolean show)
 
- 
isDrawRectangle
protected boolean isDrawRectangle()
- Overrides:
 isDrawRectanglein classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
 
- 
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElementObject view has no children.- Overrides:
 canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
 
- 
getProxyPresentationElementsStream
protected java.util.stream.Stream<PresentationElement> getProxyPresentationElementsStream()
- Overrides:
 getProxyPresentationElementsStreamin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
 
- 
getEncapsulatedClassifier
public EncapsulatedClassifier getEncapsulatedClassifier()
- Specified by:
 getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
 
- 
getIconPositionForProvidedHorizontal
public com.nomagic.magicdraw.uml.symbols.shapes.Alignment getIconPositionForProvidedHorizontal()
 
- 
getIconPositionForProvidedVertical
public com.nomagic.magicdraw.uml.symbols.shapes.Alignment getIconPositionForProvidedVertical()
 
- 
getDefaultHorizontalPositionForProvidedLabel
protected com.nomagic.magicdraw.uml.symbols.shapes.Alignment getDefaultHorizontalPositionForProvidedLabel()
 
- 
getDefaultVerticalPositionForProvidedLabel
protected com.nomagic.magicdraw.uml.symbols.shapes.Alignment getDefaultVerticalPositionForProvidedLabel()
 
- 
isShowInheritedSign
public boolean isShowInheritedSign()
- Returns:
 - true if inherited sign is shown
 
 
- 
sSetShowInheritedSign
public void sSetShowInheritedSign(boolean showInheritedSign)
Show inherited sign- Parameters:
 showInheritedSign- show
 
- 
setShowInheritedSign
public void setShowInheritedSign(boolean showInheritedSign)
Show inherited members sign in compartment- Parameters:
 showInheritedSign- show
 
- 
isShowMultiplicity
public boolean isShowMultiplicity()
 
- 
setShowMultiplicity
public void setShowMultiplicity(boolean showMultiplicity)
 
- 
sSetShowMultiplicity
public void sSetShowMultiplicity(boolean showMultiplicity)
 
- 
internalApplyProperties
public void internalApplyProperties(PropertyManager propertyManager)
Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
 internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels- Parameters:
 propertyManager- new properties
 
- 
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElementSilently applies all properties after initialization- Overrides:
 internalSilentApplyin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
 
- 
getPortConnectionPoint
private java.awt.Point getPortConnectionPoint(com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionVertical)Finds connection point on the port by the label position- Parameters:
 labelPositionHorizontal- horizontal positionlabelPositionVertical- vertical position- Returns:
 - connection point
 
 
- 
getIconPositionForRequiredHorizontal
public com.nomagic.magicdraw.uml.symbols.shapes.Alignment getIconPositionForRequiredHorizontal()
 
- 
getIconPositionForRequiredVertical
public com.nomagic.magicdraw.uml.symbols.shapes.Alignment getIconPositionForRequiredVertical()
 
- 
getDefaultHorizontalPositionForRequiredLabel
protected com.nomagic.magicdraw.uml.symbols.shapes.Alignment getDefaultHorizontalPositionForRequiredLabel()
Default position required lollipop. Gives if it is on the right or left according port view or, if lollipop are at the top or bottom regarding to the portView, then gives right or left according PROVIDED lollipop- Returns:
 - position
 - See Also:
 Alignment.RIGHT,Alignment.LEFT
 
- 
getDefaultVerticalPositionForRequiredLabel
protected com.nomagic.magicdraw.uml.symbols.shapes.Alignment getDefaultVerticalPositionForRequiredLabel()
Default position required lollipop. Gives if it is on the top or bottom according port view or, if lollipop are at the left or right regarding to the portView, then gives right or left according PROVIDED lollipop- Returns:
 - position
 - See Also:
 Alignment.TOP,Alignment.BOTTOM
 
- 
adjustPositionFor
private static void adjustPositionFor(com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView view, com.nomagic.magicdraw.uml.symbols.shapes.Alignment iconPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment iconPositionVertical) 
- 
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
 paintSelfin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
 
- 
drawLinesToInterfacesLabels
public void drawLinesToInterfacesLabels(java.awt.Graphics2D g)
Draw lines to interfaces labels.- Parameters:
 g- graphics
 
- 
drawLineToLabel
public void drawLineToLabel(java.awt.Graphics g, com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconView label, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionHorizontal, com.nomagic.magicdraw.uml.symbols.shapes.Alignment labelPositionVertical) 
- 
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
Description copied from class:PresentationElementListens for property change it can be: data was edited text box was edited- Specified by:
 propertyChangein interfacejava.beans.PropertyChangeListener
 
- 
getEncapsulatedClassifierProvider
public TypedElement getEncapsulatedClassifierProvider()
- Specified by:
 getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
 
- 
isUpdateNestedPorts
private boolean isUpdateNestedPorts()
 
- 
setUpdateNestedPorts
private void setUpdateNestedPorts(boolean updateNestedPorts)
 
 - 
 
 -