Class PortView
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
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.AbstractShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
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.PropertyBasedPresentationElement,com.nomagic.magicdraw.uml.symbols.shapes.LabelsDisplayModeSupporter,com.nomagic.magicdraw.uml.symbols.shapes.PortOwner,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class PortView
extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
implements com.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGEFields 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, TOP_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxyFields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, peStyle, SHADOW_WIDTH, SOLID_STROKEFields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.LabelsDisplayModeSupporter
MIN_SIZEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.voidvoidbooleancanAddInstance(PresentationElement symbol) Object view has no children.booleancanChangeParent(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.booleancanLabelBeInside(com.nomagic.magicdraw.uml.symbols.shapes.LabelWrapper labelWrapper) protected voidprotected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) voidDraw lines to interface labels.voiddrawLineToLabel(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) com.dassault_systemes.modeler.foundation.model.ModelElementfindOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) Gets owner of the border on which this port lies.protected com.nomagic.magicdraw.uml.symbols.shapes.Alignmentprotected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentDefault position required lollipop.protected com.nomagic.magicdraw.uml.symbols.shapes.Alignmentprotected com.nomagic.magicdraw.uml.symbols.shapes.AlignmentDefault position required lollipop.Returns model element of this presentation element.com.nomagic.magicdraw.uml.symbols.shapes.Alignmentcom.nomagic.magicdraw.uml.symbols.shapes.Alignmentcom.nomagic.magicdraw.uml.symbols.shapes.Alignmentcom.nomagic.magicdraw.uml.symbols.shapes.AlignmentintReturns position on edge.getPort()Deprecated.use #getElementstatic PortgetPort(PresentationElement symbol) static EncapsulatedClassifiergetPortClassifier(PresentationElement parent) com.nomagic.magicdraw.uml.symbols.shapes.ProvidedInterfaceLabelWrapperfinal com.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconViewprotected Stream<PresentationElement>com.nomagic.magicdraw.uml.symbols.shapes.RequiredInterfaceLabelWrappercom.nomagic.magicdraw.uml.symbols.shapes.TextBoxWithIconViewvoidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerCollection<? extends com.dassault_systemes.modeler.foundation.model.ModelElement>Returns all possible element that can be used for some relationship connecting.com.dassault_systemes.modeler.foundation.model.ModelElementinternalGetModelElementToConnectRelationship(com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient) Returns element that should be used for given relationship connecting.voidSilently applies all properties after initializationprotected voidSpecific to every shape and model element update operation.protected booleanstatic booleanisPort(PresentationElement element) Check if given symbol represents Portbooleanbooleanbooleanprotected booleanstatic booleanownerValid(PresentationElement symbol) voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) voidListens 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 compartmentvoidsetShowProvidedInterfaces(boolean show) voidsetShowRequiredInterfaces(boolean show) voidsSetShowInheritedSign(boolean showInheritedSign) Show inherited signvoidsSetShowProvidedInterfaces(boolean show) voidsSetShowRequiredInterfaces(boolean show) Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
createNameLabelWrapper, getClassifiers, getType, isShowFullType, isShowMultiplicity, isShowText, isShowType, setShowFullType, setShowMultiplicity, setShowType, sSetClassifier, sSetShowFullType, sSetShowMultiplicity, sSetShowType, sSetTypeMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
calculateOnEdgeBounds, checkShowsProxy, clone, createCompartmentElements, createConstraintLabelWrapper, createElementPropertiesLabelWrapper, createStereotypeLabelWrapper, createTaggedValueLabelWrapper, doInternalLayoutChildren, editName, getCollections, getHeaderBoundsForPreferredBounds, getHeaderObject, getLabelDisplayMode, getName, internalGetHeaderInsets, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, isShowAllInside, isShowAnyInside, minimumSizeIgnoringOrientation, preferredSizeIgnoringOrientation, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setLabelDisplayMode, setMinSize, setName, setNameResizeLabel, setShowConstraints, setShowElementProperties, setShowName, setShowTaggedValues, setStereotypesDisplayMode, setVisibleElements, setWordWrap, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetLabelDisplayMode, sSetName, sSetStereotypesDisplayMode, sSetWordWrap, updateIconMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, isShowConstraints, isShowElementProperties, isShowNumberTagName, isShowTaggedValues, sSetElementNumberDisplayMode, sSetShowConstraints, sSetShowElementProperties, sSetShowNumberTagName, sSetShowTaggedValues, updateAfterLoad, updateNameBoxMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
addLabel, asPresentationElement, canBeAutosized, edgeChanged, getBoundsToRepaint, getLabelHandler, getNameLabelBox, getNameLabelWrapper, internalAppendChildRect, internalPostUpdatePresentationElement, isLabelWrapText, isShowName, isWordWrap, removeLabel, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, simpleSetBounds, sSetElement, sSetShowName, sSetSuspendLabelAutoDisplayModeMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, 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, switchWidthHeightIfVerticalOrientationMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, recursiveAutosize, removePresentationElement, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, sRemovePresentationElement, sSetPresentationElementsMethods 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, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, 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, updateLaterMethods 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, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsert, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, disposePropertyChangeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findOwnerForChildElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAdditionalRenderersToNotifyOnPropertiesChange, getAssignableModelElementsClasses, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getOwnStyleDelegate, getParent, getParentSymbolStyleOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, hasSharedModelElement, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, intersects, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setElement, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLocation, sSetLocation, sSetModelElement, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyleMethods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, setResourceIDProvider, sGetIDMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeableMethods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointYMethods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElementsMethods inherited from interface com.nomagic.magicdraw.uml.symbols.LabelOwner
getModelElementMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
MIN_SIZE_HEIGHT
public static final int MIN_SIZE_HEIGHT- See Also:
-
MIN_SIZE_WIDTH
public static final int MIN_SIZE_WIDTH- See Also:
-
-
Constructor Details
-
PortView
public PortView() -
PortView
-
-
Method Details
-
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
- Parameters:
symbol- symbol- Returns:
- return element of given symbol as Port
-
isPort
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.AbstractShapeWithLabelsInside
-
internalSpecificUpdate
protected void internalSpecificUpdate()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeViewSpecific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.- Overrides:
internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
constructNameText
- Overrides:
constructNameTextin 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
-
getPortClassifier
-
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.
-
getPort
Deprecated.use #getElementGets port represented by this port symbol. -
accept
Description copied from interface:MDElementMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
canChangeParent
public boolean canChangeParent(Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent) Description copied from class:PresentationElementReturns true, if element can change parent.- Overrides:
canChangeParentin classPresentationElement- 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()- Overrides:
isSnapToGridin classShapeElement
-
getOnEdgePosition
public int getOnEdgePosition()Description copied from class:ShapeElementReturns position on edge.- Overrides:
getOnEdgePositionin classShapeElement- Returns:
- position on edge.
- See Also:
-
setOnEdge
public void setOnEdge(int onEdge) Description copied from class:ShapeElementSets on edge property.- Overrides:
setOnEdgein classShapeElement- Parameters:
onEdge- the edge constant- See Also:
-
adjustPositionForProvidedInterfacesLabel
public void adjustPositionForProvidedInterfacesLabel() -
adjustPositionForRequiredInterfacesLabel
public void adjustPositionForRequiredInterfacesLabel() -
internalGetModelElementToConnectRelationship
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement internalGetModelElementToConnectRelationship(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient) Description copied from class:PresentationElementReturns element that should be used for given relationship connecting. All possible elements are returned by methodPresentationElement.getModelElementsForRelationshipConnecting().- Overrides:
internalGetModelElementToConnectRelationshipin classPresentationElement- Returns:
- all possible elements
- See Also:
-
internalGetModelElementsForRelationshipConnecting
public Collection<? extends com.dassault_systemes.modeler.foundation.model.ModelElement> internalGetModelElementsForRelationshipConnecting()Description copied from class:PresentationElementReturns all possible element that can be used for some relationship connecting.- Overrides:
internalGetModelElementsForRelationshipConnectingin classPresentationElement- Returns:
- all possible elements
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
-
findOwnerForElement
public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) - Overrides:
findOwnerForElementin classPresentationElement
-
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.AbstractShapeWithLabelsInside
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
-
getProxyPresentationElementsStream
- Overrides:
getProxyPresentationElementsStreamin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
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
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels- Parameters:
changer- 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
-
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 the portView, then gives right or left according PROVIDED lollipop- Returns:
- position
- See Also:
-
Alignment.RIGHTAlignment.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 the portView, then gives right or left according PROVIDED lollipop- Returns:
- position
- See Also:
-
Alignment.TOPAlignment.BOTTOM
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
paintSelfin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
-
drawLinesToInterfacesLabels
Draw lines to interface labels.- Parameters:
g- graphics
-
drawLineToLabel
public void drawLineToLabel(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
Description copied from class:PresentationElementListens for property change it can be: data was edited text box was edited- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classPresentationElement
-
getEncapsulatedClassifierProvider
- Specified by:
getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
canLabelBeInside
public boolean canLabelBeInside(com.nomagic.magicdraw.uml.symbols.shapes.LabelWrapper labelWrapper) - Specified by:
canLabelBeInsidein interfacecom.nomagic.magicdraw.uml.symbols.shapes.LabelsDisplayModeSupporter
-