Class DiagramShape
- java.lang.Object
-
- com.nomagic.magicdraw.uml.MDElementImpl
-
- com.nomagic.magicdraw.uml.ElementImpl
-
- com.nomagic.magicdraw.uml.symbols.PresentationElement
-
- com.nomagic.magicdraw.uml.symbols.paths.PathConnector
-
- com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
-
- com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.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.shapes.DiagramFrameHeaderOwner
,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,com.nomagic.magicdraw.uml.symbols.Wrapable
,NameOwner
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApi public class DiagramShape extends com.nomagic.magicdraw.uml.symbols.shapes.FrameView implements com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.DiagramTypeListener
private static class
com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.RepresentedDiagramContentListener
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData, com.nomagic.magicdraw.uml.symbols.PresentationElement.StructureCache
-
-
Field Summary
Fields Modifier and Type Field Description static UnmodifiableDimension
DEFAULT_DIAGRAM_OVERVIEW_SIZE
Default diagram shape size when in diagram overview mode.private static UnmodifiableDimension
DEFAULT_SIZE
private static UnmodifiableDimension
DEFAULT_SIZE_SUPPRESSED
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.DiagramTypeListener
diagramTypeListener
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.RepresentedDiagramContentListener
representedDiagramContentListener
Listens to the changes in a diagram shown in the content compartment.-
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
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
BORDER_ELEMENT_MARGIN_ALL, BORDER_ELEMENT_MARGIN_BOTTOM, BORDER_ELEMENT_MARGIN_LEFT, BORDER_ELEMENT_MARGIN_LEFT_RIGHT, BORDER_ELEMENT_MARGIN_MODES, BORDER_ELEMENT_MARGIN_NONE, BORDER_ELEMENT_MARGIN_RIGHT, BORDER_ELEMENT_MARGIN_TOP, BORDER_ELEMENT_MARGIN_TOP_BOTTOM, BOTTOM_EDGE, INSIDE_EDGE_POSITION, LEFT_EDGE, NEED_AUTOSIZE_FULL, NEED_AUTOSIZE_LAYOUT, NEED_AUTOSIZE_NONE, NO_EDGE, NULL_INSETS, ON_EDGE_POSITION, OUTSIDE_EDGE_POSITION, RIGHT_EDGE, SPACE, SPACE_INSETS, SPACE_INSETS_EMPTY_TOP_BOTTOM, SUSPEND_SHAPE_AUTO_RESIZE_FALSE, SUSPEND_SHAPE_AUTO_RESIZE_MODES, SUSPEND_SHAPE_AUTO_RESIZE_SAME_AS_DIAGRAM, SUSPEND_SHAPE_AUTO_RESIZE_TRUE, TOP_EDGE
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxy
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, SHADOW_WIDTH, SOLID_STROKE
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.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
-
-
Constructor Summary
Constructors Constructor Description DiagramShape()
DiagramShape(PresentationElement parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Method accepts visitor, and calls method visit<class name>(this) of visitor .void
atInsert()
Invalidates object at insertDiagramShape
clone()
Returns a copy of theElement
.protected void
createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
boolean
displayFullDiagramOverview()
Indicates if diagram overview displays detailed diagram frame.void
dispose()
disposes ends of links when link is deletedprotected void
disposeListener()
protected void
drawFrameBoundary(java.awt.Graphics2D g2, java.awt.Rectangle bounds)
protected void
drawFrameShadow(java.awt.Graphics2D g, java.awt.Rectangle bounds)
protected void
fill(java.awt.Graphics2D g, java.awt.Rectangle bounds)
Element
findParentForData(PresentationElement newParent, com.nomagic.uml2.ElementAddContext addContext)
UnmodifiableDimension
getDefaultDiagramOverviewSize()
Gets default size of the diagram shape when diagram overview is turned on.protected UnmodifiableDimension
getDefaultDimension()
private DiagramFrameView
getDiagramFrameView()
com.nomagic.magicdraw.uml.symbols.shapes.DiagramOverviewCompartmentView
getDiagramOverviewCompartmentView()
Gets diagram overview compartment.java.util.Collection<PresentationElement>
getDisplayedViews()
Diagram
getElement()
Returns model element of this presentation element.java.awt.Color
getFillColor()
Returns fill colorcom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView
getHeaderView()
UnmodifiableDimension
getPreferredDimensionForAutosize()
Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.DiagramPresentationElement
getRepresentedDiagramView()
Gets diagram presentation element represented by this diagram shape.private com.nomagic.magicdraw.uml.symbols.shapes.StereotypeIconView
getStereotypeIconView()
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
getStereotypesToDisplay()
java.lang.String
getUseStereotypeMode()
boolean
hasRefreshAction()
Indicates if this diagram shape has refresh action.void
internalApplyProperties(PropertyManager man)
Applies properties from given property managerprotected void
internalCreatePropertyChangeListener(com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData data)
protected com.nomagic.ui.UnmodifiableInsets
internalGetHeaderInsets()
protected UnmodifiableDimension
internalGetSelfManipulationPreferredSize()
void
internalSilentApply()
Silently applies all properties after initializationprotected void
internalSpecificUpdate()
boolean
isAutoScaleDiagramOverviewContent()
Gets auto scale diagram overview content property value.private boolean
isFrameCompletelySuppressed()
boolean
isShowAbbreviatedDiagramType()
boolean
isShowAbbreviatedType()
boolean
isShowBorder()
boolean
isShowContextKind()
boolean
isShowContextName()
boolean
isShowContextType()
boolean
isShowDiagramHeader()
Gets show diagram header property value.boolean
isShowDiagramName()
boolean
isShowDiagramOverviewContent()
Gets show diagram overview content symbol property value.boolean
isShowDiagramType()
boolean
isShowMoreSignInDiagramOverviewContent()
boolean
isShowParameters()
void
paintSelfBackground(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
private void
registerListenerToDiagram()
private static int
scale(double scale, int size)
protected void
selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
void
setAutoScaleDiagramOverviewContent(boolean autoScale)
Sets autos cale diagram overview content symbol property value.void
setDiagramOverviewViews(java.util.List<PresentationElement> views)
void
setShowAbbreviatedType(boolean showAbbreviatedType)
void
setShowBorder(boolean showBorder)
void
setShowContextKind(boolean show)
void
setShowContextName(boolean show)
void
setShowContextType(boolean show)
void
setShowDiagramHeader(boolean show)
Sets show diagram header property value.void
setShowDiagramName(boolean show)
void
setShowDiagramOverviewContent(boolean show)
Sets show diagram overview content symbol property value.void
setShowDiagramType(boolean show)
void
setShowMoreSignInDiagramOverviewContent(boolean showMoreSign)
Set "more sign" visibility for overview content compartmentvoid
setShowParameters(boolean show)
void
setStereotype()
void
setStereotypesDisplayMode(java.lang.String mode)
Sets stereotype display mode value.void
setUseStereotypeMode(java.lang.String mode)
Sets diagram use stereotype mode.void
sSetAutoScaleDiagramOverviewContent(boolean autoScale)
Simple sets auto scale diagram overview content symbol property value.void
sSetAutosize(boolean s)
Simple setter for autosize flag.void
sSetShowAbbreviatedType(boolean showAbbreviatedType)
void
sSetShowBorder(boolean showBorder)
void
sSetShowContextKind(boolean show)
void
sSetShowContextName(boolean show)
void
sSetShowContextType(boolean show)
void
sSetShowDiagramHeader(boolean show)
Sets show diagram header property value.void
sSetShowDiagramName(boolean show)
void
sSetShowDiagramOverviewContent(boolean show)
Simple sets show diagram overview content symbol property value.void
sSetShowDiagramType(boolean show)
void
sSetShowMoreSignInDiagramOverviewContent(boolean showMoreSign)
Set "more sign" visibility for overview content compartment.void
sSetShowParameters(boolean show)
void
sSetStereotypesDisplayMode(java.lang.String mode)
Simple sets (no updates) stereotypes display mode.void
sSetUseStereotypeMode(java.lang.String mode)
Simple set for diagram use stereotype mode propertyprivate void
unregisterListenerFromDiagram()
void
updateChildrenVisibility()
private void
updateStereotypeIcon()
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.FrameView
getFrameHeaderView, paintFrameBackground
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, addPresentationElement, areBoxCompartmentsSuppressed, canAddChild, canHideBorder, canSuppressContent, childrenBoundsForReshape, createBoundsShape, createChangedCompartmentVisibilityProperty, createCompartmentElements, createStateForUpdateOperation, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotify, getBooleanCompartmentPropertyValue, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, getCompartmentByID, getCompartmentContainer, getCompartmentIDs, getCompartmentRegistrationInfo, getCompartments, getConfiguredPreferredSizeForAutosize, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getMainCompartmentContainer, getName, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, getSuppressCompartmentPropertyID, hasManipulatedChildrenIncludingIndirect, internalAddIndirectManipulatedChildrenRect, internalBeforeUpdate, internalGetIndirectManipulatedChildrenRect, internalLayoutChildren, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, preferredSizeIgnoringOrientation, propertyChange, recursiveAutosize, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setQNameDisplayMode, setReshapeMode, setSecondaryImageAndStereotypeDisplayMode, setShowCompartmentName, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetWrapEnabled, updateBorderVisibility, updateCompartmentsVisibility, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
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, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, 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, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, 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, 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, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRealPropertyManager, getRenderer, getSelected, getStereotypeColor, getStereotypeFont, getStringPropertyValue, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalGetPresentationElementStroke, internalSnapToGrid, internalSnapToGrid, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDiagramSurface, setElement, setFont, setFontProperty, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setNeedRecreateListeners, setPropertyManager, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setStereotypeColor, setStereotypeFont, setStrokeIfNotTheSame, setTestUpdateFlag, setTextColor, setTextColorProperty, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLineWidth, sSetLocation, sSetLocation, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DEFAULT_SIZE
private static final UnmodifiableDimension DEFAULT_SIZE
-
DEFAULT_SIZE_SUPPRESSED
private static final UnmodifiableDimension DEFAULT_SIZE_SUPPRESSED
-
DEFAULT_DIAGRAM_OVERVIEW_SIZE
public static final UnmodifiableDimension DEFAULT_DIAGRAM_OVERVIEW_SIZE
Default diagram shape size when in diagram overview mode.
-
diagramTypeListener
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.DiagramTypeListener diagramTypeListener
-
representedDiagramContentListener
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramShape.RepresentedDiagramContentListener representedDiagramContentListener
Listens to the changes in a diagram shown in the content compartment. Any change in the diagram needs this shape to be re-sized or repainted.
-
-
Constructor Detail
-
DiagramShape
public DiagramShape()
-
DiagramShape
public DiagramShape(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
- Overrides:
internalGetHeaderInsets
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
displayFullDiagramOverview
public boolean displayFullDiagramOverview()
Indicates if diagram overview displays detailed diagram frame.- Returns:
- true if detailed diagram is displayed, false otherwise.
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
- Overrides:
getDefaultDimension
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
isFrameCompletelySuppressed
private boolean isFrameCompletelySuppressed()
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView getHeaderView()
- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getElement
public Diagram 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.
-
getRepresentedDiagramView
@CheckForNull public DiagramPresentationElement 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:
updateChildrenVisibility
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
setStereotypesDisplayMode
public void setStereotypesDisplayMode(java.lang.String mode)
Description copied from interface:StereotypesDisplayModeOwner
Sets stereotype display mode value.- Specified by:
setStereotypesDisplayMode
in interfaceStereotypesDisplayModeOwner
- Overrides:
setStereotypesDisplayMode
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
mode
- stereotype display mode.
-
sSetStereotypesDisplayMode
public void sSetStereotypesDisplayMode(java.lang.String mode)
Description copied from interface:StereotypesDisplayModeOwner
Simple sets (no updates) stereotypes display mode.- Specified by:
sSetStereotypesDisplayMode
in interfaceStereotypesDisplayModeOwner
- Overrides:
sSetStereotypesDisplayMode
in 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:
getStereotypesToDisplay
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
setStereotype
public void setStereotype()
- Overrides:
setStereotype
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
updateStereotypeIcon
private void updateStereotypeIcon()
-
getStereotypeIconView
private com.nomagic.magicdraw.uml.symbols.shapes.StereotypeIconView getStereotypeIconView()
-
isShowAbbreviatedType
public boolean isShowAbbreviatedType()
-
sSetShowAbbreviatedType
public void sSetShowAbbreviatedType(boolean showAbbreviatedType)
-
setShowAbbreviatedType
public void setShowAbbreviatedType(boolean showAbbreviatedType)
-
isShowDiagramName
public boolean isShowDiagramName()
- Specified by:
isShowDiagramName
in 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:
isShowParameters
in 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:
isShowContextName
in 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:
isShowContextType
in 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:
isShowDiagramType
in 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:
isShowContextKind
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
sSetShowContextKind
public void sSetShowContextKind(boolean show)
-
setShowContextKind
public void setShowContextKind(boolean show)
-
sSetUseStereotypeMode
public void sSetUseStereotypeMode(java.lang.String mode)
Simple set for diagram use stereotype mode property- Parameters:
mode
- - diagram orientation mode.
-
setUseStereotypeMode
public void setUseStereotypeMode(java.lang.String mode)
Sets diagram use stereotype mode.- Parameters:
mode
- - diagram orientation mode.
-
getUseStereotypeMode
public java.lang.String getUseStereotypeMode()
- Specified by:
getUseStereotypeMode
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
man
- new properties
-
isShowAbbreviatedDiagramType
public boolean isShowAbbreviatedDiagramType()
- Specified by:
isShowAbbreviatedDiagramType
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
disposeListener
protected void disposeListener()
-
internalCreatePropertyChangeListener
protected void internalCreatePropertyChangeListener(com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData data)
-
dispose
public void dispose()
Description copied from class:PresentationElement
disposes ends of links when link is deleted- Specified by:
dispose
in interfaceBaseElement
- Overrides:
dispose
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
atInsert
public void atInsert()
Description copied from class:PresentationElement
Invalidates object at insert- Specified by:
atInsert
in interfaceBaseElement
- Overrides:
atInsert
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
registerListenerToDiagram
private void registerListenerToDiagram()
-
unregisterListenerFromDiagram
private void unregisterListenerFromDiagram()
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
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
public void setDiagramOverviewViews(java.util.List<PresentationElement> views)
-
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
protected void drawFrameBoundary(java.awt.Graphics2D g2, java.awt.Rectangle bounds)
- Overrides:
drawFrameBoundary
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
drawFrameShadow
protected void drawFrameShadow(java.awt.Graphics2D g, java.awt.Rectangle bounds)
- Overrides:
drawFrameShadow
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
paintSelfBackground
public void paintSelfBackground(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
paintSelfBackground
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
fill
protected void fill(java.awt.Graphics2D g, java.awt.Rectangle bounds)
- Overrides:
fill
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
scale
private static int scale(double scale, int size)
-
getDiagramFrameView
@CheckForNull private DiagramFrameView getDiagramFrameView()
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
selfSpecificHeaderShapeDraw
in classcom.nomagic.magicdraw.uml.symbols.shapes.FrameView
-
internalGetSelfManipulationPreferredSize
protected UnmodifiableDimension internalGetSelfManipulationPreferredSize()
- Overrides:
internalGetSelfManipulationPreferredSize
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sSetAutosize
public void sSetAutosize(boolean s)
Description copied from class:ShapeElement
Simple setter for autosize flag.- Overrides:
sSetAutosize
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
- Parameters:
s
- value
-
getPreferredDimensionForAutosize
public UnmodifiableDimension getPreferredDimensionForAutosize()
Description copied from class:PresentationElement
Returns preferable dimension of the element for autosize.This implementation simple returns preferred size.- Overrides:
getPreferredDimensionForAutosize
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Returns:
- preferred dimension
-
getDiagramOverviewCompartmentView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramOverviewCompartmentView getDiagramOverviewCompartmentView()
Gets diagram overview compartment.- Returns:
- diagram overview compartment.
-
getDefaultDiagramOverviewSize
public UnmodifiableDimension getDefaultDiagramOverviewSize()
Gets default size of the diagram shape when diagram overview is turned on.- Returns:
- default diagram shape size.
-
getFillColor
public java.awt.Color getFillColor()
Description copied from class:PresentationElement
Returns fill color
-
findParentForData
public Element findParentForData(PresentationElement newParent, com.nomagic.uml2.ElementAddContext addContext)
-
getDisplayedViews
public java.util.Collection<PresentationElement> getDisplayedViews()
- Returns:
- collection of presentation elements that are currently visible inside the DiagramOverviewCompartmentView
-
clone
public DiagramShape clone()
Description copied from class:ElementImpl
Returns a copy of theElement
.- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Returns:
- the cloned object
-
-