Class ClassView
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
com.nomagic.magicdraw.uml.symbols.shapes.ClassView
- 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:
ComponentView
,NodeView
Class model element symbol representation.
-
Field Summary
FieldsFields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ClassifierView
ALL, ASSOCIATION_ENDS_DISPLAY_MODES, DEFAULT_SIZE, MEMBERS_DISPLAY_MODES, NOT_PRIVATE, ONLY_PUBLIC, WITHOUT_ASSOCIATION
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, SHAPE_DISTANCE_FROM_EDGE
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, 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, peStyle, 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
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner
DO_NOT_DISPLAY, IN_COMPARTMENT, ON_SHAPE, TAGGED_VALUES_DISPLAY_MODES
-
Constructor Summary
ConstructorsConstructorDescriptionClassView
(PresentationElement parent) ClassView
(PresentationElement parent, boolean canShowStructure) ClassView
(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView header) ClassView
(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView header, boolean canShowStructure) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.void
addPresentationElement
(PresentationElement element, int index, boolean resize) If a specified object not inserted in this container then adds a new object view to the container.boolean
canAddInstance
(PresentationElement symbol) Object view has no children.boolean
clone()
protected void
createSmartListenerConfig
(List<SmartListenerConfig> configurations) com.nomagic.magicdraw.uml.symbols.shapes.BehaviorsCompartmentHelper
Gets behaviors compartment helper.com.nomagic.ui.UnmodifiableInsets
getChildrenInsets
(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) Returns model element of this presentation element.protected int
getHeaderInsetReduce
(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds) static int
getHeaderInsetReduce
(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds, com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView headerShape) com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView
com.nomagic.magicdraw.uml.symbols.shapes.PortsCompartmentHelper
void
internalApplyProperties
(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managervoid
Silently applies all properties after initializationboolean
boolean
Indicated if an element should show Rake Iconvoid
removeUseCaseSubject
(UseCaseView useCaseView) If given parent is ClassView the information about subject is removed from given UseCase.boolean
setDummyResizeMode
(boolean b) In dummy resize mode symbol may not resize according it children or move children on bounds changed and etc.void
sSetMembersDisplayMode
(String membersDisplayMode) Sets members display mode.void
sSetShowFullType
(boolean show) Sets show full type for membersvoid
sSetUseAdvancedColoring
(boolean use) Sets use advanced coloringMethods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ClassifierView
addConnectedPathElement, atInsert, canAddChild, canStereotypeIconGrow, createBoundsShape, createStateForUpdateOperation, dispose, drawShadow, getAdditionalCompartmentInsets, getAdditionalHeaderHeightForPreferredBounds, getAttributesCompartmentHelper, getBaseMembersCompartmentViewStream, getBoxBounds, getClassifierHeaderView, getCompartmentHelper, getDefaultDimension, getDrawComparator, getEncapsulatedClassifier, getEncapsulatedClassifierProvider, getMembersDisplayMode, getOperationsCompartmentHelper, getProxyPresentationElementsStream, getStructureCompartmentHelper, getStructureCompartmentView, getTaggedValuesDisplayMode, getTemplateSignatureExtent, getTemplateSignatureView, initialize, internalGetHeaderInsets, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetSelfManipulationPreferredSize, internalIsSuitableToConnectRelationship, internalLayoutChildren, internalSpecificUpdate, isChildLayoutable, isCutMemberNames, isShowFullType, isShowInherited, isShowQualifiedNameInTaggedValues, isShowTaggedValuesStereotypes, isShowUML_2_0_Notation, isSuppressAttributes, isSuppressed, isSuppressMethods, isSuppressStructure, isTemplateSignatureVisible, isUseAdvancedColoring, preferredSizeIgnoringOrientation, removeConnectedPathElement, removePresentationElement, reshapeToPreferred, sAddPresentationElement, selfSpecificHeaderShapeDraw, setCutMemberNames, setMembersDisplayMode, setShowFullType, setShowInherited, setShowQualifiedNameInTaggedValues, setShowTaggedValuesStereotypes, setShowUML_2_0_Notation, setTaggedValuesDisplayMode, setUseAdvancedColoring, sRemovePresentationElement, sSetCutMemberNames, sSetShowInherited, sSetShowQualifiedNameInTaggedValues, sSetShowTaggedValuesStereotypes, sSetShowUML_2_0_Notation, sSetTaggedValuesDisplayMode, updateChildrenVisibility
Methods 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, 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, updateName
Methods 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, 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, updateCompartmentsVisibility
Methods 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, switchWidthHeightIfVerticalOrientation
Methods 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, setFillColor, setFillColorForChildren, 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, 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, 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, supportsVisibleConnectedPathElementsIfSelfInvisible
Methods 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, 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, 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, useParentStyle
Methods 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, sGetID
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeable
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
getAbstractDiagramPresentationElement, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY
Methods inherited from interface com.nomagic.magicdraw.uml.CompartmentSupport
setVisibleElements
Methods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
Methods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, asPresentationElement, getProperty, getPropertyManager
-
Field Details
-
ACTIVE_BORDER_DISTANCE
public static final int ACTIVE_BORDER_DISTANCE- See Also:
-
-
Constructor Details
-
ClassView
public ClassView() -
ClassView
-
ClassView
-
ClassView
public ClassView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView header) -
ClassView
public ClassView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView header, boolean canShowStructure)
-
-
Method Details
-
isShowRakeIcon
public boolean isShowRakeIcon()Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
Indicated if an element should show Rake Icon- Overrides:
isShowRakeIcon
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Returns:
- true in case should show, else false
-
accept
Description copied from interface:MDElement
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details.- Specified by:
accept
in interfaceMDElement
- Overrides:
accept
in classClassifierView
- Parameters:
visitor
- which visits this element.- Throws:
Exception
-
isShowElementTypeAsLabel
public boolean isShowElementTypeAsLabel()- Overrides:
isShowElementTypeAsLabel
in classPresentationElement
-
getPortsCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.PortsCompartmentHelper getPortsCompartmentHelper() -
getBehaviorsCompartmentHelper
public com.nomagic.magicdraw.uml.symbols.shapes.BehaviorsCompartmentHelper getBehaviorsCompartmentHelper()Gets behaviors compartment helper.- Returns:
- behaviors compartment helper.
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classClassifierView
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classClassifierView
- Parameters:
changer
- new properties
-
clone
- Specified by:
clone
in interfaceBaseElement
- Overrides:
clone
in classClassifierView
-
createSmartListenerConfig
- Overrides:
createSmartListenerConfig
in classClassifierView
-
sSetShowFullType
public void sSetShowFullType(boolean show) Description copied from class:ClassifierView
Sets show full type for members- Overrides:
sSetShowFullType
in classClassifierView
- Parameters:
show
- show full type
-
sSetUseAdvancedColoring
public void sSetUseAdvancedColoring(boolean use) Description copied from class:ClassifierView
Sets use advanced coloring- Overrides:
sSetUseAdvancedColoring
in classClassifierView
- Parameters:
use
- use advanced coloring flag
-
sSetMembersDisplayMode
Description copied from class:ClassifierView
Sets members display mode. Does not update classifier symbol.- Overrides:
sSetMembersDisplayMode
in classClassifierView
- Parameters:
membersDisplayMode
- display mode- See Also:
-
setDummyResizeMode
public boolean setDummyResizeMode(boolean b) In dummy resize mode symbol may not resize according it children or move children on bounds changed and etc. This is more as hack for resize problems during load or diagram layout- Overrides:
setDummyResizeMode
in classcom.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
- Parameters:
b
- value- Returns:
- true if dummy mode was applied
-
getChildrenInsets
public com.nomagic.ui.UnmodifiableInsets getChildrenInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel) - Overrides:
getChildrenInsets
in classcom.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
- Parameters:
insetsLevel
- describes the level of insets- Returns:
- shape insets for children
-
checkElementOwnerOnChange
- Overrides:
checkElementOwnerOnChange
in classPresentationElement
-
canAddInstance
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classClassifierView
-
addPresentationElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
If a specified object not inserted in this container then adds a new object view to the container.- Overrides:
addPresentationElement
in classClassifierView
- Parameters:
element
- new PresentationElement objectindex
- index to add atresize
- resize parent
-
removeUseCaseSubject
If given parent is ClassView the information about subject is removed from given UseCase. If not, does nothing.- Parameters:
useCaseView
- use case
-
getHeaderInsetReduce
protected int getHeaderInsetReduce(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds) - Overrides:
getHeaderInsetReduce
in classShapeElement
-
getHeaderInsetReduce
public static int getHeaderInsetReduce(int edge, com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds, com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView headerShape) -
getElement
Description copied from class:PresentationElement
Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
getElement
in interfaceModelElementProvider
- Overrides:
getElement
in classClassifierView
- Returns:
- model element of this presentation element.
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.ClassHeaderView getHeaderView()- Overrides:
getHeaderView
in classClassifierView
-