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 classcom.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_FRAMEprivate java.beans.PropertyChangeListenerdiagramTypeListenerstatic intFRAME_DISTANCE_FROM_EDGEprivate java.awt.RectangleframeElementsBoundsprivate static intMINIMUM_SIZEprivate static intSENSITIVE_BORDER_SIZEstatic intSHAPE_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 voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .java.awt.RectangleadjustBoundsForMoving(java.awt.Rectangle rec, java.util.Collection<PresentationElement> movedTogether)validate bounds for movingprivate voidadjustToAspectRatio(java.awt.Dimension size)voidatInsert()Invalidates object at insertprivate voidautosizeShapesOnEdge()private static java.lang.DoublecalculateAspectRatio(java.lang.String value)voidcalculateFrameElementBounds()private com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameView.FrameBoundscalculatePreferredFrameBounds()booleancanAddInstance(PresentationElement obj)Object view has no children.protected booleancanFill()protected booleancanMoveChildOutside(PresentationElement element)booleancoversPoint(int x, int y)checks if object covers provided pointprotected voidcreateSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)voiddispose()disposes ends of links when link is deletedprivate static voidfixFrameBottom(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)private voidfixFrameLeft(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceLeft)private static voidfixFrameRight(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds)private voidfixFrameTop(java.awt.Rectangle frameBounds, java.awt.Rectangle elementBounds, int childDistanceTop)intgetCornerArcSize()protected UnmodifiableDimensiongetDefaultDimension()DiagramgetElement()Returns model element of this presentation element.EncapsulatedClassifiergetEncapsulatedClassifier()TypedElementgetEncapsulatedClassifierProvider()java.awt.ColorgetFillColor()Returns fill colorjava.awt.RectanglegetFrameElementBounds()private java.lang.Iterable<PresentationElement>getFramePresentationElements(com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer container)com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderViewgetHeaderView()java.lang.StringgetHumanName()Returns human representation of the data typejava.lang.StringgetHumanType()Returns human representation of the data typePresentationElementgetParentSymbolPropertyOwner()Returns parent symbol property manager to which this symbol delegates symbol property related functionality.java.lang.StringgetResourceID()protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayDatagetStereotypesToDisplay()booleanhasBoundaryDetails()Returns true if frame carries details on its border.private booleanhasRoundedCorners()voidinternalLayoutChildren(boolean calculatePrefSize)protected voidinternalPostUpdatePresentationElement()protected voidinternalSpecificUpdate()booleanintersects(int x, int y, int width, int height)checks whether object intersects with given rectanglebooleanisHorizontalCenterlineProvider()Indicates whether this shape provides horizontal centerlines to other shapes.private booleanisPathConnectedToShapeOnBorder(PathElement path)private booleanisShapeOnBorder(ShapeElement shape)booleanisVerticalCenterlineProvider()Indicates whether this shape provides vertical centerlines to other shapes.voidlayoutFrame()protected voidminimumOrMinimumShrinkableDimension(java.awt.Dimension size)voidminimumSizeForShrinkingIgnoringOrientation(java.awt.Dimension size, int locationX, int locationY)protected voidmovePathElement(PathElement link, PathConnector requestor)Calculates position of path element.booleanmustShowContextMenu()protected voidpreferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)private voidprefSizeByFrameElementBounds(java.awt.Dimension pref)booleanprovidesHorizontalCenterline()booleanprovidesVerticalCenterline()protected voidselfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)booleansnapsToCenterlines()voidsSetParent(PresentationElement parent)Sets parent for this view.booleanuseParentProperties()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:MDElementMethod 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:
 selfSpecificHeaderShapeDrawin 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:PresentationElementReturns fill color 
- 
getCornerArcSize
public int getCornerArcSize()
 
- 
hasRoundedCorners
private boolean hasRoundedCorners()
 
- 
getResourceID
public java.lang.String getResourceID()
- Specified by:
 getResourceIDin interfaceMDElement- Overrides:
 getResourceIDin classcom.nomagic.magicdraw.uml.MDElementImpl
 
- 
useParentProperties
public boolean useParentProperties()
Description copied from class:PresentationElementDoes this element uses parent properties or has it own?- Overrides:
 useParentPropertiesin classPresentationElement- Returns:
 - true, if element does not have properties and uses parent's.
 
 
- 
getParentSymbolPropertyOwner
public PresentationElement getParentSymbolPropertyOwner()
Description copied from class:PresentationElementReturns 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:PresentationElementchecks 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:PresentationElementchecks if object covers provided point- Overrides:
 coversPointin 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:PresentationElementvalidate bounds for moving- Overrides:
 adjustBoundsForMovingin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
 
- 
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElementObject view has no children.- Overrides:
 canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
 
- 
getEncapsulatedClassifier
public EncapsulatedClassifier getEncapsulatedClassifier()
- Specified by:
 getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
 
- 
getEncapsulatedClassifierProvider
public TypedElement getEncapsulatedClassifierProvider()
- Specified by:
 getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
 
- 
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
 createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
 
- 
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
 
- 
preferredSizeIgnoringOrientation
protected void preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)- Overrides:
 preferredSizeIgnoringOrientationin 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:
 minimumSizeForShrinkingIgnoringOrientationin 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:
 canMoveChildOutsidein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
 
- 
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize)
- Overrides:
 internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
 
- 
providesVerticalCenterline
public boolean providesVerticalCenterline()
- Specified by:
 providesVerticalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
 
- 
providesHorizontalCenterline
public boolean providesHorizontalCenterline()
- Specified by:
 providesHorizontalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
 
- 
isHorizontalCenterlineProvider
public boolean isHorizontalCenterlineProvider()
Description copied from class:ShapeElementIndicates 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:ShapeElementIndicates 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:PathConnectorCalculates 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:
 getStereotypesToDisplayin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
 
- 
sSetParent
public void sSetParent(PresentationElement parent)
Description copied from class:PresentationElementSets 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: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()
- Overrides:
 internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
 
- 
snapsToCenterlines
public boolean snapsToCenterlines()
- Specified by:
 snapsToCenterlinesin 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:PresentationElementReturns human representation of the data type- Specified by:
 getHumanTypein interfaceBaseElement- Returns:
 - the name of the data
 
 
- 
getHumanName
public java.lang.String getHumanName()
Description copied from class:PresentationElementReturns human representation of the data type- Specified by:
 getHumanNamein interfaceBaseElement- Returns:
 - the name of the data
 
 
- 
internalPostUpdatePresentationElement
protected void internalPostUpdatePresentationElement()
- Overrides:
 internalPostUpdatePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
 
- 
getElement
public Diagram 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.
 
 
- 
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderView getHeaderView()
- Overrides:
 getHeaderViewin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
 
 - 
 
 -