Class ClassifierView
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.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.PropertyBasedPresentationElement,com.nomagic.magicdraw.uml.symbols.shapes.PortOwner,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,com.nomagic.magicdraw.uml.symbols.Wrapable,NameOwner,PropertyChangeListener,Cloneable,Comparable,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, com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMembers display options - display all members.static final ListList of available association ends display in attribute compartment mode.static final UnmodifiableDimensionstatic final ListList of available members display options.static final StringMembers display options - not private members.static final StringMembers display options - display only public members.static final StringAssociation 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_MODESFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS, SHAPE_DISTANCE_FROM_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
BORDER_ELEMENT_MARGIN_ALL, BORDER_ELEMENT_MARGIN_BOTTOM, BORDER_ELEMENT_MARGIN_LEFT, BORDER_ELEMENT_MARGIN_LEFT_RIGHT, BORDER_ELEMENT_MARGIN_MODES, BORDER_ELEMENT_MARGIN_NONE, BORDER_ELEMENT_MARGIN_RIGHT, BORDER_ELEMENT_MARGIN_TOP, BORDER_ELEMENT_MARGIN_TOP_BOTTOM, BOTTOM_EDGE, INSIDE_EDGE_POSITION, LEFT_EDGE, NEED_AUTOSIZE_FULL, NEED_AUTOSIZE_LAYOUT, NEED_AUTOSIZE_NONE, NO_EDGE, NULL_INSETS, ON_EDGE_POSITION, OUTSIDE_EDGE_POSITION, RIGHT_EDGE, SPACE, SPACE_INSETS, SPACE_INSETS_EMPTY_TOP_BOTTOM, TOP_EDGEFields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxyFields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, peStyle, SHADOW_WIDTH, SOLID_STROKEFields 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_MODESFields 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_SIMPLEFields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
DO_NOT_DISPLAY, IN_COMPARTMENT, ON_SHAPE, TAGGED_VALUES_DISPLAY_MODES -
Constructor Summary
ConstructorsModifierConstructorDescriptionClassifierView(PresentationElement parent) protectedClassifierView(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView header, boolean canDisplayStructure) -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.booleanaddConnectedPathElement(PathElement element) Adds a new path element, and recalculates its position.voidaddPresentationElement(PresentationElement element, int index, boolean resize) If a specified object not inserted in this container then adds a new object view to the container.voidatInsert()Invalidates object at insertbooleancanAddChild(PresentationElement symbol) Check of given symbol can be added as child into this symbol.booleancanAddInstance(PresentationElement symbol) Object view has no children.booleanclone()createBoundsShape(PathElement path, BoundsTransformation transformation) Creates bounding shape for intersection calculation.protected voidcreateSmartListenerConfig(List<SmartListenerConfig> configurations) Create collection of any properties used to distinguish during shape update if movePathElements should be calledvoiddispose()disposes ends of links when link is deletedprotected voidprotected com.nomagic.ui.UnmodifiableInsetsgetAdditionalCompartmentInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level) protected intgetAdditionalHeaderHeightForPreferredBounds(Rectangle headerBounds) com.nomagic.magicdraw.uml.symbols.shapes.AttributesCompartmentHelperprotected Stream<com.nomagic.magicdraw.uml.symbols.shapes.BaseMembersCompartmentView>com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderViewDeprecated.com.nomagic.magicdraw.uml.symbols.shapes.CompartmentHelpergetCompartmentHelper(Class modelElement) Returns model element of this presentation element.com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderViewGets members display mode.com.nomagic.magicdraw.uml.symbols.shapes.OperationsCompartmentHelperprotected Stream<PresentationElement>com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelpercom.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentViewgetTemplateSignatureExtent(boolean calculatePrefSize) com.nomagic.magicdraw.uml.symbols.shapes.TemplateSignatureViewvoidInitialize symbol and its children state.voidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected com.nomagic.ui.UnmodifiableInsetsCollection<? extends com.dassault_systemes.modeler.foundation.model.ModelElement>Returns all possible element that can be used for some relationship connecting.com.dassault_systemes.modeler.foundation.model.ModelElementinternalGetModelElementToConnectRelationship(com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient) Returns element that should be used for given relationship connecting.protected UnmodifiableDimensionbooleaninternalIsSuitableToConnectRelationship(com.dassault_systemes.modeler.foundation.model.RelationshipEnd<?> end) voidinternalLayoutChildren(boolean calculatePrefSize) voidSilently applies all properties after initializationprotected voidSpecific to every shape and model element update operation.booleanCheck if given child is "layoutable" - it means this shape controls the bounds of child inside layoutChildren() method.booleanbooleanReturns show full typebooleanbooleanbooleanbooleanbooleanbooleanisSuppressed(Class modelElement) booleanbooleanbooleanbooleanReturns use advanced coloring flag valueprotected voidpreferredSizeIgnoringOrientation(Dimension pref, int locationX, int locationY) booleanRemoves path element.voidremovePresentationElement(PresentationElement element, boolean resizeParent) Removes object view from container.protected voidvoidsAddPresentationElement(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(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) voidvoidsetUseAdvancedColoring(boolean use) Sets use advanced coloringvoidRemoves given childvoidsSetCutMemberNames(boolean cut) voidsSetMembersDisplayMode(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) voidvoidsSetUseAdvancedColoring(boolean use) Sets use advanced coloringvoidMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
canSuppressContent, getBooleanCompartmentPropertyValue, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getMiddlePointByIcon, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, internalBeforeUpdate, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeIcon, isShowRakeSymbol, isShowTaggedValues, isShowType, propertyChange, recursiveAutosize, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setQNameDisplayMode, setSecondaryImageAndStereotypeDisplayMode, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, updateBorderVisibility, updateNameMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
addCompartment, addCompartment, applyCompartmentsStyle, areBoxCompartmentsSuppressed, askDeleteDataConfirmation, asPresentationElement, autosizeShapesOnEdge, canChangeParent, canHideBorder, childrenBoundsForReshape, createCompartmentElements, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentDescriptor, getAdditionalCompartmentToLayout, getAdditionalRenderersToNotifyOnPropertiesChange, getChildrenBoundsForPreferredBounds, getChildrenInsets, getCollections, getCompartmentByID, getCompartmentIDs, getCompartments, getCompartmentsIDs, getCompartmentStyleDelegate, getConfiguredPreferredSizeForAutosize, getHeaderMaxYForShrinkableShape, getHeaderVerticalPositionForLayout, getLastHeaderShapeElementBottom, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, hasManipulatedChildrenIncludingIndirect, hasSharedModelElement, internalAddIndirectManipulatedChildrenRect, internalGetIndirectManipulatedChildrenRect, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isWrapEnabled, iterateCompartmentDelegates, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, removeCompartment, removeCompartment, setCollections, setCompartmentSuppressed, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setReshapeMode, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetName, sSetWrapEnabled, updateCompartmentsVisibilityMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
addExtraChildrenPrefSizePadding, adjustBoundsBeforeChange, 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, switchWidthHeightIfVerticalOrientationMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getDefaultChildrenInsets, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setFillColorForChildren, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sSetPresentationElementsMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSizeForDrawing, getSuspendShapeAutoResizeMode, hasManipulator, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShapeOnEdge, 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, updateLaterMethods 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, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, disposeChildren, disposePropertyChangeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findOwnerForChildElement, findOwnerForElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getOwnStyleDelegate, getParent, getParentSymbolStyleOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, initializeAndAutosize, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, intersects, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setElement, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLocation, sSetLocation, sSetModelElement, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties, useParentStyleMethods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getID, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, setResourceIDProvider, sGetIDMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeableMethods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointYMethods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElementsMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
ALL
Members display options - display all members.- See Also:
-
ONLY_PUBLIC
Members display options - display only public members.- See Also:
-
NOT_PRIVATE
Members display options - not private members.- See Also:
-
MEMBERS_DISPLAY_MODES
List of available members display options.- See Also:
-
WITHOUT_ASSOCIATION
Association ends display options - display association end if association symbol is not drawn in the diagram.- See Also:
-
ASSOCIATION_ENDS_DISPLAY_MODES
List of available association ends display in attribute compartment mode.- See Also:
-
ALLWITHOUT_ASSOCIATIONTaggedValuesDisplayModeOwner.DO_NOT_DISPLAY
-
DEFAULT_SIZE
-
-
Constructor Details
-
ClassifierView
public ClassifierView() -
ClassifierView
-
ClassifierView
protected ClassifierView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassifierHeaderView header, boolean canDisplayStructure)
-
-
Method Details
-
getDefaultDimension
- Overrides:
getDefaultDimensionin classShapeElement
-
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
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
preferredSizeIgnoringOrientation
- Overrides:
preferredSizeIgnoringOrientationin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize) - Overrides:
internalLayoutChildrenin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
getTemplateSignatureExtent
-
getAdditionalHeaderHeightForPreferredBounds
- Overrides:
getAdditionalHeaderHeightForPreferredBoundsin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
createStateForUpdateOperation
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeViewCreate collection of any properties used to distinguish during shape update if movePathElements should be called- Overrides:
createStateForUpdateOperationin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Returns:
- state
-
internalSpecificUpdate
protected void internalSpecificUpdate()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeViewSpecific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.- Overrides:
internalSpecificUpdatein classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- See Also:
-
AbstractHeaderShapeView.internalUpdatePresentationElement()
-
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
-
updateChildrenVisibility
public void updateChildrenVisibility()- Overrides:
updateChildrenVisibilityin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
isSuppressAttributes
public boolean isSuppressAttributes() -
isSuppressMethods
public boolean isSuppressMethods() -
isSuppressed
-
isSuppressStructure
public boolean isSuppressStructure() -
accept
Description copied from interface:MDElementMethod accepts a visitor, and calls method "visit<class name>(this)" of a 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.- Overrides:
initializein classShapeElement
-
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
canAddChild
Description copied from class:PresentationElementCheck of given symbol can be added as child into this symbol.- Overrides:
canAddChildin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
symbol- 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
Description copied from class:ShapeElementCreates bounding shape for intersection calculation.- Overrides:
createBoundsShapein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
path- pathtransformation- transformation- Returns:
- shape
-
addPresentationElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewIf a specified object not inserted in this container then adds a new object view to the container.- Overrides:
addPresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
element- new PresentationElement objectindex- index to add atresize- resize parent
-
sAddPresentationElement
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
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeViewRemoves object view from container.- Overrides:
removePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
element- object to removeresizeParent- resize parent
-
sRemovePresentationElement
Description copied from class:PresentationElementRemoves given child- Overrides:
sRemovePresentationElementin classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView- Parameters:
element- child
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView- Parameters:
changer- 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
- Specified by:
sSetTaggedValuesDisplayModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
setTaggedValuesDisplayMode
- Specified by:
setTaggedValuesDisplayModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
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
- Specified by:
getTaggedValuesDisplayModein interfacecom.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
-
getDrawComparator
- Overrides:
getDrawComparatorin classPresentationElement
-
sSetShowUML_2_0_Notation
public void sSetShowUML_2_0_Notation(boolean b) -
isShowUML_2_0_Notation
public boolean isShowUML_2_0_Notation() -
addConnectedPathElement
Description copied from class:PathConnectorAdds a new path element, and recalculates its position.- Overrides:
addConnectedPathElementin classPathConnector- Parameters:
element- element to be added.- Returns:
- true if an element was added
-
reshapeToPreferred
protected void reshapeToPreferred() -
removeConnectedPathElement
Description copied from class:PathConnectorRemoves path element.- Overrides:
removeConnectedPathElementin classPathConnector- Parameters:
link- element to remove.- Returns:
- true if an 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(Class modelElement) -
getStructureCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentHelper getStructureCompartmentHelper() -
internalGetModelElementToConnectRelationship
@CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement internalGetModelElementToConnectRelationship(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient) Description copied from class:PresentationElementReturns element that should be used for given relationship connecting. All possible elements are returned by methodPresentationElement.getModelElementsForRelationshipConnecting().- Overrides:
internalGetModelElementToConnectRelationshipin classPresentationElement- Returns:
- all possible elements
- See Also:
-
internalIsSuitableToConnectRelationship
public boolean internalIsSuitableToConnectRelationship(com.dassault_systemes.modeler.foundation.model.RelationshipEnd<?> end) - Overrides:
internalIsSuitableToConnectRelationshipin classPresentationElement- Returns:
- true if given possible elements (end of relationship) is suitable to connect given relationship to this symbol
-
internalGetModelElementsForRelationshipConnecting
public Collection<? extends com.dassault_systemes.modeler.foundation.model.ModelElement> internalGetModelElementsForRelationshipConnecting()Description copied from class:PresentationElementReturns all possible element that can be used for some relationship connecting.- Overrides:
internalGetModelElementsForRelationshipConnectingin classPresentationElement- Returns:
- all possible elements
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfigin classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalGetHeaderInsets
protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()- Overrides:
internalGetHeaderInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
getAdditionalCompartmentInsets
protected com.nomagic.ui.UnmodifiableInsets getAdditionalCompartmentInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level) - Overrides:
getAdditionalCompartmentInsetsin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
getProxyPresentationElementsStream
- Overrides:
getProxyPresentationElementsStreamin classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
internalGetSelfManipulationPreferredSize
- Overrides:
internalGetSelfManipulationPreferredSizein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Returns:
- size for manipulation which does not take into account the size of children on some specific conditions (for example, in case if wrapped text)
-
getEncapsulatedClassifier
- Specified by:
getEncapsulatedClassifierin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getEncapsulatedClassifierProvider
- Specified by:
getEncapsulatedClassifierProviderin interfacecom.nomagic.magicdraw.uml.symbols.shapes.PortOwner
-
getBoxBounds
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Overrides:
selfSpecificHeaderShapeDrawin classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
-
drawShadow
-
getMembersDisplayMode
Gets members display mode.- Returns:
- mode
- See Also:
-
sSetMembersDisplayMode
Sets members display mode. Does not update classifier symbol.- Parameters:
membersDisplayMode- display mode- See Also:
-
setMembersDisplayMode
Sets members display mode.- Parameters:
membersDisplayMode- display mode- See Also:
-
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
Description copied from class:ShapeElementCheck if given child is "layoutable" - it means this shape controls the bounds of child inside layoutChildren() method. Not "layoutable" children are just moved together with parents, but layoutChildren() do not control their location.- Overrides:
isChildLayoutablein classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView- Parameters:
child- child- Returns:
- true, if given child is layed-out inside autosize method of this shape. False here
-
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 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()
-
getHeaderView()