Class ContentShape
- 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.TextShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.ContentShape
-
- All Implemented Interfaces:
BaseElement
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
,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 ContentShape extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
Shape for displaying content of some package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
com.nomagic.magicdraw.uml.symbols.shapes.ContentShape.DiagramTypeComparator
-
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 private java.util.Map<java.lang.String,java.util.List<Diagram>>
diagramsByType
private static java.lang.String
END_BLOCK_DIAGRAM_TEXT
private static java.lang.String
END_BLOCK_DIAGRAMS_TEXT
private static java.lang.String
END_BLOCK_PACKAGE_TEXT
private com.nomagic.magicdraw.uml.ElementReference<Element>
packageElement
private static java.lang.String
START_BLOCK_DIAGRAM_TEXT
private static java.lang.String
START_BLOCK_DIAGRAMS_TEXT
private static java.lang.String
START_BLOCK_PACKAGE_TEXT
-
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
-
-
Constructor Summary
Constructors Constructor Description ContentShape()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Method accepts visitor, and calls method visit<class name>(this) of visitor .private void
addPackageListener()
private static void
appendDiagramsFromAdditionalContent(Element element, java.util.Collection<Diagram> diagrams)
void
atInsert()
Invalidates object at insertboolean
canDisplayHTMLText()
void
clearDiagramsMap()
ContentShape
clone()
Returns a copy of theElement
.private static java.lang.String
constructDiagramsBlock(java.lang.String diagramType, java.lang.String body)
private static java.lang.String
constructEndBlockMark(java.lang.String id)
private static java.lang.String
constructEndBlockPackageMark()
private java.lang.String
constructHeader()
private static java.lang.String
constructHTMLBlockForDiagram(NamedElement element)
private static java.lang.String
constructHyperLinkTag(Element element)
private static java.lang.String
constructIconTag(Element element)
private java.lang.String
constructPackageHeaderText()
private static java.lang.String
constructPackageNameText(Element pack)
private static java.lang.String
constructStartBlockMark(java.lang.String id)
private static java.lang.String
constructStartBlockPackageMark(java.lang.String id)
private java.lang.String
constructText()
void
dispose()
disposes ends of links when link is deletedprivate static java.lang.String
findDiagramElementBlock(java.lang.String text, java.lang.String id)
void
fixSpacesInHeader()
private java.util.Collection<Diagram>
getAllDisplayedDiagrams()
private java.util.Collection<java.lang.String>
getAvailableDiagramIDs()
private java.util.List<Diagram>
getAvailableDiagrams()
java.util.List<java.lang.String>
getDiagramsIdsFromHTMLSource()
private java.lang.String
getDiagramType(Diagram diagram)
private java.lang.String
getDiagramTypeFromMap(Diagram diagram)
private static java.lang.String
getDiagramTypeFromText(java.lang.String text, java.lang.String diagramBlock)
private static java.lang.String
getHeaderText(java.lang.String text)
Element
getPackage()
private static java.lang.String
insertBlockAtEnd(java.lang.String text, java.lang.String block)
private java.lang.String
insertBlockByOrder(java.lang.String text, java.lang.String block, Diagram diagram)
protected void
internalSpecificUpdate()
boolean
isHTMLText()
void
paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
void
propertyChange(java.beans.PropertyChangeEvent e)
Listens for property change it can be: data was edited text box was editedprivate void
registerListener(Element modelElement)
private java.lang.String
removeDiagramBlock(java.lang.String text, Diagram diagram)
private java.lang.String
removeDiagramBlock(java.lang.String text, Diagram diagram, java.lang.String diagramType)
private static java.lang.String
removeDiagramBlock(java.lang.String text, java.lang.String id)
private static java.lang.String
removeHeaderPackageName(java.lang.String text)
private static java.lang.String
removeLastNewLineSymbol(java.lang.String text)
private void
removePackageListener()
private java.lang.String
removeUnavailableDiagrams(java.lang.String text)
private static java.lang.String
replaceIconPath(java.lang.String block, Element element)
static java.lang.String
replaceString(java.lang.String text, java.lang.String oldString, java.lang.String newString)
void
setPackage(Element aPackage)
private void
sortDiagrams(java.lang.String text, java.util.List<Diagram> diagrams)
private void
sortDiagramsByType(java.util.List<Diagram> diagrams)
private void
unregisterListener(Element modelElement)
private static java.lang.String
updateDiagramName(java.lang.String block, NamedElement namedElement)
private java.lang.String
updateHeader(java.lang.String text)
static java.lang.String
wrapDiagramsBlock(java.lang.String diagramType, java.lang.String body)
Wraps given body inside diagram blog tags-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
createTextArea, editName, getHumanName, getName, getNameLabel, getTextObject, getUserText, hasText, internalApplyProperties, internalGetSelfManipulationPreferredSize, internalSilentApply, isHeaderOrientationVertical, isWrapEnabled, rotateBoundsForHeaderOrientation, setAutosize, setHeaderOrientationVertical, setHTMLText, setName, setTextObject, setWrapEnabled, sSetAutosize, sSetHeaderOrientationVertical, sSetHTMLText, sSetName, sSetTextObject, sSetWrapEnabled
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, canAddInstance, correctChildrenVector, coversPoint, createBoundsShape, createStateForUpdateOperation, doInternalLayoutChildren, getAdditionalHeaderHeightForPreferredBounds, getChildrenBoundsForPreferredBounds, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderMaxYForShrinkableShape, getHeaderObject, getHeaderVerticalPosition, getHeaderVerticalPositionForLayout, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, getStereotypesToDisplay, internalGetHeaderBoundsForPreferredBounds, internalGetHeaderInsets, internalLayoutChildren, internalPostSpecificUpdate, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isBorderVisible, isChildLayoutable, isContentHidden, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, preferredSizeIgnoringOrientation, setHeaderObject, setHeaderVerticalPosition, setTextEditable, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElement, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canAddChild, canMoveChildOutside, checkShowsProxy, childrenBoundsForReshape, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenInsets, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedChildrenIncludingIndirect, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAddIndirectManipulatedChildrenRect, internalAppendChildRect, internalGetChildAt, internalGetIndirectManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, isChildMovable, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, recursiveAutosize, removePresentationElement, 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, getDefaultDimension, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getPreferredDimensionForAutosize, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, onChildEdgeChange, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, createSmartListenerConfig, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, 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, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElement, getElementNumberDisplayMode, 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, internalBeforeUpdate, 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, sSetElement, 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
-
diagramsByType
private java.util.Map<java.lang.String,java.util.List<Diagram>> diagramsByType
-
packageElement
private com.nomagic.magicdraw.uml.ElementReference<Element> packageElement
-
END_BLOCK_DIAGRAM_TEXT
private static final java.lang.String END_BLOCK_DIAGRAM_TEXT
- See Also:
- Constant Field Values
-
START_BLOCK_DIAGRAM_TEXT
private static final java.lang.String START_BLOCK_DIAGRAM_TEXT
- See Also:
- Constant Field Values
-
END_BLOCK_PACKAGE_TEXT
private static final java.lang.String END_BLOCK_PACKAGE_TEXT
- See Also:
- Constant Field Values
-
START_BLOCK_PACKAGE_TEXT
private static final java.lang.String START_BLOCK_PACKAGE_TEXT
- See Also:
- Constant Field Values
-
START_BLOCK_DIAGRAMS_TEXT
private static final java.lang.String START_BLOCK_DIAGRAMS_TEXT
- See Also:
- Constant Field Values
-
END_BLOCK_DIAGRAMS_TEXT
private static final java.lang.String END_BLOCK_DIAGRAMS_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
canDisplayHTMLText
public boolean canDisplayHTMLText()
- Overrides:
canDisplayHTMLText
in classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
isHTMLText
public boolean isHTMLText()
- Specified by:
isHTMLText
in interfacecom.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
- Overrides:
isHTMLText
in classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
getDiagramsIdsFromHTMLSource
public java.util.List<java.lang.String> getDiagramsIdsFromHTMLSource()
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
getDiagramTypeFromText
@CheckForNull private static java.lang.String getDiagramTypeFromText(java.lang.String text, java.lang.String diagramBlock)
-
removeUnavailableDiagrams
private java.lang.String removeUnavailableDiagrams(java.lang.String text)
-
getAvailableDiagramIDs
private java.util.Collection<java.lang.String> getAvailableDiagramIDs()
-
atInsert
public void atInsert()
Description copied from class:PresentationElement
Invalidates object at insert- Specified by:
atInsert
in interfaceBaseElement
-
dispose
public void dispose()
Description copied from class:PresentationElement
disposes ends of links when link is deleted- Specified by:
dispose
in interfaceBaseElement
-
getAvailableDiagrams
private java.util.List<Diagram> getAvailableDiagrams()
-
appendDiagramsFromAdditionalContent
private static void appendDiagramsFromAdditionalContent(Element element, java.util.Collection<Diagram> diagrams)
-
sortDiagrams
private void sortDiagrams(java.lang.String text, java.util.List<Diagram> diagrams)
-
sortDiagramsByType
private void sortDiagramsByType(java.util.List<Diagram> diagrams)
-
clearDiagramsMap
public void clearDiagramsMap()
-
getAllDisplayedDiagrams
private java.util.Collection<Diagram> getAllDisplayedDiagrams()
-
updateHeader
private java.lang.String updateHeader(java.lang.String text)
-
removeHeaderPackageName
private static java.lang.String removeHeaderPackageName(java.lang.String text)
-
getHeaderText
@CheckForNull private static java.lang.String getHeaderText(java.lang.String text)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
Description copied from class:PresentationElement
Listens for property change it can be: data was edited text box was edited- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
removeDiagramBlock
private java.lang.String removeDiagramBlock(java.lang.String text, Diagram diagram, java.lang.String diagramType)
-
removeDiagramBlock
private java.lang.String removeDiagramBlock(java.lang.String text, Diagram diagram)
-
removeDiagramBlock
private static java.lang.String removeDiagramBlock(java.lang.String text, java.lang.String id)
-
removeLastNewLineSymbol
private static java.lang.String removeLastNewLineSymbol(java.lang.String text)
-
getDiagramTypeFromMap
private java.lang.String getDiagramTypeFromMap(Diagram diagram)
-
constructHeader
private java.lang.String constructHeader()
-
constructPackageHeaderText
private java.lang.String constructPackageHeaderText()
-
constructPackageNameText
private static java.lang.String constructPackageNameText(@CheckForNull Element pack)
-
constructText
private java.lang.String constructText()
-
registerListener
private void registerListener(Element modelElement)
-
unregisterListener
private void unregisterListener(Element modelElement)
-
insertBlockByOrder
private java.lang.String insertBlockByOrder(java.lang.String text, java.lang.String block, Diagram diagram)
-
getDiagramType
private java.lang.String getDiagramType(Diagram diagram)
-
insertBlockAtEnd
private static java.lang.String insertBlockAtEnd(java.lang.String text, java.lang.String block)
-
constructDiagramsBlock
private static java.lang.String constructDiagramsBlock(java.lang.String diagramType, java.lang.String body)
-
wrapDiagramsBlock
public static java.lang.String wrapDiagramsBlock(java.lang.String diagramType, java.lang.String body)
Wraps given body inside diagram blog tags- Parameters:
diagramType
- typebody
- body- Returns:
- text
-
constructIconTag
private static java.lang.String constructIconTag(Element element)
-
constructHyperLinkTag
private static java.lang.String constructHyperLinkTag(Element element)
-
constructEndBlockMark
private static java.lang.String constructEndBlockMark(java.lang.String id)
-
constructStartBlockMark
private static java.lang.String constructStartBlockMark(java.lang.String id)
-
constructEndBlockPackageMark
private static java.lang.String constructEndBlockPackageMark()
-
constructStartBlockPackageMark
private static java.lang.String constructStartBlockPackageMark(java.lang.String id)
-
constructHTMLBlockForDiagram
private static java.lang.String constructHTMLBlockForDiagram(NamedElement element)
-
replaceString
public static java.lang.String replaceString(java.lang.String text, java.lang.String oldString, java.lang.String newString)
-
updateDiagramName
private static java.lang.String updateDiagramName(java.lang.String block, NamedElement namedElement)
-
findDiagramElementBlock
private static java.lang.String findDiagramElementBlock(java.lang.String text, java.lang.String id)
-
replaceIconPath
private static java.lang.String replaceIconPath(java.lang.String block, Element element)
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
paintSelf
in classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
getPackage
@CheckForNull public Element getPackage()
-
setPackage
public void setPackage(Element aPackage)
-
addPackageListener
private void addPackageListener()
-
removePackageListener
private void removePackageListener()
-
clone
public ContentShape clone()
Description copied from class:ElementImpl
Returns a copy of theElement
.- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
- Returns:
- the cloned object
-
fixSpacesInHeader
public void fixSpacesInHeader()
-
-