Class NoteView
- 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.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.shapes.PlainTextOrHTMLChangeable,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 NoteView extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView implements com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeableThis class creates a note. NoteView displays note icon in UML diagrams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classcom.nomagic.magicdraw.uml.symbols.shapes.NoteView.NoteViewSymbolPropertiesConfigurator-
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>COMMENT_DISPLAY_MODESprivate static UnmodifiableDimensionDEFAULT_SIZEprivate static intFOLDER_SIZEHeight of the top left folderprivate static com.nomagic.ui.UnmodifiableInsetsINSETSprivate SmartPropertyChangeListenermSmartPropertyChangeListenerprivate com.nomagic.magicdraw.uml.ElementReference<Element>mSmartPropertyChangeListenerElementstatic java.lang.StringNONEstatic java.lang.StringSHOW_DOCUMENTATIONstatic java.lang.StringSHOW_TEXT-
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 NoteView()NoteView(PresentationElement parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .booleanaddConnectedPathElement(PathElement link)Adds new path element, and recalculates its position.NoteViewclone()Returns a copy of theElement.ContainerShapecreateBoundsShape(PathElement path, BoundsTransformation transformation)Creates bounding shape for intersection calculation.voidcreateCompartmentElements()private java.awt.PolygoncreatePolygon(int grow)protected voidcreateSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)private voidcreateSmartNoteListener()NoteAnchorViewgetActiveNoteAnchorView()Returns "active" note anchor view.PresentationElementgetAnchoredDiagramFrame()java.util.List<com.nomagic.magicdraw.uml.CompartmentCollection>getCollections()java.lang.StringgetCommentDisplayMode()protected UnmodifiableDimensiongetDefaultDimension()com.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderViewgetHeaderView()java.lang.StringgetHumanName()Returns human representation of the data typecom.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderViewgetNoteHeaderView()Deprecated.usegetHeaderView()ElementgetRelatedElement()Returns element to which note is connected with first (active) note anchor.ElementgetRelatedElement(PresentationElement presentationElement)Returns element to which note is connected with first (active) note anchor.PresentationElementgetRelatedPresentationElement()protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayDatagetStereotypesToDisplay()java.lang.StringgetUserText()Returns the pure text.voidinternalApplyProperties(PropertyManager man)Applies properties from given property managerprotected com.nomagic.ui.UnmodifiableInsetsinternalGetHeaderInsets()protected UnmodifiableDimensioninternalGetSelfManipulationPreferredSize()voidinternalSilentApply()Silently applies all properties after initializationprotected voidinternalSpecificUpdate()private static booleanisConnectedToDiagramFrame(PresentationElement element)booleanisHorizontalCenterlineProvider()Indicates whether this shape provides horizontal centerlines to other shapes.booleanisHTMLText()booleanisRepresentDiagramContext()booleanisShowDocumentationStereotypes()booleanisShowLineBetweenCompartments()booleanisShowQualifiedNameInTaggedValues()booleanisShowTaggedValuesStereotypes()booleanisVerticalCenterlineProvider()Indicates whether this shape provides vertical centerlines to other shapes.booleanremoveConnectedPathElement(PathElement link)Removes path element.protected voidselfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)voidsetCommentDisplayMode(java.lang.String mode)voidsetHTMLText(boolean isHtml)voidsetRepresentDiagramContext(boolean enable)voidsetShowConstraints(boolean show)voidsetShowDocumentationStereotypes(boolean show)voidsetShowLineBetweenCompartments(boolean show)voidsetShowQualifiedNameInTaggedValues(boolean show)voidsetShowTaggedValues(boolean show)voidsetShowTaggedValuesStereotypes(boolean show)voidsetSmartPropertyChangeListenerElement(Element element)Sets smart property change listener element.voidsSetCommentDisplayMode(java.lang.String mode)voidsSetConstraintTextMode(java.lang.String mode)voidsSetHTMLText(boolean isHtml)voidsSetRepresentDiagramContext(boolean enable)voidsSetShowConstraints(boolean show)voidsSetShowDocumentationStereotypes(boolean show)voidsSetShowLineBetweenCompartments(boolean show)voidsSetShowQualifiedNameInTaggedValues(boolean show)voidsSetShowTaggedValues(boolean show)voidsSetShowTaggedValuesStereotypes(boolean show)voidupdateChildrenVisibility()-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, addPresentationElement, areBoxCompartmentsSuppressed, atInsert, canAddChild, canHideBorder, canSuppressContent, childrenBoundsForReshape, createChangedCompartmentVisibilityProperty, createStateForUpdateOperation, dispose, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentInsets, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotify, getBooleanCompartmentPropertyValue, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCompartmentByID, getCompartmentContainer, getCompartmentIDs, getCompartmentRegistrationInfo, getCompartments, getConfiguredPreferredSizeForAutosize, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, getSuppressCompartmentPropertyID, hasManipulatedChildrenIncludingIndirect, internalAddIndirectManipulatedChildrenRect, internalBeforeUpdate, internalGetIndirectManipulatedChildrenRect, internalLayoutChildren, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, preferredSizeIgnoringOrientation, propertyChange, recursiveAutosize, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setQNameDisplayMode, setReshapeMode, setSecondaryImageAndStereotypeDisplayMode, setShowCompartmentName, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowType, sSetStereotypesDisplayMode, sSetWrapEnabled, updateBorderVisibility, updateCompartmentsVisibility, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, canAddInstance, correctChildrenVector, coversPoint, editName, getAdditionalHeaderHeightForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, internalGetHeaderBoundsForPreferredBounds, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isContentHidden, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isOnEdge, 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
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, 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, getElement, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRealPropertyManager, getRenderer, getSelected, getStereotypeColor, getStereotypeFont, getStringPropertyValue, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, 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, mustShowContextMenu, 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, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID
-
-
-
-
Field Detail
-
mSmartPropertyChangeListener
@CheckForNull private SmartPropertyChangeListener mSmartPropertyChangeListener
-
mSmartPropertyChangeListenerElement
@CheckForNull private com.nomagic.magicdraw.uml.ElementReference<Element> mSmartPropertyChangeListenerElement
-
SHOW_TEXT
public static final java.lang.String SHOW_TEXT
- See Also:
- Constant Field Values
-
SHOW_DOCUMENTATION
public static final java.lang.String SHOW_DOCUMENTATION
- See Also:
- Constant Field Values
-
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
-
COMMENT_DISPLAY_MODES
public static final java.util.List<java.lang.String> COMMENT_DISPLAY_MODES
-
DEFAULT_SIZE
private static final UnmodifiableDimension DEFAULT_SIZE
-
FOLDER_SIZE
private static final int FOLDER_SIZE
Height of the top left folder- See Also:
- Constant Field Values
-
INSETS
private static final com.nomagic.ui.UnmodifiableInsets INSETS
-
-
Constructor Detail
-
NoteView
public NoteView()
-
NoteView
public NoteView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
clone
public NoteView clone()
Description copied from class:ElementImplReturns a copy of theElement.- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Returns:
- the cloned object
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
selfSpecificHeaderShapeDrawin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
createPolygon
private java.awt.Polygon createPolygon(int grow)
-
createBoundsShape
public ContainerShape createBoundsShape(PathElement path, BoundsTransformation transformation)
Description copied from class:ShapeElementCreates bounding shape for intersection calculation.- Overrides:
createBoundsShapein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
path- pathtransformation- transformation- Returns:
- shape
-
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.
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
man- new properties
-
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElementSilently applies all properties after initialization- Overrides:
internalSilentApplyin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
addConnectedPathElement
public boolean addConnectedPathElement(PathElement link)
Description copied from class:PathConnectorAdds new path element, and recalculates its position.- Parameters:
link- element to be added.- Returns:
- true if element was added
-
removeConnectedPathElement
public boolean removeConnectedPathElement(PathElement link)
Description copied from class:PathConnectorRemoves path element.- Parameters:
link- element to remove.- Returns:
- true if element was removed
-
internalGetSelfManipulationPreferredSize
protected UnmodifiableDimension internalGetSelfManipulationPreferredSize()
- Overrides:
internalGetSelfManipulationPreferredSizein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
setHTMLText
public void setHTMLText(boolean isHtml)
- Specified by:
setHTMLTextin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
-
sSetHTMLText
public void sSetHTMLText(boolean isHtml)
-
isHTMLText
public boolean isHTMLText()
- Specified by:
isHTMLTextin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
-
getUserText
public java.lang.String 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
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
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getRelatedPresentationElement
@CheckForNull public PresentationElement getRelatedPresentationElement()
-
getRelatedElement
@CheckForNull public Element getRelatedElement()
Returns element to which note is connected with first (active) note anchor.- Returns:
- related element
- See Also:
getActiveNoteAnchorView()
-
getRelatedElement
@CheckForNull public Element getRelatedElement(@CheckForNull PresentationElement presentationElement)
Returns element to which note is connected with first (active) note anchor.- Parameters:
presentationElement-- Returns:
- related element
- See Also:
getActiveNoteAnchorView()
-
isConnectedToDiagramFrame
private static boolean isConnectedToDiagramFrame(PresentationElement element)
-
getActiveNoteAnchorView
@CheckForNull public NoteAnchorView 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
@CheckForNull public PresentationElement getAnchoredDiagramFrame()
-
setShowTaggedValues
public void setShowTaggedValues(boolean show)
- Overrides:
setShowTaggedValuesin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sSetShowTaggedValues
public void sSetShowTaggedValues(boolean show)
- Overrides:
sSetShowTaggedValuesin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
setShowConstraints
public void setShowConstraints(boolean show)
- Overrides:
setShowConstraintsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sSetShowConstraints
public void sSetShowConstraints(boolean show)
- Overrides:
sSetShowConstraintsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isShowLineBetweenCompartments
public boolean isShowLineBetweenCompartments()
-
sSetShowLineBetweenCompartments
public void sSetShowLineBetweenCompartments(boolean show)
-
updateChildrenVisibility
public void updateChildrenVisibility()
- Overrides:
updateChildrenVisibilityin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
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()
- Overrides:
internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getStereotypesToDisplay
protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()
- Overrides:
getStereotypesToDisplayin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
createCompartmentElements
public void createCompartmentElements()
- Specified by:
createCompartmentElementsin interfacecom.nomagic.magicdraw.uml.CompartmentSupport- Overrides:
createCompartmentElementsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getCollections
public java.util.List<com.nomagic.magicdraw.uml.CompartmentCollection> getCollections()
- Specified by:
getCollectionsin interfacecom.nomagic.magicdraw.uml.CompartmentSupport- Overrides:
getCollectionsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
createSmartNoteListener
private void createSmartNoteListener()
-
setSmartPropertyChangeListenerElement
public void setSmartPropertyChangeListenerElement(@CheckForNull Element element)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
public void sSetCommentDisplayMode(java.lang.String mode)
-
setCommentDisplayMode
public void setCommentDisplayMode(java.lang.String mode)
-
getCommentDisplayMode
public java.lang.String 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:ShapeElementIndicates whether this shape provides vertical centerlines to other shapes.- Returns:
- true if this shape provides vertical centerlines, false otherwise.
-
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.
-
sSetConstraintTextMode
public void sSetConstraintTextMode(java.lang.String mode)
- Overrides:
sSetConstraintTextModein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderView getHeaderView()
- Overrides:
getHeaderViewin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getNoteHeaderView
@Deprecated public com.nomagic.magicdraw.uml.symbols.shapes.NoteHeaderView getNoteHeaderView()
Deprecated.usegetHeaderView()
-
-