Class TextBoxView
- 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.TextBoxView
-
- 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
- Direct Known Subclasses:
DiagramPropertiesShape
@OpenApi public class TextBoxView extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeViewTextBoxView represents - text box in UML diagrams
-
-
Nested Class Summary
-
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 static UnmodifiableDimensionDEFAULT_LABEL_SIZEprivate static UnmodifiableDimensionDEFAULT_SIZEprivate booleanmForcedToBeFillableIf parent is shape element, than box can't be filled with color If this property is set to true - it becomes fillableprivate booleanmLabelModeIs it some label or standalone TextBoxViewprivate booleanmStereotypeLabel-
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 TextBoxView()TextBoxView(PresentationElement parent)TextBoxView(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.TextAreaView area)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .booleancanBeAutosized()booleancanChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, BaseElement newParent, boolean changeElementParent)Returns true, if element can change parent.booleancanDisplayHTMLText()protected booleancanFill()protected booleancheckShowsProxy()voiddraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)Draw symbol using renderer or symbol specific draw if renderer is not available.PropertygetActualProperty(java.lang.String id)Returns actual property.protected UnmodifiableDimensiongetDefaultDimension()PresentationElementgetDynamicStyleOwner()PresentationElementgetParentSymbolPropertyOwner()Returns parent symbol property manager to which this symbol delegates symbol property related functionality.voidinternalApplyProperties(PropertyManager man)Applies properties from given property managercom.nomagic.ui.UnmodifiableInsetsinternalGetHeaderInsets()voidinternalSilentApply()Silently applies all properties after initializationbooleanisLabelMode()booleanisStereotypeLabel()static booleanisTextBoxLabelMode(PresentationElement symbol)Checks if given symbol is label text boxvoidminimumSizeForShrinkingIgnoringOrientation(java.awt.Dimension size, int locationX, int locationY)booleanmustShowContextMenu()protected booleanneedAdjustToMaximumDimension()Check if shape should be resized to a maximum size.voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)booleanprovidesHorizontalCenterline()booleanprovidesVerticalCenterline()voidresizeParent()Method that initiates parent resize to accommodate children if some child's bounds are changed.protected voidrotateBoundsForHeaderOrientation(java.awt.Rectangle bounds)voidsetForcedToBeFillable(boolean forcedToBeFillable)voidsetHeaderOrientationVertical(boolean value)voidsetLabelMode(boolean value)voidsetStereotypeLabel(boolean v)voidsetVisibility(com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility visibility)Sets element visibility flag.booleansnapsToCenterlines()voidsSetVisibility(com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility visibility)Sets element visibility flag.booleanuseParentProperties()Does this element uses parent properties or has it own?-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
clone, createTextArea, editName, getHumanName, getName, getNameLabel, getTextObject, getUserText, hasText, internalGetSelfManipulationPreferredSize, isHeaderOrientationVertical, isHTMLText, isWrapEnabled, setAutosize, 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, internalLayoutChildren, internalPostSpecificUpdate, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalSpecificUpdate, internalUpdatePresentationElement, invalidate, isBorderVisible, isChildLayoutable, isContentHidden, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, 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, 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, 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, getPreferredDimensionForAutosize, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, onChildEdgeChange, prepareForShadowDrawing, resetCalculatePreferredRegardingChildren, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setReshapeMode, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, createSmartListenerConfig, dispose, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, sRemoveConnectedPathElement, sSetConnectedPathElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsert, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, disposeListener, 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, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getElement, getElementNumberDisplayMode, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRealPropertyManager, getRenderer, getSelected, getStereotypeColor, getStereotypeFont, getStringPropertyValue, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, 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, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, propertyChange, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, 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
-
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
-
DEFAULT_SIZE
private static final UnmodifiableDimension DEFAULT_SIZE
-
DEFAULT_LABEL_SIZE
private static final UnmodifiableDimension DEFAULT_LABEL_SIZE
-
mLabelMode
private boolean mLabelMode
Is it some label or standalone TextBoxView
-
mStereotypeLabel
private boolean mStereotypeLabel
-
mForcedToBeFillable
private boolean mForcedToBeFillable
If parent is shape element, than box can't be filled with color If this property is set to true - it becomes fillable
-
-
Constructor Detail
-
TextBoxView
public TextBoxView()
-
TextBoxView
public TextBoxView(@CheckForNull PresentationElement parent)
-
TextBoxView
public TextBoxView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.TextAreaView area)
-
-
Method Detail
-
isTextBoxLabelMode
public static boolean isTextBoxLabelMode(@CheckForNull PresentationElement symbol)Checks if given symbol is label text box- Parameters:
symbol- given symbol- Returns:
- true if symbol is TextBoxView with label mode
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
-
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.
-
setForcedToBeFillable
public void setForcedToBeFillable(boolean forcedToBeFillable)
-
resizeParent
public void resizeParent()
Description copied from class:PresentationElementMethod that initiates parent resize to accommodate children if some child's bounds are changed.
-
setLabelMode
public void setLabelMode(boolean value)
-
isLabelMode
public boolean isLabelMode()
-
canBeAutosized
public boolean canBeAutosized()
-
canChangeParent
public boolean canChangeParent(java.util.Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent)
Description copied from class:PresentationElementReturns true, if element can change parent.- Parameters:
movedTogether- collection of the elements, whose will change the parent together with this.newParent- new symbol parentchangeElementParent- change element parent- Returns:
- true if parent of symbol can be changed
-
useParentProperties
public boolean useParentProperties()
Description copied from class:PresentationElementDoes this element uses parent properties or has it own?- Overrides:
useParentPropertiesin classPresentationElement- Returns:
- true, if element does not have properties and uses parent's.
-
getParentSymbolPropertyOwner
@CheckForNull public PresentationElement getParentSymbolPropertyOwner()
Description copied from class:PresentationElementReturns parent symbol property manager to which this symbol delegates symbol property related functionality.- Returns:
- parent parent symbol to delegate or null if this symbol does not delegate.
-
getDynamicStyleOwner
public PresentationElement getDynamicStyleOwner()
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView- 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.TextShapeView
-
internalGetHeaderInsets
public com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
setStereotypeLabel
public void setStereotypeLabel(boolean v)
-
isStereotypeLabel
public boolean isStereotypeLabel()
-
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
paintSelfin classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
getActualProperty
public Property getActualProperty(java.lang.String id)
Description copied from class:PresentationElementReturns actual property. If use parent properties, returns property from parent else returns its own property
-
canDisplayHTMLText
public boolean canDisplayHTMLText()
- Overrides:
canDisplayHTMLTextin classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
mustShowContextMenu
public boolean mustShowContextMenu()
-
canFill
protected boolean canFill()
- Returns:
- true if symbol can be filled with some color
-
sSetVisibility
public void sSetVisibility(com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility visibility)
Description copied from class:PresentationElementSets element visibility flag.- Parameters:
visibility- flag value
-
setVisibility
public void setVisibility(com.nomagic.magicdraw.uml.symbols.PresentationElementVisibility visibility)
Description copied from class:PresentationElementSets element visibility flag.- Parameters:
visibility- flag value
-
checkShowsProxy
protected boolean checkShowsProxy()
- Overrides:
checkShowsProxyin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
providesVerticalCenterline
public boolean providesVerticalCenterline()
- Specified by:
providesVerticalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
providesHorizontalCenterline
public boolean providesHorizontalCenterline()
- Specified by:
providesHorizontalCenterlinein interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
snapsToCenterlines
public boolean snapsToCenterlines()
- Specified by:
snapsToCenterlinesin interfacecom.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
-
draw
public void draw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
Description copied from class:PresentationElementDraw symbol using renderer or symbol specific draw if renderer is not available. Also draw adornments.- Parameters:
context- paint context
-
minimumSizeForShrinkingIgnoringOrientation
public void minimumSizeForShrinkingIgnoringOrientation(java.awt.Dimension size, int locationX, int locationY)- Overrides:
minimumSizeForShrinkingIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
needAdjustToMaximumDimension
protected boolean needAdjustToMaximumDimension()
Description copied from class:ShapeElementCheck if shape should be resized to a maximum size.- Returns:
- true if need adjustments
-
setHeaderOrientationVertical
public void setHeaderOrientationVertical(boolean value)
- Overrides:
setHeaderOrientationVerticalin classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
rotateBoundsForHeaderOrientation
protected void rotateBoundsForHeaderOrientation(java.awt.Rectangle bounds)
- Overrides:
rotateBoundsForHeaderOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
-
-