Class NoteView
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.NoteView
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.CompartmentContainer
,com.nomagic.magicdraw.uml.symbols.CompartmentOwner
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
,com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
,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 NoteView
extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
implements com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
This class creates a note. NoteView displays note icon in UML diagrams.
-
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_MODES
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGE
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, 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, peStyle, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.boolean
Adds a new path element, and recalculates its position.clone()
createBoundsShape
(PathElement path, BoundsTransformation transformation) Creates bounding shape for intersection calculation.void
Create compartments elements.protected void
createSmartListenerConfig
(List<SmartListenerConfig> configurations) Returns "active" note anchor view.List<com.dassault_systemes.modeler.foundation.compartments.CompartmentCollection>
protected UnmodifiableDimension
com.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderView
Returns human representation of the data typecom.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderView
Deprecated.Returns element to which note is connected with first (active) note anchor.getRelatedElement
(PresentationElement presentationElement) Returns element to which note is connected with first (active) note anchor.protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
Returns the pure text.void
internalApplyProperties
(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected com.nomagic.ui.UnmodifiableInsets
protected UnmodifiableDimension
void
Silently applies all properties after initializationprotected void
Specific to every shape and model element update operation.boolean
Indicates whether this shape provides horizontal center-lines to other shapes.boolean
boolean
boolean
boolean
boolean
boolean
boolean
Indicates whether this shape provides vertical center-lines to other shapes.boolean
Removes path element.protected void
selfSpecificHeaderShapeDraw
(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) void
setCommentDisplayMode
(String mode) void
setHTMLText
(boolean isHtml) void
setRepresentDiagramContext
(boolean enable) void
setShowConstraints
(boolean show) void
setShowDocumentationStereotypes
(boolean show) void
setShowLineBetweenCompartments
(boolean show) void
setShowQualifiedNameInTaggedValues
(boolean show) void
setShowTaggedValues
(boolean show) void
setShowTaggedValuesStereotypes
(boolean show) void
Sets smart property change listener element.void
sSetCommentDisplayMode
(String mode) void
sSetConstraintTextMode
(String mode) Change the value of CONSTRAINT_TEXT_MODE property.void
sSetHTMLText
(boolean isHtml) void
sSetRepresentDiagramContext
(boolean enable) void
sSetShowConstraints
(boolean show) void
sSetShowDocumentationStereotypes
(boolean show) void
sSetShowLineBetweenCompartments
(boolean show) void
sSetShowQualifiedNameInTaggedValues
(boolean show) void
sSetShowTaggedValues
(boolean show) void
sSetShowTaggedValuesStereotypes
(boolean show) void
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
atInsert, canSuppressContent, dispose, getBooleanCompartmentPropertyValue, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getMiddlePointByIcon, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, internalBeforeUpdate, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, propertyChange, recursiveAutosize, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setQNameDisplayMode, setSecondaryImageAndStereotypeDisplayMode, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, sSetConstraintAndTaggedValueAlignment, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowType, sSetStereotypesDisplayMode, updateBorderVisibility, updateName
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
addCompartment, addCompartment, addPresentationElement, applyCompartmentsStyle, areBoxCompartmentsSuppressed, askDeleteDataConfirmation, asPresentationElement, autosizeShapesOnEdge, canAddChild, canChangeParent, canHideBorder, childrenBoundsForReshape, createStateForUpdateOperation, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentDescriptor, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotifyOnPropertiesChange, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCompartmentByID, getCompartmentIDs, getCompartments, getCompartmentsIDs, getCompartmentStyleDelegate, getConfiguredPreferredSizeForAutosize, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getLastHeaderShapeElementBottom, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, hasManipulatedChildrenIncludingIndirect, hasSharedModelElement, internalAddIndirectManipulatedChildrenRect, internalGetIndirectManipulatedChildrenRect, internalLayoutChildren, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isWrapEnabled, iterateCompartmentDelegates, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, preferredSizeIgnoringOrientation, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setReshapeMode, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetName, sSetWrapEnabled, updateCompartmentsVisibility
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, canAddInstance, correctChildrenVector, coversPoint, editName, getAdditionalHeaderHeightForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, internalGetHeaderBoundsForPreferredBounds, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, 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, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isOnEdge, isShapeOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, supportsVisibleConnectedPathElementsIfSelfInvisible
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, 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, getElement, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getOwnStyleDelegate, getParent, getParentSymbolStyleOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, initializeAndAutosize, 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, mustShowContextMenu, 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, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyle
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, setResourceIDProvider, sGetID
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeable
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY
Methods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElements
Methods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
canDisplayHTMLText
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
SHOW_TEXT
- See Also:
-
SHOW_DOCUMENTATION
- See Also:
-
NONE
- See Also:
-
COMMENT_DISPLAY_MODES
-
-
Constructor Details
-
NoteView
public NoteView() -
NoteView
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
getDefaultDimension
- Overrides:
getDefaultDimension
in classShapeElement
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()- Overrides:
internalGetHeaderInsets
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
selfSpecificHeaderShapeDraw
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
createBoundsShape
Description copied from class:ShapeElement
Creates bounding shape for intersection calculation.- Overrides:
createBoundsShape
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Parameters:
path
- pathtransformation
- transformation- Returns:
- shape
-
accept
Description copied from interface:MDElement
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
changer
- new properties
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
addConnectedPathElement
Description copied from class:PathConnector
Adds a new path element, and recalculates its position.- Overrides:
addConnectedPathElement
in classPathConnector
- Parameters:
link
- element to be added.- Returns:
- true if an element was added
-
removeConnectedPathElement
Description copied from class:PathConnector
Removes path element.- Overrides:
removeConnectedPathElement
in classPathConnector
- Parameters:
link
- element to remove.- Returns:
- true if an element was removed
-
internalGetSelfManipulationPreferredSize
- Overrides:
internalGetSelfManipulationPreferredSize
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Returns:
- size for manipulation which does not take into account the size of children on some specific conditions (for example, in case if wrapped text)
-
setHTMLText
public void setHTMLText(boolean isHtml) - Specified by:
setHTMLText
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
-
sSetHTMLText
public void sSetHTMLText(boolean isHtml) -
isHTMLText
public boolean isHTMLText()- Specified by:
isHTMLText
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
-
getUserText
Returns the pure text. If html text is presented, this method returns not tml text, but user visible text.- Returns:
- the user visible text.
-
getHumanName
Description copied from class:PresentationElement
Returns human representation of the data type- Specified by:
getHumanName
in interfaceBaseElement
- Overrides:
getHumanName
in classPresentationElement
- Returns:
- the name of the data
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getRelatedPresentationElement
-
getRelatedElement
Returns element to which note is connected with first (active) note anchor.- Returns:
- related element
- See Also:
-
getRelatedElement
@CheckForNull public Element getRelatedElement(@CheckForNull PresentationElement presentationElement) Returns element to which note is connected with first (active) note anchor.- Returns:
- related element
- See Also:
-
getActiveNoteAnchorView
Returns "active" note anchor view. Note displays info of element connected with active anchor. Active anchor is first connected path.- Returns:
- active anchor
-
getAnchoredDiagramFrame
-
setShowTaggedValues
public void setShowTaggedValues(boolean show) - Overrides:
setShowTaggedValues
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sSetShowTaggedValues
public void sSetShowTaggedValues(boolean show) - Overrides:
sSetShowTaggedValues
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
setShowConstraints
public void setShowConstraints(boolean show) - Overrides:
setShowConstraints
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sSetShowConstraints
public void sSetShowConstraints(boolean show) - Overrides:
sSetShowConstraints
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isShowLineBetweenCompartments
public boolean isShowLineBetweenCompartments() -
sSetShowLineBetweenCompartments
public void sSetShowLineBetweenCompartments(boolean show) -
updateChildrenVisibility
public void updateChildrenVisibility()- Overrides:
updateChildrenVisibility
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
setShowLineBetweenCompartments
public void setShowLineBetweenCompartments(boolean show) -
isShowTaggedValuesStereotypes
public boolean isShowTaggedValuesStereotypes() -
sSetShowTaggedValuesStereotypes
public void sSetShowTaggedValuesStereotypes(boolean show) -
setShowTaggedValuesStereotypes
public void setShowTaggedValuesStereotypes(boolean show) -
isShowQualifiedNameInTaggedValues
public boolean isShowQualifiedNameInTaggedValues() -
sSetShowQualifiedNameInTaggedValues
public void sSetShowQualifiedNameInTaggedValues(boolean show) -
setShowQualifiedNameInTaggedValues
public void setShowQualifiedNameInTaggedValues(boolean show) -
isShowDocumentationStereotypes
public boolean isShowDocumentationStereotypes() -
sSetShowDocumentationStereotypes
public void sSetShowDocumentationStereotypes(boolean show) -
setShowDocumentationStereotypes
public void setShowDocumentationStereotypes(boolean show) -
internalSpecificUpdate
protected void internalSpecificUpdate()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
Specific 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:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
getStereotypesToDisplay
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()- Overrides:
getStereotypesToDisplay
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
- Returns:
- stereotypes to display on this symbol
-
createCompartmentElements
public void createCompartmentElements()Description copied from interface:com.nomagic.magicdraw.uml.CompartmentSupport
Create compartments elements. After that compartment should be ready to hide or show some elements.- Specified by:
createCompartmentElements
in interfacecom.nomagic.magicdraw.uml.CompartmentSupport
- Overrides:
createCompartmentElements
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
getCollections
public List<com.dassault_systemes.modeler.foundation.compartments.CompartmentCollection> getCollections()- Specified by:
getCollections
in interfacecom.nomagic.magicdraw.uml.CompartmentSupport
- Overrides:
getCollections
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Returns:
- compartment information
-
setSmartPropertyChangeListenerElement
Sets smart property change listener element. This is a way to reset mSmartPropertyChangeListenerElement which lets to create new smart listener. The problem is when adding custom compartment for NoteView: there is no way to write smart listener configurator to update view because standard listener is added for related element and view is not updated.- Parameters:
element
- element to set.
-
sSetCommentDisplayMode
-
setCommentDisplayMode
-
getCommentDisplayMode
-
setRepresentDiagramContext
public void setRepresentDiagramContext(boolean enable) -
sSetRepresentDiagramContext
public void sSetRepresentDiagramContext(boolean enable) -
isRepresentDiagramContext
public boolean isRepresentDiagramContext() -
isVerticalCenterlineProvider
public boolean isVerticalCenterlineProvider()Description copied from class:ShapeElement
Indicates whether this shape provides vertical center-lines to other shapes.- Overrides:
isVerticalCenterlineProvider
in classShapeElement
- Returns:
- true if this shape provides vertical center lines, false otherwise.
-
isHorizontalCenterlineProvider
public boolean isHorizontalCenterlineProvider()Description copied from class:ShapeElement
Indicates whether this shape provides horizontal center-lines to other shapes.- Overrides:
isHorizontalCenterlineProvider
in classShapeElement
- Returns:
- true if this shape provides horizontal center-lines, false otherwise.
-
sSetConstraintTextMode
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
Change the value of CONSTRAINT_TEXT_MODE property.- Overrides:
sSetConstraintTextMode
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
mode
- text mode.
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderView getHeaderView()- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getNoteHeaderView
Deprecated.usegetHeaderView()
-
getHeaderView()