Class ClassifierView
- 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.ClassifierView
-
- 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.PortOwner,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
- Direct Known Subclasses:
ActorView,ArtifactView,ClassView,DataTypeView,EnumerationView,InformationItemView,InterfaceView,PrimitiveTypeView,SignalView,StereotypeView
@OpenApi public abstract class ClassifierView extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView implements com.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
-
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 static java.lang.StringALLMembers display options - display all members.static java.util.ListASSOCIATION_ENDS_DISPLAY_MODESList of available association ends display in attribute compartment mode.private com.nomagic.magicdraw.uml.symbols.shapes.AttributesCompartmentHelperattributesCompartmentHelperprivate static com.nomagic.ui.UnmodifiableInsetsCOMPARTMENT_INSETSstatic UnmodifiableDimensionDEFAULT_SIZE(package private) static floatDIFFERENCE_PERCENTParametrized class shape width and rectangle width difference length percentstatic java.lang.StringDO_NOT_DISPLAYprivate static java.util.Comparator<PresentationElement>DRAW_COMPARATORstatic java.lang.StringIN_COMPARTMENTstatic java.util.ListMEMBERS_DISPLAY_MODESList of available members display options.(package private) static floatMIN_WIDTH_PERCENTParametrized class rectangle width percent of whole class shape widthstatic java.lang.StringNOT_PRIVATEMembers display options - not private members.static java.lang.StringON_SHAPEstatic java.lang.StringONLY_PUBLICMembers display options - display only public members.private com.nomagic.magicdraw.uml.symbols.shapes.OperationsCompartmentHelperoperationsCompartmentHelperprivate intparamClassOverlapRectHeightParameterized class box and parameters view overlap rectangle height.private com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelperstructureCompartmentHelperstatic java.util.ListTAGGED_VALUES_DISPLAY_MODESstatic java.lang.StringWITHOUT_ASSOCIATIONAssociation ends display options - display association end if association symbol is not drawn in the diagram.-
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 Modifier Constructor Description ClassifierView()ClassifierView(PresentationElement parent)protectedClassifierView(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView header, boolean canDisplayStructure)
-
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 element)Adds new path element, and recalculates its position.voidaddPresentationElement(PresentationElement element, int index, boolean resize)voidatInsert()Invalidates object at insertbooleancanAddChild(PresentationElement obj)Check of given symbol can be added as child into this symbol.booleancanAddInstance(PresentationElement obj)Object view has no children.booleancanStereotypeIconGrow()ClassifierViewclone()Returns a copy of theElement.ContainerShapecreateBoundsShape(PathElement path, BoundsTransformation transformation)Creates bounding shape for intersection calculation.PropertycreateChangedCompartmentVisibilityProperty(com.nomagic.magicdraw.uml.symbols.shapes.Compartment compartment, boolean showCompartment)protected voidcreateSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)protected java.util.List<java.lang.Object>createStateForUpdateOperation()voiddispose()disposes ends of links when link is deletedprotected voiddrawShadow(java.awt.Graphics g)protected com.nomagic.ui.UnmodifiableInsetsgetAdditionalCompartmentInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level)protected intgetAdditionalHeaderHeightForPreferredBounds(java.awt.Rectangle headerBounds)com.nomagic.magicdraw.uml.symbols.shapes.AttributesCompartmentHelpergetAttributesCompartmentHelper()protected java.util.stream.Stream<com.nomagic.magicdraw.uml.symbols.shapes.BaseMembersCompartmentView>getBaseMembersCompartmentViewStream()java.awt.RectanglegetBoxBounds()com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderViewgetClassifierHeaderView()Deprecated.usegetHeaderView()com.nomagic.magicdraw.uml.symbols.shapes.CompartmentHelpergetCompartmentHelper(java.lang.Class modelElement)UnmodifiableDimensiongetDefaultDimension()java.util.Comparator<PresentationElement>getDrawComparator()ClassifiergetElement()Returns model element of this presentation element.EncapsulatedClassifiergetEncapsulatedClassifier()TypedElementgetEncapsulatedClassifierProvider()com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderViewgetHeaderView()java.lang.StringgetMembersDisplayMode()Gets members display mode.com.nomagic.magicdraw.uml.symbols.shapes.OperationsCompartmentHelpergetOperationsCompartmentHelper()protected java.util.stream.Stream<PresentationElement>getProxyPresentationElementsStream()com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelpergetStructureCompartmentHelper()com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentViewgetStructureCompartmentView()java.lang.StringgetTaggedValuesDisplayMode()private TemplateBindinggetTemplateBinding(TemplateableElement classifier)private ElementgetTemplateBindingSupplier()java.awt.DimensiongetTemplateSignatureExtent(boolean calculatePrefSize)com.nomagic.magicdraw.uml.symbols.shapes.TemplateSignatureViewgetTemplateSignatureView()private static intgetTemplateSignatureWidth(int classifierWidth, int signaturePrefWidth)voidinitialize()Initialize symbol and its children state.voidinternalApplyProperties(PropertyManager man)Applies properties from given property managerjava.util.Collection<? extends Element>internalGetElementsForLinkConnecting()Returns all possible element that can be used for some link connecting.ElementinternalGetElementToConnectLink(Element path, boolean asClient)Returns element that should be used for given link connecting.protected com.nomagic.ui.UnmodifiableInsetsinternalGetHeaderInsets()protected UnmodifiableDimensioninternalGetSelfManipulationPreferredSize()voidinternalLayoutChildren(boolean calculatePrefSize)voidinternalSilentApply()Silently applies all properties after initializationprotected voidinternalSpecificUpdate()booleanisChildLayoutable(PresentationElement child)Check if given child is "layoutable" - it means this shape controls bounds of child inside layoutChildren() method.booleanisCutMemberNames()booleanisShowFullType()Returns show full typebooleanisShowInherited()booleanisShowQualifiedNameInTaggedValues()booleanisShowTaggedValuesStereotypes()booleanisShowUML_2_0_Notation()booleanisSuppressAttributes()booleanisSuppressed(java.lang.Class modelElement)booleanisSuppressMethods()booleanisSuppressStructure()booleanisTemplateSignatureVisible()booleanisUseAdvancedColoring()Returns use advanced coloring flag valueprotected voidpreferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)booleanremoveConnectedPathElement(PathElement link)Removes path element.voidremovePresentationElement(PresentationElement element, boolean resizeParent)protected voidreshapeToPreferred()voidsAddPresentationElement(PresentationElement element, int index)Add given child to this symbol at given indexprotected voidselfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)voidsetCutMemberNames(boolean cut)voidsetMembersDisplayMode(java.lang.String membersDisplayMode)Sets members display mode.voidsetShowFullType(boolean show)Sets show full type for membersvoidsetShowInherited(boolean showInherited)Show inherited members in compartmentsvoidsetShowQualifiedNameInTaggedValues(boolean show)voidsetShowTaggedValuesStereotypes(boolean show)voidsetShowUML_2_0_Notation(boolean show)voidsetTaggedValuesDisplayMode(java.lang.String mode)voidsetUseAdvancedColoring(boolean use)Sets use advanced coloringvoidsRemovePresentationElement(PresentationElement element)Removes given childvoidsSetCutMemberNames(boolean cut)voidsSetMembersDisplayMode(java.lang.String membersDisplayMode)Sets members display mode.voidsSetShowFullType(boolean show)Sets show full type for membersvoidsSetShowInherited(boolean showInherited)Show inherited members in compartmentsvoidsSetShowQualifiedNameInTaggedValues(boolean show)voidsSetShowTaggedValuesStereotypes(boolean show)voidsSetShowUML_2_0_Notation(boolean b)voidsSetTaggedValuesDisplayMode(java.lang.String mode)voidsSetUseAdvancedColoring(boolean use)Sets use advanced coloringvoidupdateChildrenVisibility()-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, areBoxCompartmentsSuppressed, canHideBorder, canSuppressContent, childrenBoundsForReshape, createCompartmentElements, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotify, getBooleanCompartmentPropertyValue, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, 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, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, propertyChange, recursiveAutosize, removeCompartment, removeCompartment, setCollections, setCompartmentSuppressed, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setQNameDisplayMode, setReshapeMode, setSecondaryImageAndStereotypeDisplayMode, setShowCompartmentName, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, sSetWrapEnabled, updateBorderVisibility, updateCompartmentsVisibility, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, editName, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getStereotypesToDisplay, 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, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, 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, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, 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, getDynamicConfigurations, getDynamicStyleOwner, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, 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, 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
-
ON_SHAPE
public static final java.lang.String ON_SHAPE
- See Also:
- Constant Field Values
-
IN_COMPARTMENT
public static final java.lang.String IN_COMPARTMENT
- See Also:
- Constant Field Values
-
DO_NOT_DISPLAY
public static final java.lang.String DO_NOT_DISPLAY
- See Also:
- Constant Field Values
-
TAGGED_VALUES_DISPLAY_MODES
public static final java.util.List TAGGED_VALUES_DISPLAY_MODES
-
ALL
public static final java.lang.String ALL
Members display options - display all members.- See Also:
- Constant Field Values
-
ONLY_PUBLIC
public static final java.lang.String ONLY_PUBLIC
Members display options - display only public members.- See Also:
- Constant Field Values
-
NOT_PRIVATE
public static final java.lang.String NOT_PRIVATE
Members display options - not private members.- See Also:
- Constant Field Values
-
MEMBERS_DISPLAY_MODES
public static final java.util.List MEMBERS_DISPLAY_MODES
List of available members display options.- See Also:
ALL,ONLY_PUBLIC,NOT_PRIVATE
-
WITHOUT_ASSOCIATION
public static final java.lang.String WITHOUT_ASSOCIATION
Association ends display options - display association end if association symbol is not drawn in the diagram.- See Also:
- Constant Field Values
-
ASSOCIATION_ENDS_DISPLAY_MODES
public static final java.util.List ASSOCIATION_ENDS_DISPLAY_MODES
List of available association ends display in attribute compartment mode.- See Also:
ALL,WITHOUT_ASSOCIATION,DO_NOT_DISPLAY
-
DRAW_COMPARATOR
private static final java.util.Comparator<PresentationElement> DRAW_COMPARATOR
-
COMPARTMENT_INSETS
private static final com.nomagic.ui.UnmodifiableInsets COMPARTMENT_INSETS
-
DEFAULT_SIZE
public static final UnmodifiableDimension DEFAULT_SIZE
-
paramClassOverlapRectHeight
private int paramClassOverlapRectHeight
Parameterized class box and parameters view overlap rectangle height.
-
DIFFERENCE_PERCENT
static final float DIFFERENCE_PERCENT
Parametrized class shape width and rectangle width difference length percent- See Also:
- Constant Field Values
-
MIN_WIDTH_PERCENT
static final float MIN_WIDTH_PERCENT
Parametrized class rectangle width percent of whole class shape width- See Also:
- Constant Field Values
-
attributesCompartmentHelper
private com.nomagic.magicdraw.uml.symbols.shapes.AttributesCompartmentHelper attributesCompartmentHelper
-
operationsCompartmentHelper
private com.nomagic.magicdraw.uml.symbols.shapes.OperationsCompartmentHelper operationsCompartmentHelper
-
structureCompartmentHelper
private com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelper structureCompartmentHelper
-
-
Constructor Detail
-
ClassifierView
public ClassifierView()
-
ClassifierView
public ClassifierView(@CheckForNull PresentationElement parent)
-
ClassifierView
protected ClassifierView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView header, boolean canDisplayStructure)
-
-
Method Detail
-
getDefaultDimension
public UnmodifiableDimension getDefaultDimension()
-
getTemplateSignatureView
public com.nomagic.magicdraw.uml.symbols.shapes.TemplateSignatureView getTemplateSignatureView()
- Returns:
- TemplateSignatureView symbol
-
getStructureCompartmentView
public com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentView getStructureCompartmentView()
- Returns:
- StructureCompartment symbol
-
sSetShowFullType
public void sSetShowFullType(boolean show)
Sets show full type for members- Parameters:
show- show full type
-
setShowFullType
public void setShowFullType(boolean show)
Sets show full type for members- Parameters:
show- show full type
-
isShowFullType
public boolean isShowFullType()
Returns show full type- Returns:
- show full type
-
sSetUseAdvancedColoring
public void sSetUseAdvancedColoring(boolean use)
Sets use advanced coloring- Parameters:
use- use advanced coloring flag
-
setUseAdvancedColoring
public void setUseAdvancedColoring(boolean use)
Sets use advanced coloring- Parameters:
use- use advanced coloring flag
-
isUseAdvancedColoring
public boolean isUseAdvancedColoring()
Returns use advanced coloring flag value- Returns:
- advanced coloring value
-
clone
public ClassifierView 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
-
preferredSizeIgnoringOrientation
protected void preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)- Overrides:
preferredSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize)
- Overrides:
internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getTemplateSignatureWidth
private static int getTemplateSignatureWidth(int classifierWidth, int signaturePrefWidth)
-
getTemplateSignatureExtent
@CheckForNull public java.awt.Dimension getTemplateSignatureExtent(boolean calculatePrefSize)
-
getAdditionalHeaderHeightForPreferredBounds
protected int getAdditionalHeaderHeightForPreferredBounds(@CheckForNull java.awt.Rectangle headerBounds)- Overrides:
getAdditionalHeaderHeightForPreferredBoundsin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
createStateForUpdateOperation
protected java.util.List<java.lang.Object> createStateForUpdateOperation()
- Overrides:
createStateForUpdateOperationin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getTemplateBindingSupplier
@CheckForNull private Element getTemplateBindingSupplier()
-
atInsert
public void atInsert()
Description copied from class:PresentationElementInvalidates object at insert- Specified by:
atInsertin interfaceBaseElement- Overrides:
atInsertin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
dispose
public void dispose()
Description copied from class:PresentationElementdisposes ends of links when link is deleted- Specified by:
disposein interfaceBaseElement- Overrides:
disposein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getTemplateBinding
@CheckForNull private TemplateBinding getTemplateBinding(TemplateableElement classifier)
-
updateChildrenVisibility
public void updateChildrenVisibility()
- Overrides:
updateChildrenVisibilityin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
isSuppressAttributes
public boolean isSuppressAttributes()
-
isSuppressMethods
public boolean isSuppressMethods()
-
isSuppressed
public boolean isSuppressed(java.lang.Class modelElement)
-
isSuppressStructure
public boolean isSuppressStructure()
-
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.
-
initialize
public void initialize()
Description copied from class:PresentationElementInitialize symbol and its children state. Symbol must be initialized before doing any resize, painting and etc. These operations can lead to unpredictable results otherwise.
-
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canAddChild
public boolean canAddChild(PresentationElement obj)
Description copied from class:PresentationElementCheck of given symbol can be added as child into this symbol.- Overrides:
canAddChildin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
obj- symbol- Returns:
- true if symbol can be added
-
canStereotypeIconGrow
public boolean canStereotypeIconGrow()
- Returns:
- true if stereotype icon forces shape growing into all directions on resize
-
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
-
addPresentationElement
public void addPresentationElement(PresentationElement element, int index, boolean resize)
- Overrides:
addPresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sAddPresentationElement
public void sAddPresentationElement(PresentationElement element, int index)
Description copied from class:PresentationElementAdd given child to this symbol at given index- Overrides:
sAddPresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
element- child to addindex- index to add at. Can be -1
-
removePresentationElement
public void removePresentationElement(PresentationElement element, boolean resizeParent)
- Overrides:
removePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
sRemovePresentationElement
public void sRemovePresentationElement(PresentationElement element)
Description copied from class:PresentationElementRemoves given child- Overrides:
sRemovePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
element- child
-
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
-
sSetTaggedValuesDisplayMode
public void sSetTaggedValuesDisplayMode(java.lang.String mode)
-
setTaggedValuesDisplayMode
public void setTaggedValuesDisplayMode(java.lang.String mode)
-
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)
-
setCutMemberNames
public void setCutMemberNames(boolean cut)
-
sSetCutMemberNames
public void sSetCutMemberNames(boolean cut)
-
isCutMemberNames
public boolean isCutMemberNames()
-
getTaggedValuesDisplayMode
public java.lang.String getTaggedValuesDisplayMode()
-
getDrawComparator
public java.util.Comparator<PresentationElement> getDrawComparator()
-
sSetShowUML_2_0_Notation
public void sSetShowUML_2_0_Notation(boolean b)
-
isShowUML_2_0_Notation
public boolean isShowUML_2_0_Notation()
-
addConnectedPathElement
public boolean addConnectedPathElement(PathElement element)
Description copied from class:PathConnectorAdds new path element, and recalculates its position.- Parameters:
element- element to be added.- Returns:
- true if element was added
-
reshapeToPreferred
protected void reshapeToPreferred()
-
removeConnectedPathElement
public boolean removeConnectedPathElement(PathElement link)
Description copied from class:PathConnectorRemoves path element.- Parameters:
link- element to remove.- Returns:
- true if element was removed
-
setShowUML_2_0_Notation
public void setShowUML_2_0_Notation(boolean show)
-
isTemplateSignatureVisible
public boolean isTemplateSignatureVisible()
-
getAttributesCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.AttributesCompartmentHelper getAttributesCompartmentHelper()
-
getOperationsCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.OperationsCompartmentHelper getOperationsCompartmentHelper()
-
getCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.CompartmentHelper getCompartmentHelper(java.lang.Class modelElement)
-
getStructureCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelper getStructureCompartmentHelper()
-
internalGetElementToConnectLink
public Element internalGetElementToConnectLink(@CheckForNull Element path, boolean asClient)
Description copied from class:PresentationElementReturns element that should be used for given link connecting. All possible elements are return by method getElementsForLinkConnecting. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
- all possible elements
- See Also:
PresentationElement.getElementsForLinkConnecting()
-
internalGetElementsForLinkConnecting
public java.util.Collection<? extends Element> internalGetElementsForLinkConnecting()
Description copied from class:PresentationElementReturns all possible element that can be used for some link connecting. One of these elements are return in method getElementToConnectLink() in specific situation. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
- all possible elements
- See Also:
PresentationElement.getElementToConnectLink(Element, boolean)
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getAdditionalCompartmentInsets
protected com.nomagic.ui.UnmodifiableInsets getAdditionalCompartmentInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level)
- Overrides:
getAdditionalCompartmentInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getProxyPresentationElementsStream
protected java.util.stream.Stream<PresentationElement> getProxyPresentationElementsStream()
- Overrides:
getProxyPresentationElementsStreamin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
internalGetSelfManipulationPreferredSize
protected UnmodifiableDimension internalGetSelfManipulationPreferredSize()
- Overrides:
internalGetSelfManipulationPreferredSizein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getEncapsulatedClassifier
public EncapsulatedClassifier getEncapsulatedClassifier()
- Specified by:
getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
public TypedElement getEncapsulatedClassifierProvider()
- Specified by:
getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getBoxBounds
public java.awt.Rectangle getBoxBounds()
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
selfSpecificHeaderShapeDrawin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
drawShadow
protected void drawShadow(java.awt.Graphics g)
-
getMembersDisplayMode
public java.lang.String getMembersDisplayMode()
Gets members display mode.- Returns:
- mode
- See Also:
setMembersDisplayMode(String),ALL,NOT_PRIVATE,ONLY_PUBLIC
-
sSetMembersDisplayMode
public void sSetMembersDisplayMode(java.lang.String membersDisplayMode)
Sets members display mode. Does not update classifier symbol.- Parameters:
membersDisplayMode- display mode- See Also:
setMembersDisplayMode(String),ALL,NOT_PRIVATE,ONLY_PUBLIC
-
setMembersDisplayMode
public void setMembersDisplayMode(java.lang.String membersDisplayMode)
Sets members display mode.- Parameters:
membersDisplayMode- display mode- See Also:
setMembersDisplayMode(String),ALL,NOT_PRIVATE,ONLY_PUBLIC
-
isShowInherited
public boolean isShowInherited()
- Returns:
- true if inherited members are shown in compartments
-
sSetShowInherited
public void sSetShowInherited(boolean showInherited)
Show inherited members in compartments- Parameters:
showInherited- show
-
setShowInherited
public void setShowInherited(boolean showInherited)
Show inherited members in compartments- Parameters:
showInherited- show
-
isChildLayoutable
public boolean isChildLayoutable(PresentationElement child)
Description copied from class:ShapeElementCheck if given child is "layoutable" - it means this shape controls bounds of child inside layoutChildren() method. Not "layoutable" children are just moved together with parent, but layoutChildren() does not control their location.- Overrides:
isChildLayoutablein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
child- child- Returns:
- true if given child is layed out inside autosize method of this shape. False here
-
createChangedCompartmentVisibilityProperty
public Property createChangedCompartmentVisibilityProperty(com.nomagic.magicdraw.uml.symbols.shapes.Compartment compartment, boolean showCompartment)
- Specified by:
createChangedCompartmentVisibilityPropertyin interfacecom.nomagic.magicdraw.uml.symbols.CompartmentOwner- Overrides:
createChangedCompartmentVisibilityPropertyin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getElement
public Classifier getElement()
Description copied from class:PresentationElementReturns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
getElementin interfaceModelElementProvider- Overrides:
getElementin classPresentationElement- Returns:
- model element of this presentation element.
-
getBaseMembersCompartmentViewStream
protected java.util.stream.Stream<com.nomagic.magicdraw.uml.symbols.shapes.BaseMembersCompartmentView> getBaseMembersCompartmentViewStream()
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView getHeaderView()
- Overrides:
getHeaderViewin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getClassifierHeaderView
@Deprecated public com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView getClassifierHeaderView()
Deprecated.usegetHeaderView()
-
-