Class DiagramShape
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.FrameView
com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape
- All Implemented Interfaces:
BaseElement,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.DiagramFrameHeaderOwner,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,com.nomagic.magicdraw.uml.symbols.Wrapable,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class DiagramShape
extends com.nomagic.magicdraw.uml.symbols.shapes.FrameView
implements com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnmodifiableDimensionDefault diagram shape size when in diagram overview mode.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_SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.voidatInsert()Invalidates object at insertclone()protected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) booleanIndicates if diagram overview displays detailed diagram frame.voiddispose()disposes ends of links when link is deletedprotected voidprotected voiddrawFrameBoundary(Graphics2D g2, Rectangle bounds) protected voiddrawFrameShadow(Graphics2D g, Rectangle bounds) protected voidfill(Graphics2D g, Rectangle bounds) com.dassault_systemes.modeler.foundation.model.ModelElementfindOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) Gets default size of the diagram shape when diagram overview is turned on.protected UnmodifiableDimensioncom.nomagic.magicdraw.uml.symbols.shapes.DiagramOverviewCompartmentViewGets diagram overview compartment.Returns model element of this presentation element.Returns fill colorcom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderViewReturns preferable dimension of the element for autosize.This implementation simple returns preferred size.Gets diagram presentation element represented by this diagram shape.protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayDataGets use stereotype display mode.booleanIndicates if this diagram shape has refresh action.voidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected voidinternalCreatePropertyChangeListener(com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData data) protected com.nomagic.ui.UnmodifiableInsetsprotected UnmodifiableDimensionvoidSilently applies all properties after initializationprotected voidSpecific to every shape and model element update operation.booleanGets auto scale diagram overview content property value.booleanbooleanbooleanbooleanbooleanbooleanbooleanGets show diagram header property value.booleanbooleanGets show diagram overview content symbol property value.booleanbooleanbooleanvoidpaintSelfBackground(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) protected voidselfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) voidsetAutoScaleDiagramOverviewContent(boolean autoScale) Sets autos cale diagram overview content symbol property value.voidvoidsetShowAbbreviatedType(boolean showAbbreviatedType) voidsetShowBorder(boolean showBorder) voidsetShowContextKind(boolean show) voidsetShowContextName(boolean show) voidsetShowContextType(boolean show) voidsetShowDiagramHeader(boolean show) Sets show diagram header property value.voidsetShowDiagramName(boolean show) voidsetShowDiagramOverviewContent(boolean show) Sets show diagram overview content symbol property value.voidsetShowDiagramType(boolean show) voidsetShowMoreSignInDiagramOverviewContent(boolean showMoreSign) Set "more sign" visibility for overview content compartmentvoidsetShowParameters(boolean show) voidvoidSets stereotype display mode value.voidsetUseStereotypeMode(String mode) Sets diagram use stereotype mode.voidsSetAutoScaleDiagramOverviewContent(boolean autoScale) Simple sets auto scale diagram overview content symbol property value.voidsSetAutosize(boolean s) Simple setter for autosize flag.voidsSetShowAbbreviatedType(boolean showAbbreviatedType) voidsSetShowBorder(boolean showBorder) voidsSetShowContextKind(boolean show) voidsSetShowContextName(boolean show) voidsSetShowContextType(boolean show) voidsSetShowDiagramHeader(boolean show) Sets show diagram header property value.voidsSetShowDiagramName(boolean show) voidsSetShowDiagramOverviewContent(boolean show) Simple sets show diagram overview content symbol property value.voidsSetShowDiagramType(boolean show) voidsSetShowMoreSignInDiagramOverviewContent(boolean showMoreSign) Set "more sign" visibility for overview content compartment.voidsSetShowParameters(boolean show) voidSimple sets (no updates) stereotypes display mode.voidsSetUseStereotypeMode(String mode) Simple set for diagram use stereotype mode propertyvoidMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.FrameView
getFrameHeaderView, paintFrameBackgroundMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
canSuppressContent, getBooleanCompartmentPropertyValue, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getMiddlePointByIcon, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, internalBeforeUpdate, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, propertyChange, recursiveAutosize, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setQNameDisplayMode, setSecondaryImageAndStereotypeDisplayMode, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setTaggedValues, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, updateBorderVisibility, updateNameMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
addCompartment, addCompartment, addPresentationElement, applyCompartmentsStyle, areBoxCompartmentsSuppressed, askDeleteDataConfirmation, asPresentationElement, autosizeShapesOnEdge, canAddChild, canChangeParent, 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, hasManipulatedChildrenIncludingIndirect, hasSharedModelElement, internalAddIndirectManipulatedChildrenRect, internalGetIndirectManipulatedChildrenRect, internalLayoutChildren, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isWrapEnabled, iterateCompartmentDelegates, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, preferredSizeIgnoringOrientation, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setReshapeMode, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetName, sSetWrapEnabled, updateCompartmentsVisibilityMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, canAddInstance, 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, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientationMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, 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, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElementsMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, 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, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, 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, setParent, 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, 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, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, 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, initializeAndAutosize, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, 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, 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.symbols.shapes.DiagramFrameHeaderOwner
getStereotypesDisplayModeMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
DEFAULT_DIAGRAM_OVERVIEW_SIZE
Default diagram shape size when in diagram overview mode.
-
-
Constructor Details
-
DiagramShape
public DiagramShape() -
DiagramShape
-
-
Method Details
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
displayFullDiagramOverview
public boolean displayFullDiagramOverview()Indicates if diagram overview displays detailed diagram frame.- Returns:
- true if detailed diagram is displayed, false otherwise.
-
getDefaultDimension
- Overrides:
getDefaultDimensionin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
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. -
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView getHeaderView()- Overrides:
getHeaderViewin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
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.
-
getRepresentedDiagramView
Gets diagram presentation element represented by this diagram shape.- Returns:
- presentation element of the diagram, represented by this shape.
-
updateChildrenVisibility
public void updateChildrenVisibility()- Overrides:
updateChildrenVisibilityin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
setStereotypesDisplayMode
Description copied from interface:StereotypesDisplayModeOwnerSets stereotype display mode value.- Specified by:
setStereotypesDisplayModein interfaceStereotypesDisplayModeOwner- Overrides:
setStereotypesDisplayModein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
mode- stereotype display mode.
-
sSetStereotypesDisplayMode
Description copied from interface:StereotypesDisplayModeOwnerSimple sets (no updates) stereotypes display mode.- Specified by:
sSetStereotypesDisplayModein interfaceStereotypesDisplayModeOwner- Overrides:
sSetStereotypesDisplayModein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
mode- stereotypes display mode value.
-
getStereotypesToDisplay
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()- Overrides:
getStereotypesToDisplayin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- Returns:
- stereotypes to display on this symbol
-
setStereotype
public void setStereotype()- Overrides:
setStereotypein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isShowAbbreviatedType
public boolean isShowAbbreviatedType() -
sSetShowAbbreviatedType
public void sSetShowAbbreviatedType(boolean showAbbreviatedType) -
setShowAbbreviatedType
public void setShowAbbreviatedType(boolean showAbbreviatedType) -
isShowDiagramName
public boolean isShowDiagramName()- Specified by:
isShowDiagramNamein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowDiagramName
public void sSetShowDiagramName(boolean show) -
setShowDiagramName
public void setShowDiagramName(boolean show) -
isShowParameters
public boolean isShowParameters()- Specified by:
isShowParametersin interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowParameters
public void sSetShowParameters(boolean show) -
setShowParameters
public void setShowParameters(boolean show) -
isShowContextName
public boolean isShowContextName()- Specified by:
isShowContextNamein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowContextName
public void sSetShowContextName(boolean show) -
setShowContextName
public void setShowContextName(boolean show) -
isShowContextType
public boolean isShowContextType()- Specified by:
isShowContextTypein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowContextType
public void sSetShowContextType(boolean show) -
setShowContextType
public void setShowContextType(boolean show) -
isShowDiagramType
public boolean isShowDiagramType()- Specified by:
isShowDiagramTypein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowDiagramType
public void sSetShowDiagramType(boolean show) -
setShowDiagramType
public void setShowDiagramType(boolean show) -
isShowContextKind
public boolean isShowContextKind()- Specified by:
isShowContextKindin interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowContextKind
public void sSetShowContextKind(boolean show) -
setShowContextKind
public void setShowContextKind(boolean show) -
sSetUseStereotypeMode
Simple set for diagram use stereotype mode property- Parameters:
mode- - diagram orientation mode.
-
setUseStereotypeMode
Sets diagram use stereotype mode.- Parameters:
mode- - diagram orientation mode.
-
getUseStereotypeMode
Description copied from interface:com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwnerGets use stereotype display mode.- Specified by:
getUseStereotypeModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner- Returns:
- use stereotype display mode.
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElementSilently applies all properties after initialization- Overrides:
internalSilentApplyin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
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.HeaderShapeView- Parameters:
changer- new properties
-
isShowAbbreviatedDiagramType
public boolean isShowAbbreviatedDiagramType()- Specified by:
isShowAbbreviatedDiagramTypein interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
disposePropertyChangeListener
protected void disposePropertyChangeListener()- Overrides:
disposePropertyChangeListenerin classPresentationElement
-
internalCreatePropertyChangeListener
protected void internalCreatePropertyChangeListener(com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData data) - Overrides:
internalCreatePropertyChangeListenerin classPresentationElement
-
dispose
public void dispose()Description copied from class:PresentationElementdisposes ends of links when link is deleted- Specified by:
disposein interfaceBaseElement- Overrides:
disposein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
atInsert
public void atInsert()Description copied from class:PresentationElementInvalidates object at insert- Specified by:
atInsertin interfaceBaseElement- Overrides:
atInsertin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
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()
-
sSetShowDiagramHeader
public void sSetShowDiagramHeader(boolean show) Sets show diagram header property value.- Parameters:
show- show diagram header property value.
-
isShowDiagramHeader
public boolean isShowDiagramHeader()Gets show diagram header property value.- Returns:
- show diagram header property value.
-
setShowDiagramHeader
public void setShowDiagramHeader(boolean show) Sets show diagram header property value.- Parameters:
show- show diagram header property value.
-
sSetShowDiagramOverviewContent
public void sSetShowDiagramOverviewContent(boolean show) Simple sets show diagram overview content symbol property value.- Parameters:
show- show diagram overview content value.
-
isShowDiagramOverviewContent
public boolean isShowDiagramOverviewContent()Gets show diagram overview content symbol property value.- Returns:
- show diagram overview content property value.
-
isAutoScaleDiagramOverviewContent
public boolean isAutoScaleDiagramOverviewContent()Gets auto scale diagram overview content property value.- Returns:
- auto scale diagram overview content property value.
-
sSetAutoScaleDiagramOverviewContent
public void sSetAutoScaleDiagramOverviewContent(boolean autoScale) Simple sets auto scale diagram overview content symbol property value.- Parameters:
autoScale- auto scale diagram overview content property value.
-
setAutoScaleDiagramOverviewContent
public void setAutoScaleDiagramOverviewContent(boolean autoScale) Sets autos cale diagram overview content symbol property value.- Parameters:
autoScale- auto scale diagram overview content property value.
-
setShowDiagramOverviewContent
public void setShowDiagramOverviewContent(boolean show) Sets show diagram overview content symbol property value.- Parameters:
show- show diagram overview content value.
-
isShowBorder
public boolean isShowBorder() -
setShowBorder
public void setShowBorder(boolean showBorder) -
sSetShowBorder
public void sSetShowBorder(boolean showBorder) -
setDiagramOverviewViews
-
isShowMoreSignInDiagramOverviewContent
public boolean isShowMoreSignInDiagramOverviewContent()- Returns:
- true if "more sign" should be visible in overview compartment
-
sSetShowMoreSignInDiagramOverviewContent
public void sSetShowMoreSignInDiagramOverviewContent(boolean showMoreSign) Set "more sign" visibility for overview content compartment. Update/resize shape.- Parameters:
showMoreSign- new flag value
-
setShowMoreSignInDiagramOverviewContent
public void setShowMoreSignInDiagramOverviewContent(boolean showMoreSign) Set "more sign" visibility for overview content compartment- Parameters:
showMoreSign- new flag value
-
hasRefreshAction
public boolean hasRefreshAction()Indicates if this diagram shape has refresh action.- Returns:
- true if diagram has refresh action, false otherwise.
-
drawFrameBoundary
- Overrides:
drawFrameBoundaryin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
drawFrameShadow
- Overrides:
drawFrameShadowin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
paintSelfBackground
public void paintSelfBackground(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
paintSelfBackgroundin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
fill
- Overrides:
fillin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
selfSpecificHeaderShapeDrawin classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
internalGetSelfManipulationPreferredSize
- Overrides:
internalGetSelfManipulationPreferredSizein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Returns:
- size for manipulation which does not take into account the size of children on some specific conditions (for example, in case if wrapped text)
-
sSetAutosize
public void sSetAutosize(boolean s) Description copied from class:ShapeElementSimple setter for autosize flag.- Overrides:
sSetAutosizein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- Parameters:
s- value
-
getPreferredDimensionForAutosize
Description copied from class:PresentationElementReturns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Overrides:
getPreferredDimensionForAutosizein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Returns:
- preferred dimension
-
getDiagramOverviewCompartmentView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramOverviewCompartmentView getDiagramOverviewCompartmentView()Gets diagram overview compartment.- Returns:
- diagram overview compartment.
-
getDefaultDiagramOverviewSize
Gets default size of the diagram shape when diagram overview is turned on.- Returns:
- default diagram shape size.
-
getFillColor
Description copied from class:PresentationElementReturns fill color- Overrides:
getFillColorin classPresentationElement
-
findOwnerForElement
public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext) - Overrides:
findOwnerForElementin classPresentationElement
-
getDisplayedViews
- Returns:
- collection of presentation elements that are currently visible inside the DiagramOverviewCompartmentView
-
clone
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-