Class DiagramFrameView
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameView
- All Implemented Interfaces:
com.dassault_systemes.modeler.magic.diagram.DiagramFrameShape,BaseElement,com.nomagic.magicdraw.uml.CompartmentSupport,MDElement,ModelElementProvider,com.nomagic.magicdraw.uml.symbols.CompartmentContainer,com.nomagic.magicdraw.uml.symbols.CompartmentOwner,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement,com.nomagic.magicdraw.uml.symbols.shapes.PortOwner,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,com.nomagic.magicdraw.uml.symbols.Wrapable,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class DiagramFrameView
extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
implements com.nomagic.magicdraw.uml.symbols.shapes.PortOwner, com.dassault_systemes.modeler.magic.diagram.DiagramFrameShape
-
Field Summary
FieldsFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_IMAGE_AND_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODESFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
BORDER_ELEMENT_MARGIN_ALL, BORDER_ELEMENT_MARGIN_BOTTOM, BORDER_ELEMENT_MARGIN_LEFT, BORDER_ELEMENT_MARGIN_LEFT_RIGHT, BORDER_ELEMENT_MARGIN_MODES, BORDER_ELEMENT_MARGIN_NONE, BORDER_ELEMENT_MARGIN_RIGHT, BORDER_ELEMENT_MARGIN_TOP, BORDER_ELEMENT_MARGIN_TOP_BOTTOM, BOTTOM_EDGE, INSIDE_EDGE_POSITION, LEFT_EDGE, NEED_AUTOSIZE_FULL, NEED_AUTOSIZE_LAYOUT, NEED_AUTOSIZE_NONE, NO_EDGE, NULL_INSETS, ON_EDGE_POSITION, OUTSIDE_EDGE_POSITION, RIGHT_EDGE, SPACE, SPACE_INSETS, SPACE_INSETS_EMPTY_TOP_BOTTOM, TOP_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxyFields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, peStyle, SHADOW_WIDTH, SOLID_STROKEFields inherited from interface com.dassault_systemes.modeler.magic.diagram.DiagramFrameShape
FRAME_DISTANCE_FROM_EDGEFields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
QNAME_DISPLAY_MODE_ABOVE_NAME, QNAME_DISPLAY_MODE_BELOW_NAME, QNAME_DISPLAY_MODE_DO_NOT_DISPLAY, QNAME_DISPLAY_MODE_MERGE_WITH_NAME, QNAME_DISPLAY_MODESFields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.StereotypesDisplayModeOwner
DSL_STEREOTYPE_DISPLAY_MODE_ALL, DSL_STEREOTYPE_DISPLAY_MODE_LAST, DSL_STEREOTYPE_DISPLAY_MODE_NONE, DSL_STEREOTYPE_DISPLAY_MODES, STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, STEREOTYPE_DISPLAY_MODE_ICON, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, STEREOTYPES_DISPLAY_MODES, STEREOTYPES_DISPLAY_MODES_SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.adjustBoundsBeforeChange(Rectangle rec, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Validate bounds before bounds change operationvoidatInsert()Invalidates object at insertvoidbooleancanAddInstance(PresentationElement symbol) Object view has no children.protected booleancanFill()protected booleancanMoveChildOutside(PresentationElement element) booleancoversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks if object covers provided pointprotected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) voiddispose()disposes ends of links when link is deletedintprotected UnmodifiableDimensionReturns model element of this presentation element.Returns fill colorcom.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderViewReturns human representation of the data typeReturns human representation of the data typeReturns parent to which this symbol delegates style attributes related functionality.protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayDatabooleanReturns true if frame carries details on its border.voidinternalLayoutChildren(boolean calculatePrefSize) protected voidSubclasses may override this method and do some actions after specific update and resizing are executed.protected voidSpecific to every shape and model element update operation.booleanintersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks whether object intersects with given rectanglebooleanIndicates whether this shape provides horizontal center-lines to other shapes.booleanbooleanbooleanIndicates whether this shape provides vertical center-lines to other shapes.voidvoidprotected voidvoidminimumSizeForShrinkingIgnoringOrientation(Dimension size, int locationX, int locationY) protected voidmovePathElement(PathElement link, PathConnector requestor) Calculates position of a path element.booleanprotected voidpreferredSizeIgnoringOrientation(Dimension pref, int locationX, int locationY) booleanIndicates if this shape can provide a horizontal centerline for other shapes to snap.booleanIndicates if this shape can provide a vertical centerline for other shapes to snap.protected voidselfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) booleanIndicates if this shape can be snapped to centerlines.voidsSetParent(PresentationElement parent) Sets parent for this view.booleanDoes this element uses parent style or has it's own?Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
canSuppressContent, getBooleanCompartmentPropertyValue, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getMiddlePointByIcon, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, internalApplyProperties, internalBeforeUpdate, internalSilentApply, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, propertyChange, recursiveAutosize, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setQNameDisplayMode, setSecondaryImageAndStereotypeDisplayMode, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, updateBorderVisibility, updateNameMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
addCompartment, addCompartment, addPresentationElement, applyCompartmentsStyle, areBoxCompartmentsSuppressed, askDeleteDataConfirmation, asPresentationElement, autosizeShapesOnEdge, canAddChild, canChangeParent, canHideBorder, childrenBoundsForReshape, clone, createBoundsShape, createCompartmentElements, createStateForUpdateOperation, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentDescriptor, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotifyOnPropertiesChange, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, getCompartmentByID, getCompartmentIDs, getCompartments, getCompartmentsIDs, getCompartmentStyleDelegate, getConfiguredPreferredSizeForAutosize, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getLastHeaderShapeElementBottom, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, hasManipulatedChildrenIncludingIndirect, hasSharedModelElement, internalAddIndirectManipulatedChildrenRect, internalGetHeaderInsets, internalGetIndirectManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isWrapEnabled, iterateCompartmentDelegates, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setReshapeMode, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetName, sSetWrapEnabled, updateChildrenVisibility, updateCompartmentsVisibilityMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, 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, switchWidthHeightIfVerticalOrientationMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElementsMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, isAutosized, isCenterlineInner, isOnEdge, isShapeOnEdge, 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, updateLaterMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, disposePropertyChangeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findOwnerForChildElement, findOwnerForElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFont, getFontHeight, getFontRenderContext, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getOwnStyleDelegate, getParent, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, initializeAndAutosize, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, intersects, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setElement, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLocation, sSetLocation, sSetModelElement, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentPropertiesMethods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getProjectProvider, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, setResourceIDProvider, sGetIDMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeableMethods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointYMethods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElementsMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
DIAGRAM_TYPES_FOR_PORTS_ON_FRAME
-
-
Constructor Details
-
DiagramFrameView
public DiagramFrameView() -
DiagramFrameView
-
-
Method Details
-
accept
Description copied from interface:MDElementMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
selfSpecificHeaderShapeDrawin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
canFill
protected boolean canFill()- Overrides:
canFillin classPresentationElement- Returns:
- true if symbol can be filled with some color
-
getFillColor
Description copied from class:PresentationElementReturns fill color- Overrides:
getFillColorin classPresentationElement
-
getCornerArcSize
public int getCornerArcSize() -
getResourceID
- Specified by:
getResourceIDin interfaceMDElement- Overrides:
getResourceIDin classcom.nomagic.magicdraw.uml.MDElementImpl
-
useParentStyle
public boolean useParentStyle()Description copied from class:PresentationElementDoes this element uses parent style or has it's own?- Overrides:
useParentStylein classPresentationElement- Returns:
- true, if element does not have style and uses parent's style.
-
getParentSymbolStyleOwner
Description copied from class:PresentationElementReturns parent to which this symbol delegates style attributes related functionality.- Overrides:
getParentSymbolStyleOwnerin classPresentationElement- Returns:
- parent symbol to delegate or null if this symbol does not delegate.
-
mustShowContextMenu
public boolean mustShowContextMenu()- Overrides:
mustShowContextMenuin classPresentationElement
-
intersects
public boolean intersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementchecks whether object intersects with given rectangle- Overrides:
intersectsin classShapeElement- Returns:
- true if object and rectangle intersects
-
coversPoint
public boolean coversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) 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
-
adjustBoundsBeforeChange
public Rectangle adjustBoundsBeforeChange(Rectangle rec, boolean autosizeOperation, Collection<PresentationElement> movedTogether) Description copied from class:PresentationElementValidate bounds before bounds change operation- Overrides:
adjustBoundsBeforeChangein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
getEncapsulatedClassifier
- Specified by:
getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
- Specified by:
getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getDefaultDimension
- Overrides:
getDefaultDimensionin classShapeElement
-
preferredSizeIgnoringOrientation
- Overrides:
preferredSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
minimumOrMinimumShrinkableDimension
- Overrides:
minimumOrMinimumShrinkableDimensionin classShapeElement
-
minimumSizeForShrinkingIgnoringOrientation
public void minimumSizeForShrinkingIgnoringOrientation(Dimension size, int locationX, int locationY) - Overrides:
minimumSizeForShrinkingIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canMoveChildOutside
- Overrides:
canMoveChildOutsidein classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
providesVerticalCenterline
public boolean providesVerticalCenterline()Description copied from interface:com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShapeIndicates if this shape can provide a vertical centerline for other shapes to snap.- Specified by:
providesVerticalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape- Overrides:
providesVerticalCenterlinein classShapeElement- Returns:
- true if this shape provides vertical centerline, false otherwise.
-
providesHorizontalCenterline
public boolean providesHorizontalCenterline()Description copied from interface:com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShapeIndicates if this shape can provide a horizontal centerline for other shapes to snap.- Specified by:
providesHorizontalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape- Overrides:
providesHorizontalCenterlinein classShapeElement- Returns:
- true if this shape provides horizontal centerline, false otherwise.
-
isHorizontalCenterlineProvider
public boolean isHorizontalCenterlineProvider()Description copied from class:ShapeElementIndicates whether this shape provides horizontal center-lines to other shapes.- Overrides:
isHorizontalCenterlineProviderin classShapeElement- Returns:
- true if this shape provides horizontal center-lines, false otherwise.
-
isVerticalCenterlineProvider
public boolean isVerticalCenterlineProvider()Description copied from class:ShapeElementIndicates whether this shape provides vertical center-lines to other shapes.- Overrides:
isVerticalCenterlineProviderin classShapeElement- Returns:
- true if this shape provides vertical center lines, false otherwise.
-
movePathElement
Description copied from class:PathConnectorCalculates position of a path element.- Overrides:
movePathElementin classShapeElement- Parameters:
link- element which position will be calculated.requestor- the requestor of this path moving. Implementations may check to avoid endless loops.
-
getStereotypesToDisplay
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()- Overrides:
getStereotypesToDisplayin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- Returns:
- stereotypes to display on this symbol
-
sSetParent
Description copied from class:PresentationElementSets parent for this view. For adding symbols to other symbols usePresentationElement.addPresentationElement(PresentationElement)orPresentationElement.sAddPresentationElement(PresentationElement)}- Overrides:
sSetParentin classPresentationElement- 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()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeViewSpecific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.- Overrides:
internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
snapsToCenterlines
public boolean snapsToCenterlines()Description copied from interface:com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShapeIndicates if this shape can be snapped to centerlines.- Specified by:
snapsToCenterlinesin interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape- Overrides:
snapsToCenterlinesin classShapeElement- Returns:
- true if this shape can be snapped to centerlines, false otherwise.
-
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.
-
layoutFrameIfSet
public void layoutFrameIfSet()- Specified by:
layoutFrameIfSetin interfacecom.dassault_systemes.modeler.magic.diagram.DiagramFrameShape
-
layoutFrame
public void layoutFrame() -
getHumanType
Description copied from class:PresentationElementReturns human representation of the data type- Specified by:
getHumanTypein interfaceBaseElement- Overrides:
getHumanTypein classPresentationElement- Returns:
- the name of the data
-
getHumanName
Description copied from class:PresentationElementReturns human representation of the data type- Specified by:
getHumanNamein interfaceBaseElement- Overrides:
getHumanNamein classPresentationElement- Returns:
- the name of the data
-
internalPostUpdatePresentationElement
protected void internalPostUpdatePresentationElement()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeViewSubclasses may override this method and do some actions after specific update and resizing are executed. Implementation is empty here.- Overrides:
internalPostUpdatePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
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
-
isSetAsDiagramFrame
public boolean isSetAsDiagramFrame()- Specified by:
isSetAsDiagramFramein interfacecom.dassault_systemes.modeler.magic.diagram.DiagramFrameShape
-
isOwningMode
public boolean isOwningMode()- Specified by:
isOwningModein interfacecom.dassault_systemes.modeler.magic.diagram.DiagramFrameShape
-