Class DiagramFrameView
- 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.DiagramFrameView
-
- 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.PortOwner
,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 DiagramFrameView extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView implements com.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameView.FrameBounds
-
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 java.util.List<java.lang.String>
DIAGRAM_TYPES_FOR_PORTS_ON_FRAME
private java.beans.PropertyChangeListener
diagramTypeListener
static int
FRAME_DISTANCE_FROM_EDGE
private java.awt.Rectangle
frameElementsBounds
private static int
MINIMUM_SIZE
private static int
SENSITIVE_BORDER_SIZE
static int
SHAPE_DISTANCE_FROM_EDGE
-
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 DiagramFrameView()
DiagramFrameView(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 .java.awt.Rectangle
adjustBoundsForMoving(java.awt.Rectangle rec, java.util.Collection<PresentationElement> movedTogether)
validate bounds for movingprivate void
adjustToAspectRatio(java.awt.Dimension size)
void
atInsert()
Invalidates object at insertprivate void
autosizeShapesOnEdge()
private static java.lang.Double
calculateAspectRatio(java.lang.String value)
void
calculateFrameElementBounds()
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameView.FrameBounds
calculatePreferredFrameBounds()
boolean
canAddInstance(PresentationElement obj)
Object view has no children.protected boolean
canFill()
protected boolean
canMoveChildOutside(PresentationElement element)
boolean
coversPoint(int x, int y)
checks if object covers provided pointprotected void
createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
void
dispose()
disposes ends of links when link is deletedprivate static void
fixFrameBottom(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)
private void
fixFrameLeft(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceLeft)
private static void
fixFrameRight(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)
private void
fixFrameTop(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceTop)
int
getCornerArcSize()
protected UnmodifiableDimension
getDefaultDimension()
Diagram
getElement()
Returns model element of this presentation element.EncapsulatedClassifier
getEncapsulatedClassifier()
TypedElement
getEncapsulatedClassifierProvider()
java.awt.Color
getFillColor()
Returns fill colorjava.awt.Rectangle
getFrameElementBounds()
private java.lang.Iterable<PresentationElement>
getFramePresentationElements(com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer container)
com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView
getHeaderView()
java.lang.String
getHumanName()
Returns human representation of the data typejava.lang.String
getHumanType()
Returns human representation of the data typePresentationElement
getParentSymbolPropertyOwner()
Returns parent symbol property manager to which this symbol delegates symbol property related functionality.java.lang.String
getResourceID()
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
getStereotypesToDisplay()
boolean
hasBoundaryDetails()
Returns true if frame carries details on its border.private boolean
hasRoundedCorners()
void
internalLayoutChildren(boolean calculatePrefSize)
protected void
internalPostUpdatePresentationElement()
protected void
internalSpecificUpdate()
boolean
intersects(int x, int y, int width, int height)
checks whether object intersects with given rectangleboolean
isHorizontalCenterlineProvider()
Indicates whether this shape provides horizontal centerlines to other shapes.private boolean
isPathConnectedToShapeOnBorder(PathElement path)
private boolean
isShapeOnBorder(ShapeElement shape)
boolean
isVerticalCenterlineProvider()
Indicates whether this shape provides vertical centerlines to other shapes.void
layoutFrame()
protected void
minimumOrMinimumShrinkableDimension(java.awt.Dimension size)
void
minimumSizeForShrinkingIgnoringOrientation(java.awt.Dimension size, int locationX, int locationY)
protected void
movePathElement(PathElement link, PathConnector requestor)
Calculates position of path element.boolean
mustShowContextMenu()
protected void
preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
private void
prefSizeByFrameElementBounds(java.awt.Dimension pref)
boolean
providesHorizontalCenterline()
boolean
providesVerticalCenterline()
protected void
selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
boolean
snapsToCenterlines()
void
sSetParent(PresentationElement parent)
Sets parent for this view.boolean
useParentProperties()
Does this element uses parent properties or has it own?-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, addPresentationElement, areBoxCompartmentsSuppressed, canAddChild, canHideBorder, canSuppressContent, childrenBoundsForReshape, clone, 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, getPreferredDimensionForAutosize, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, getSuppressCompartmentPropertyID, hasManipulatedChildrenIncludingIndirect, internalAddIndirectManipulatedChildrenRect, internalApplyProperties, internalBeforeUpdate, internalGetHeaderInsets, internalGetIndirectManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, internalSetCollections, internalSilentApply, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, 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, setStereotype, setStereotypesDisplayMode, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, sSetWrapEnabled, updateBorderVisibility, updateChildrenVisibility, updateCompartmentsVisibility, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, editName, getAdditionalHeaderHeightForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, internalGetHeaderBoundsForPreferredBounds, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, 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, isAutosized, isCenterlineInner, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, layoutChildren, maximumDimension, moveLinksToSelf, movePathElements, needAdjustToMaximumDimension, prepareForShadowDrawing, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, 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, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, disposeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findParentForData, 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, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, 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, internalCreatePropertyChangeListener, 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, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, 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, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID
-
-
-
-
Field Detail
-
SHAPE_DISTANCE_FROM_EDGE
public static final int SHAPE_DISTANCE_FROM_EDGE
- See Also:
- Constant Field Values
-
FRAME_DISTANCE_FROM_EDGE
public static final int FRAME_DISTANCE_FROM_EDGE
- See Also:
- Constant Field Values
-
SENSITIVE_BORDER_SIZE
private static final int SENSITIVE_BORDER_SIZE
- See Also:
- Constant Field Values
-
DIAGRAM_TYPES_FOR_PORTS_ON_FRAME
public static final java.util.List<java.lang.String> DIAGRAM_TYPES_FOR_PORTS_ON_FRAME
-
MINIMUM_SIZE
private static final int MINIMUM_SIZE
- See Also:
- Constant Field Values
-
frameElementsBounds
private java.awt.Rectangle frameElementsBounds
-
diagramTypeListener
private final java.beans.PropertyChangeListener diagramTypeListener
-
-
Constructor Detail
-
DiagramFrameView
public DiagramFrameView()
-
DiagramFrameView
public DiagramFrameView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
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.
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
selfSpecificHeaderShapeDraw
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
canFill
protected boolean canFill()
- Returns:
- true if symbol can be filled with some color
-
getFillColor
public java.awt.Color getFillColor()
Description copied from class:PresentationElement
Returns fill color
-
getCornerArcSize
public int getCornerArcSize()
-
hasRoundedCorners
private boolean hasRoundedCorners()
-
getResourceID
public java.lang.String getResourceID()
- Specified by:
getResourceID
in interfaceMDElement
- Overrides:
getResourceID
in classcom.nomagic.magicdraw.uml.MDElementImpl
-
useParentProperties
public boolean useParentProperties()
Description copied from class:PresentationElement
Does this element uses parent properties or has it own?- Overrides:
useParentProperties
in classPresentationElement
- Returns:
- true, if element does not have properties and uses parent's.
-
getParentSymbolPropertyOwner
public PresentationElement getParentSymbolPropertyOwner()
Description copied from class:PresentationElement
Returns parent symbol property manager to which this symbol delegates symbol property related functionality.- Returns:
- parent parent symbol to delegate or null if this symbol does not delegate.
-
mustShowContextMenu
public boolean mustShowContextMenu()
-
intersects
public boolean intersects(int x, int y, int width, int height)
Description copied from class:PresentationElement
checks whether object intersects with given rectangle- Returns:
- true if object and rectangle intersects
-
coversPoint
public boolean coversPoint(int x, int y)
Description copied from class:PresentationElement
checks if object covers provided point- Overrides:
coversPoint
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
- Returns:
- true if object covers this point
-
adjustBoundsForMoving
public java.awt.Rectangle adjustBoundsForMoving(java.awt.Rectangle rec, java.util.Collection<PresentationElement> movedTogether)
Description copied from class:PresentationElement
validate bounds for moving- Overrides:
adjustBoundsForMoving
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
getEncapsulatedClassifier
public EncapsulatedClassifier getEncapsulatedClassifier()
- Specified by:
getEncapsulatedClassifier
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
public TypedElement getEncapsulatedClassifierProvider()
- Specified by:
getEncapsulatedClassifierProvider
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
-
preferredSizeIgnoringOrientation
protected void preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
- Overrides:
preferredSizeIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
prefSizeByFrameElementBounds
private void prefSizeByFrameElementBounds(java.awt.Dimension pref)
-
minimumOrMinimumShrinkableDimension
protected void minimumOrMinimumShrinkableDimension(java.awt.Dimension size)
-
minimumSizeForShrinkingIgnoringOrientation
public void minimumSizeForShrinkingIgnoringOrientation(java.awt.Dimension size, int locationX, int locationY)
- Overrides:
minimumSizeForShrinkingIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
adjustToAspectRatio
private void adjustToAspectRatio(java.awt.Dimension size)
-
calculateAspectRatio
@CheckForNull private static java.lang.Double calculateAspectRatio(java.lang.String value)
-
canMoveChildOutside
protected boolean canMoveChildOutside(PresentationElement element)
- Overrides:
canMoveChildOutside
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize)
- Overrides:
internalLayoutChildren
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
providesVerticalCenterline
public boolean providesVerticalCenterline()
- Specified by:
providesVerticalCenterline
in interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
providesHorizontalCenterline
public boolean providesHorizontalCenterline()
- Specified by:
providesHorizontalCenterline
in interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
isHorizontalCenterlineProvider
public boolean isHorizontalCenterlineProvider()
Description copied from class:ShapeElement
Indicates whether this shape provides horizontal centerlines to other shapes.- Returns:
- true if this shape provides horizontal centerlines, false otherwise.
-
isVerticalCenterlineProvider
public boolean isVerticalCenterlineProvider()
Description copied from class:ShapeElement
Indicates whether this shape provides vertical centerlines to other shapes.- Returns:
- true if this shape provides vertical centerlines, false otherwise.
-
movePathElement
protected void movePathElement(PathElement link, @CheckForNull PathConnector requestor)
Description copied from class:PathConnector
Calculates position of path element.- Parameters:
link
- element which position will be calculated.requestor
- the requestor of this path moving. Implementations may check in order to avoid endless loops.
-
getStereotypesToDisplay
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()
- Overrides:
getStereotypesToDisplay
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
sSetParent
public void sSetParent(PresentationElement parent)
Description copied from class:PresentationElement
Sets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)
orPresentationElement.sAddPresentationElement(PresentationElement)
}- Parameters:
parent
- parent view
-
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
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
snapsToCenterlines
public boolean snapsToCenterlines()
- Specified by:
snapsToCenterlines
in interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
getFrameElementBounds
public java.awt.Rectangle getFrameElementBounds()
-
calculateFrameElementBounds
public void calculateFrameElementBounds()
-
hasBoundaryDetails
public boolean hasBoundaryDetails()
Returns true if frame carries details on its border. If the frame is plain, false is returned.- Returns:
- true if frame carries details on border, false otherwise.
-
getFramePresentationElements
private java.lang.Iterable<PresentationElement> getFramePresentationElements(com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer container)
-
isShapeOnBorder
private boolean isShapeOnBorder(ShapeElement shape)
- Parameters:
shape
- shape- Returns:
- true if shape is on frame border or shape is a child of another shape on frame border
-
isPathConnectedToShapeOnBorder
private boolean isPathConnectedToShapeOnBorder(PathElement path)
- Parameters:
path
- path- Returns:
- true if path connected directly or indirectly to some shape on border. Indirectly can be few cases - a) connected to child of shape on border or b) connected to another link which is connected to shape on border
-
layoutFrame
public void layoutFrame()
-
autosizeShapesOnEdge
private void autosizeShapesOnEdge()
-
calculatePreferredFrameBounds
private com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameView.FrameBounds calculatePreferredFrameBounds()
-
fixFrameTop
private void fixFrameTop(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceTop)
-
fixFrameLeft
private void fixFrameLeft(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceLeft)
-
fixFrameRight
private static void fixFrameRight(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)
-
fixFrameBottom
private static void fixFrameBottom(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)
-
getHumanType
public java.lang.String getHumanType()
Description copied from class:PresentationElement
Returns human representation of the data type- Specified by:
getHumanType
in interfaceBaseElement
- Returns:
- the name of the data
-
getHumanName
public java.lang.String getHumanName()
Description copied from class:PresentationElement
Returns human representation of the data type- Specified by:
getHumanName
in interfaceBaseElement
- Returns:
- the name of the data
-
internalPostUpdatePresentationElement
protected void internalPostUpdatePresentationElement()
- Overrides:
internalPostUpdatePresentationElement
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
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.
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView getHeaderView()
- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
-