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_MODESFields 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.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_MODESFields 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_SIMPLEFields 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 TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.voidaddPresentationElement(PresentationElement element, int index, boolean resize) If a specified object not inserted in this container then adds a new object view to the container.booleancanAddChild(PresentationElement symbol) Check of given symbol can be added as child into this symbol.booleancanAddInstance(PresentationElement symbol) Object view has no children.booleancanChangeParent(Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent) Returns true, if element can change parent.clone()protected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) com.dassault_systemes.modeler.foundation.model.ModelElementReturns element owner for given child.com.dassault_systemes.modeler.foundation.model.ModelElementfindOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) static PresentationElementfindPresentationElement(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 intgetHeaderInsetReduce(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds) com.nomagic.magicdraw.uml.symbols.shapes.PartHeaderViewcom.dassault_systemes.modeler.foundation.model.ModelElementReturns element that should be used for during "move" operation.intReturns position on edge.Deprecated.use #getElementGets value of slot showing property.com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentViewvoidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected com.nomagic.ui.UnmodifiableInsetsinternalGetPresentationElementStroke(int width) Return a stroke used to paint symbol's main partvoidinternalLayoutChildren(boolean calculatePrefSize) voidSilently applies all properties after initializationprotected voidSpecific to every shape and model element update operation.protected booleanbooleanstatic booleanbooleanstatic booleanbooleanReturns show default value flag.booleanIndicates if default value compartment name should be displayed.booleanbooleanbooleanbooleanIndicated if an element should show Rake IconbooleanbooleanbooleanisValid(PresentationElement parent, boolean changeElementParent) Checks if part is valid by symbol ownership in it's current context.protected voidpreferredSizeIgnoringOrientation(Dimension pref, int locationX, int locationY) voidListens for property change it can be: data was edited text box was editedvoidremovePresentationElement(PresentationElement element, boolean resizeParent) Removes object view from container.voidsAddPresentationElement(PresentationElement element, int index) Add given child to this symbol at given indexbooleansetDummyResizeMode(boolean b) In dummy resize mode symbol may not resize according it children or move children on bounds changed and etc.voidsetNestedPath(List<Property> nestedPath) voidsetParent(PresentationElement parent) Sets parent for this view.voidsetShowDefaultValue(boolean show) Set show default value flag.voidsetShowDefaultValueCompartmentName(boolean show) Sets show default value compartment name flag value.voidsetShowInheritedSign(boolean showInheritedSign) Show inherited members sign in compartmentvoidsetShowMultiplicity(boolean showMultiplicity) voidsetShowQualifiedNameInTaggedValues(boolean show) voidsetShowSlotTypeMode(String mode) Sets value of slot showing property.voidsetShowTaggedValuesStereotypes(boolean show) voidvoidRemoves given childvoidsSetClassifiers(List<Classifier> type) Sets one classifier.voidsSetNestedPath(List<Property> nestedPart, boolean disposeOldListeners) voidsSetShowDefaultValue(boolean show) Set show default value flag.voidsSetShowDefaultValueCompartmentName(boolean show) Simple sets show default value compartment name flag value.voidsSetShowInheritedSign(boolean showInheritedSign) Show inherited signvoidsSetShowMultiplicity(boolean showMultiplicity) voidsSetShowQualifiedNameInTaggedValues(boolean show) voidsSetShowSlotTypeMode(String mode) Sets value of slot showing property.voidsSetShowTaggedValuesStereotypes(boolean show) voidMethods 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, sSetShowFullTypeMethods 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, updateNameMethods 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, updateCompartmentsVisibilityMethods 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, switchWidthHeightIfVerticalOrientationMethods 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, sSetPresentationElementsMethods 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, updateLaterMethods 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, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods 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, 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.MDElement
getProjectMethods 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:
getClassifierin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
sSetClassifiers
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.TypedElementViewSets one classifier.- Specified by:
sSetClassifiersin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView- Parameters:
type- a collection of classifiers to set as type of this typed element
-
getMetaClassifiersQPropertyName
- Specified by:
getMetaClassifiersQPropertyNamein classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
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 interfaceModelElementProvider- Overrides:
getElementin classPresentationElement- Returns:
- model element of this presentation element.
-
getProperty
Deprecated.use #getElement -
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. -
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isShowRakeIcon
public boolean isShowRakeIcon()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeViewIndicated if an element should show Rake Icon- Overrides:
isShowRakeIconin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Returns:
- true in case should show, else false
-
internalGetPresentationElementStroke
Description copied from class:PresentationElementReturn a stroke used to paint symbol's main part- Overrides:
internalGetPresentationElementStrokein 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:
findOwnerForElementin classPresentationElement
-
getModelElementToMove
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement getModelElementToMove()Description copied from class:PresentationElementReturns 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:
getModelElementToMovein classPresentationElement- Returns:
- element to move
- See Also:
-
getCompartmentElementID
- Specified by:
getCompartmentElementIDin interfaceCompartmentElement
-
getCompartmentText
- Specified by:
getCompartmentTextin interfaceCompartmentElement
-
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.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:
isDrawSeparatorin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-
getTaggedValuesDisplayMode
- Specified by:
getTaggedValuesDisplayModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
sSetTaggedValuesDisplayMode
- Specified by:
sSetTaggedValuesDisplayModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
setTaggedValuesDisplayMode
- Specified by:
setTaggedValuesDisplayModein 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_NONESlotView.SHOW_TYPE_MODE_NAMESlotView.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_NONESlotView.SHOW_TYPE_MODE_NAMESlotView.SHOW_TYPE_MODE_QUALIFIED_NAME
-
setShowSlotTypeMode
Sets value of slot showing property. Calls view update- Parameters:
mode- mode- See Also:
-
SlotView.SHOW_TYPE_MODE_NONESlotView.SHOW_TYPE_MODE_NAMESlotView.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:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView- 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.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:PresentationElementListens for property change it can be: data was edited text box was edited- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
clone
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canAddChild
Description copied from class:PresentationElementCheck of given symbol can be added as child into this symbol.- Overrides:
canAddChildin 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.ContainerShapeViewIf a specified object not inserted in this container then adds a new object view to the container.- Overrides:
addPresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
element- new PresentationElement objectindex- index to add atresize- resize parent
-
sAddPresentationElement
Description copied from class:PresentationElementAdd given child to this symbol at given index- Overrides:
sAddPresentationElementin 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.ContainerShapeViewRemoves object view from container.- Overrides:
removePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
element- object to removeresizeParent- resize parent
-
sRemovePresentationElement
Description copied from class:PresentationElementRemoves given child- Overrides:
sRemovePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
element- child
-
getEncapsulatedClassifier
- Specified by:
getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
- Specified by:
getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
setDummyResizeMode
public boolean setDummyResizeMode(boolean b) Description copied from class:PresentationElementIn 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:
setDummyResizeModein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
b- new value
-
preferredSizeIgnoringOrientation
- Overrides:
preferredSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
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 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:PresentationElementReturns element owner for given child.- Overrides:
findOwnerForChildElementin 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:PresentationElementSets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)orPresentationElement.sAddPresentationElement(PresentationElement)}- Overrides:
setParentin classPathConnector- Parameters:
parent- parent view
-
getOnEdgePosition
public int getOnEdgePosition()Description copied from class:ShapeElementReturns position on edge.- Overrides:
getOnEdgePositionin 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:
getHeaderInsetReducein classShapeElement
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.PartHeaderView getHeaderView()- Overrides:
getHeaderViewin classcom.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
-