Class PartView
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.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
com.nomagic.magicdraw.uml.symbols.shapes.PartView
- All Implemented Interfaces:
BaseElement
,CompartmentElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.CompartmentContainer
,com.nomagic.magicdraw.uml.symbols.CompartmentOwner
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
,com.nomagic.magicdraw.uml.symbols.shapes.PortOwner
,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,com.nomagic.magicdraw.uml.symbols.Wrapable
,NameOwner
,PropertyChangeListener
,Cloneable
,Comparable
,EventListener
@OpenApi
public class PartView
extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
implements CompartmentElement, com.nomagic.magicdraw.uml.symbols.shapes.PortOwner, com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_IMAGE_AND_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODES
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGE
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, 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, peStyle, SHADOW_WIDTH, SOLID_STROKE
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
QNAME_DISPLAY_MODE_ABOVE_NAME, QNAME_DISPLAY_MODE_BELOW_NAME, QNAME_DISPLAY_MODE_DO_NOT_DISPLAY, QNAME_DISPLAY_MODE_MERGE_WITH_NAME, QNAME_DISPLAY_MODES
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.StereotypesDisplayModeOwner
DSL_STEREOTYPE_DISPLAY_MODE_ALL, DSL_STEREOTYPE_DISPLAY_MODE_LAST, DSL_STEREOTYPE_DISPLAY_MODE_NONE, DSL_STEREOTYPE_DISPLAY_MODES, STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, STEREOTYPE_DISPLAY_MODE_ICON, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, STEREOTYPES_DISPLAY_MODES, STEREOTYPES_DISPLAY_MODES_SIMPLE
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
DO_NOT_DISPLAY, IN_COMPARTMENT, ON_SHAPE, TAGGED_VALUES_DISPLAY_MODES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.void
addPresentationElement
(PresentationElement element, int index, boolean resize) If a specified object not inserted in this container then adds a new object view to the container.boolean
canAddChild
(PresentationElement symbol) Check of given symbol can be added as child into this symbol.boolean
canAddInstance
(PresentationElement symbol) Object view has no children.boolean
canChangeParent
(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.clone()
protected void
createSmartListenerConfig
(List<SmartListenerConfig> configurations) com.dassault_systemes.modeler.foundation.model.ModelElement
Returns element owner for given child.com.dassault_systemes.modeler.foundation.model.ModelElement
findOwnerForElement
(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) static PresentationElement
findPresentationElement
(List<PresentationElement> elements, Element element, List<Property> nestedPath) Finds existing symbol among the given ones with a given Element and given nestedPathReturns model element of this presentation element.protected int
getHeaderInsetReduce
(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds) com.nomagic.magicdraw.uml.symbols.shapes.PartHeaderView
com.dassault_systemes.modeler.foundation.model.ModelElement
Returns element that should be used for during "move" operation.int
Returns position on edge.Deprecated.use #getElementGets value of slot showing property.com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentView
void
internalApplyProperties
(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected com.nomagic.ui.UnmodifiableInsets
internalGetPresentationElementStroke
(int width) Return a stroke used to paint symbol's main partvoid
internalLayoutChildren
(boolean calculatePrefSize) void
Silently applies all properties after initializationprotected void
Specific to every shape and model element update operation.protected boolean
boolean
static boolean
boolean
static boolean
boolean
Returns show default value flag.boolean
Indicates if default value compartment name should be displayed.boolean
boolean
boolean
boolean
Indicated if an element should show Rake Iconboolean
boolean
boolean
isValid
(PresentationElement parent, boolean changeElementParent) Checks if part is valid by symbol ownership in it's current context.protected void
preferredSizeIgnoringOrientation
(Dimension pref, int locationX, int locationY) void
Listens for property change it can be: data was edited text box was editedvoid
removePresentationElement
(PresentationElement element, boolean resizeParent) Removes object view from container.void
sAddPresentationElement
(PresentationElement element, int index) Add given child to this symbol at given indexboolean
setDummyResizeMode
(boolean b) In dummy resize mode symbol may not resize according it children or move children on bounds changed and etc.void
setNestedPath
(List<Property> nestedPath) void
setParent
(PresentationElement parent) Sets parent for this view.void
setShowDefaultValue
(boolean show) Set show default value flag.void
setShowDefaultValueCompartmentName
(boolean show) Sets show default value compartment name flag value.void
setShowInheritedSign
(boolean showInheritedSign) Show inherited members sign in compartmentvoid
setShowMultiplicity
(boolean showMultiplicity) void
setShowQualifiedNameInTaggedValues
(boolean show) void
setShowSlotTypeMode
(String mode) Sets value of slot showing property.void
setShowTaggedValuesStereotypes
(boolean show) void
void
Removes given childvoid
sSetClassifiers
(List<Classifier> type) Sets one classifier.void
sSetNestedPath
(List<Property> nestedPart, boolean disposeOldListeners) void
sSetShowDefaultValue
(boolean show) Set show default value flag.void
sSetShowDefaultValueCompartmentName
(boolean show) Simple sets show default value compartment name flag value.void
sSetShowInheritedSign
(boolean showInheritedSign) Show inherited signvoid
sSetShowMultiplicity
(boolean showMultiplicity) void
sSetShowQualifiedNameInTaggedValues
(boolean show) void
sSetShowSlotTypeMode
(String mode) Sets value of slot showing property.void
sSetShowTaggedValuesStereotypes
(boolean show) void
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
addBreakPoints, checkShowsProxy, doActualShapeDrawing, getClassifiers, getDefaultDimension, getSeparatorDistanceFromRightSide, getStereotypesToDisplay, getTypeClass, isActive, isDrawUnderLine, isShowClass, isShowFullType, movePathElement, selfSpecificHeaderShapeDraw, setDrawUnderLine, setShowClass, setShowFullType, sSetShowClass, sSetShowFullType
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
atInsert, canSuppressContent, dispose, getBooleanCompartmentPropertyValue, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getMiddlePointByIcon, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, internalBeforeUpdate, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeSymbol, isShowTaggedValues, isShowType, recursiveAutosize, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setQNameDisplayMode, setSecondaryImageAndStereotypeDisplayMode, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, updateBorderVisibility, updateName
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
addCompartment, addCompartment, applyCompartmentsStyle, areBoxCompartmentsSuppressed, askDeleteDataConfirmation, asPresentationElement, autosizeShapesOnEdge, canHideBorder, childrenBoundsForReshape, createBoundsShape, createCompartmentElements, createStateForUpdateOperation, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentDescriptor, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotifyOnPropertiesChange, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, getCompartmentByID, getCompartmentIDs, getCompartments, getCompartmentsIDs, getCompartmentStyleDelegate, getConfiguredPreferredSizeForAutosize, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getLastHeaderShapeElementBottom, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, hasManipulatedChildrenIncludingIndirect, hasSharedModelElement, internalAddIndirectManipulatedChildrenRect, internalGetIndirectManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isWrapEnabled, iterateCompartmentDelegates, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, removeCompartment, removeCompartment, setCollections, setCompartmentSuppressed, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setReshapeMode, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetName, sSetWrapEnabled, updateChildrenVisibility, updateCompartmentsVisibility
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, editName, getAdditionalHeaderHeightForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, internalGetHeaderBoundsForPreferredBounds, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, setBounds, setBounds, setCanMoveChildren, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sSetPresentationElements
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getPreferredDimension, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElements, needAdjustToMaximumDimension, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, supportsVisibleConnectedPathElementsIfSelfInvisible
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, 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, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, 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, 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, initializeAndAutosize, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, 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, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyle
Methods 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, sGetID
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeable
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY
Methods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElements
Methods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Constructor Details
-
PartView
public PartView() -
PartView
-
-
Method Details
-
getStructureCompartment
public com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentView getStructureCompartment() -
getClassifier
- Specified by:
getClassifier
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
sSetClassifiers
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
Sets one classifier.- Specified by:
sSetClassifiers
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
- Parameters:
type
- a collection of classifiers to set as type of this typed element
-
getMetaClassifiersQPropertyName
- Specified by:
getMetaClassifiersQPropertyName
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()- Overrides:
internalGetHeaderInsets
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
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.
-
getProperty
Deprecated.use #getElement -
accept
Description copied from interface:MDElement
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
createSmartListenerConfig
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isShowRakeIcon
public boolean isShowRakeIcon()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
Indicated if an element should show Rake Icon- Overrides:
isShowRakeIcon
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Returns:
- true in case should show, else false
-
internalGetPresentationElementStroke
Description copied from class:PresentationElement
Return a stroke used to paint symbol's main part- Overrides:
internalGetPresentationElementStroke
in classPresentationElement
- Parameters:
width
- a custom stroke width. Other stroke parameters will be specific to symbol- Returns:
- a stroke used to paint symbol's main part
-
findOwnerForElement
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) - Overrides:
findOwnerForElement
in classPresentationElement
-
getModelElementToMove
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement getModelElementToMove()Description copied from class:PresentationElement
Returns element that should be used for during "move" operation. In most cases this is the same as getElement(), but some symbols maybe override and return some other related element.- Overrides:
getModelElementToMove
in classPresentationElement
- Returns:
- element to move
- See Also:
-
getCompartmentElementID
- Specified by:
getCompartmentElementID
in interfaceCompartmentElement
-
getCompartmentText
- Specified by:
getCompartmentText
in interfaceCompartmentElement
-
internalSpecificUpdate
protected void internalSpecificUpdate()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
Specific 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:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
isValid
Checks if part is valid by symbol ownership in it's current context.- Parameters:
parent
- the owner of partchangeElementParent
- check if valid for a move operation- Returns:
- true if part ownership is valid
-
getElementFromParentSymbol
-
getElementFromParentSymbol
-
isDrawSeparator
protected boolean isDrawSeparator()- Overrides:
isDrawSeparator
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
getTaggedValuesDisplayMode
- Specified by:
getTaggedValuesDisplayMode
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
sSetTaggedValuesDisplayMode
- Specified by:
sSetTaggedValuesDisplayMode
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
setTaggedValuesDisplayMode
- Specified by:
setTaggedValuesDisplayMode
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
getShowSlotTypeMode
Gets value of slot showing property. Default is NONE- Returns:
- mode
- See Also:
-
SlotView.SHOW_TYPE_MODE_NONE
SlotView.SHOW_TYPE_MODE_NAME
SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
-
sSetShowSlotTypeMode
Sets value of slot showing property. Just changes property, but no update is done- Parameters:
mode
- mode- See Also:
-
SlotView.SHOW_TYPE_MODE_NONE
SlotView.SHOW_TYPE_MODE_NAME
SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
-
setShowSlotTypeMode
Sets value of slot showing property. Calls view update- Parameters:
mode
- mode- See Also:
-
SlotView.SHOW_TYPE_MODE_NONE
SlotView.SHOW_TYPE_MODE_NAME
SlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
-
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) -
isShowDefaultValueCompartmentName
public boolean isShowDefaultValueCompartmentName()Indicates if default value compartment name should be displayed.- Returns:
- true if default value compartment name should be displayed, false otherwise.
-
sSetShowDefaultValueCompartmentName
public void sSetShowDefaultValueCompartmentName(boolean show) Simple sets show default value compartment name flag value.- Parameters:
show
- value to set.
-
setShowDefaultValueCompartmentName
public void setShowDefaultValueCompartmentName(boolean show) Sets show default value compartment name flag value.- Parameters:
show
- value to set.
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
- Parameters:
changer
- new properties
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
isSuppressStructureCompartment
public boolean isSuppressStructureCompartment() -
isShowTaggedValuesStereotypes
public boolean isShowTaggedValuesStereotypes() -
sSetShowTaggedValuesStereotypes
public void sSetShowTaggedValuesStereotypes(boolean show) -
setShowTaggedValuesStereotypes
public void setShowTaggedValuesStereotypes(boolean show) -
isShowQualifiedNameInTaggedValues
public boolean isShowQualifiedNameInTaggedValues() -
sSetShowQualifiedNameInTaggedValues
public void sSetShowQualifiedNameInTaggedValues(boolean show) -
setShowQualifiedNameInTaggedValues
public void setShowQualifiedNameInTaggedValues(boolean show) -
isShowDefaultValue
public boolean isShowDefaultValue()Returns show default value flag. Default value can be shown in separate compartment if it is InstanceValue or after = sign in signature.- Returns:
- flag value
-
sSetShowDefaultValue
public void sSetShowDefaultValue(boolean show) Set show default value flag. Default value can be shown in separate compartment if it is InstanceValue or after = sign in signature.- Parameters:
show
- new value
-
setShowDefaultValue
public void setShowDefaultValue(boolean show) Set show default value flag. Default value can be shown in separate compartment if it is InstanceValue or after = sign in signature.- Parameters:
show
- new value
-
isInOtherPart
public boolean isInOtherPart() -
getNestedPath
-
setNestedPath
-
sSetNestedPath
-
propertyChange
Description copied from class:PresentationElement
Listens for property change it can be: data was edited text box was edited- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
clone
- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
canAddInstance
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canAddChild
Description copied from class:PresentationElement
Check of given symbol can be added as child into this symbol.- Overrides:
canAddChild
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Parameters:
symbol
- symbol- Returns:
- true if symbol can be added
-
addPresentationElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
If a specified object not inserted in this container then adds a new object view to the container.- Overrides:
addPresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Parameters:
element
- new PresentationElement objectindex
- index to add atresize
- resize parent
-
sAddPresentationElement
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
-
removePresentationElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
Removes object view from container.- Overrides:
removePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Parameters:
element
- object to removeresizeParent
- resize parent
-
sRemovePresentationElement
Description copied from class:PresentationElement
Removes given child- Overrides:
sRemovePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
element
- child
-
getEncapsulatedClassifier
- Specified by:
getEncapsulatedClassifier
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
- Specified by:
getEncapsulatedClassifierProvider
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
setDummyResizeMode
public boolean setDummyResizeMode(boolean b) Description copied from class:PresentationElement
In dummy resize mode symbol may not resize according it children or move children on bounds changed and etc. This is more as hack for resize problems during load or diagram layout- Overrides:
setDummyResizeMode
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
b
- new value
-
preferredSizeIgnoringOrientation
- Overrides:
preferredSizeIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildren
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
canChangeParent
public boolean canChangeParent(Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent) Description copied from class:PresentationElement
Returns true, if element can change parent.- Overrides:
canChangeParent
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- 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
-
findOwnerForChildElement
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForChildElement(PresentationElement child) Description copied from class:PresentationElement
Returns element owner for given child.- Overrides:
findOwnerForChildElement
in classPresentationElement
- Returns:
- most suitable owner for given child's element
-
findPresentationElement
@CheckForNull public static PresentationElement findPresentationElement(List<PresentationElement> elements, Element element, @CheckForNull List<Property> nestedPath) Finds existing symbol among the given ones with a given Element and given nestedPath- Parameters:
elements
- symbolselement
- elementnestedPath
- nested path of the Part- Returns:
- found presentation element or null
-
setParent
Description copied from class:PresentationElement
Sets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)
orPresentationElement.sAddPresentationElement(PresentationElement)
}- Overrides:
setParent
in classPathConnector
- Parameters:
parent
- parent view
-
getOnEdgePosition
public int getOnEdgePosition()Description copied from class:ShapeElement
Returns position on edge.- Overrides:
getOnEdgePosition
in classShapeElement
- Returns:
- position on edge.
- See Also:
-
isPartPort
public boolean isPartPort()- Returns:
- true if PartView represents Port.
-
isPart
- Parameters:
obj
- symbol- Returns:
- true if given symbol is pure Part, does not represent Port
-
isPartPort
- Parameters:
obj
- symbol- Returns:
- true if given symbol is Part, but it represents Port
-
getHeaderInsetReduce
protected int getHeaderInsetReduce(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds) - Overrides:
getHeaderInsetReduce
in classShapeElement
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.PartHeaderView getHeaderView()- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-