Class AssociationClassView
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.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
com.nomagic.magicdraw.uml.symbols.paths.AssociationView
com.nomagic.magicdraw.uml.symbols.paths.AssociationClassView
- All Implemented Interfaces:
BaseElement,com.nomagic.magicdraw.uml.CompartmentSupport,MDElement,ModelElementProvider,com.nomagic.magicdraw.uml.symbols.LabelOwner,com.nomagic.magicdraw.uml.symbols.LineJumpDrawer,com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,,LinkAttributeView> com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds<com.nomagic.magicdraw.uml.symbols.shapes.LinkEndView>,com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
@OpenApi
public class AssociationClassView
extends AssociationView
implements com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
NON_NAVIGABILITY_DISTANCEFields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathElement
BEZIER, LINE_STYLE, OBLIQUE, RECTILINEARFields 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.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.clone()protected voidRemoves all children from itself.Return bounds of the symbol that must be repainted.Returns model element of this presentation element.voidinternalMovedAsToSelf(int dx, int dy) This is an internal method to notify a path that it was moved by connecting shape as the path "to self"booleanbooleanisSubElement(PresentationElement element) voidprotected voidnotifyBreakPointsChangedForElement(PresentationElement view, Point location) Notify about changed break pointsvoidRemoves given childvoidsetClassView(ClassView classView) voidsetElement(Element element) voidsetLinkAttributeView(LinkAttributeView linkAttributeView) voidsimpleSetBounds(Rectangle rct) calls break point vector changed method.voidsSetClassView(ClassView classView) voidsSetElement(Element element) voidsSetLinkAttributeView(LinkAttributeView linkAttributeView) Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.AssociationView
canAddInstance, canHavePaths, constructNameTextToDisplay, createNameLabelWrapper, createSmartListenerConfig, getAssociationNameBox, getModelElementForClientEndShape, getModelElementForSupplierEndShape, getNameLabelWrapper, internalApplyProperties, propertyChange, updateNameBoxMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
cacheActualDrawPoints, drawNavigability, getActualClientDrawPoint, getActualSupplierDrawPoint, getRoleA, getRoleB, ownsRoleA, ownsRoleB, paintSelfMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
calculateAlternativePoints, calculateAltPointsFromEndShapes, getAltPoint1, getAltPoint2, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getClientEndShape, getSupplierConnectionType, getSupplierEndShape, internalUpdatePresentationElement, layoutLabelOnNotifyBreakPointsChanged, notifyBreakPointsChanged, setAltPoint1, setAltPoint2, setLocationForChild, sSetClientEndShape, sSetModelElementsForPathEndShapes, sSetSupplierEndShapeMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
asPresentationElement, canDisplayConveyedInformation, createCompartmentElements, createInformationFlowSmartListenerConfig, createLabels, createStereotypeLabelWrapper, drawConveyedInformation, getCollections, getConstraintLabelBox, getConstraintLabelWrapper, getConstraintTextMode, getConveyedInformationSourceToTargetLabelWrapper, getConveyedInformationTargetToSourceLabelWrapper, getConveyedSourceToTargetLabelBox, getConveyedTargetToSourceLabelBox, getDSLStereotypesDisplayMode, getElementLabel, getElementPropertiesLabelBox, getElementPropertiesLabelWrapper, getPathAdornmentSize, getStereotypeLabelBox, getStereotypeLabelWrapper, getStereotypesDisplayMode, getTaggedValueLabelBox, getTaggedValueLabelWrapper, internalGetLogicalClientElementForConveyedInformation, isShowConstraints, isShowConveyedSourceToTarget, isShowConveyedTargetToSource, isShowElementLabel, paintChildren, setCollections, setConstraintTextMode, setDSLStereotypesDisplayMode, setShowConstraints, setShowConveyedSourceToTarget, setShowConveyedTargetToSource, setStereotypesDisplayMode, setVisibleElements, setVisibleElements, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetShowConstraints, sSetShowConveyedSourceToTarget, sSetShowConveyedTargetToSource, sSetShowTaggedValues, sSetStereotypesDisplayModeMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
addLabel, addPresentationElement, canAddChild, clearShowsProxy, editName, getLabelHandler, getManipulatedElementAt, getName, getNameLabelBox, getPresentationElementAt, getPresentationElementIndex, getPresentationElements, getProxyPresentationElementsStream, internalSilentApply, isChildVisible, isLabelWrapText, isNameWrapped, isShowNameBox, recursiveAutosize, removeLabel, sAddPresentationElement, setName, setNameResizeLabel, setNameWrapped, setPresentationElements, setShowNameBox, setSuspendLabelAutoDisplayMode, setSuspendShapeAutoResizeMode, setTextEditable, sRemovePresentationElement, sSetNameWrapped, sSetPresentationElements, sSetShowNameBox, sSetSuspendLabelAutoDisplayMode, updateChildrenMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathElement
addConnectedPathElement, addLineJumps, applyStrokeForLineDrawing, askDeleteDataConfirmation, atInsert, breakPointsChanged, cacheValues, calculatePathBounds, canChangeClient, canChangeLineStyle, canChangeSupplier, canClearBreakPoints, clearClientTranslation, clearRegisteredLineJumpInfos, clearSupplierTranslation, connectModelElement, coversPoint, createFillStrategy, dispose, draw, draw, dynamicPathIcon, dynamicPathIcon, findOwnerForElement, findOwnerForElement, getAllBreakPoints, getBezierPath, getBezierPath, getBounds, getBreakPoint, getBreakPointCount, getBreakPoints, getCachedActualClientDrawPoint, getCachedActualSupplierDrawPoint, getClient, getClientConnectionType, getClientDrawPoint, getClientPoint, getCustomClientPoint, getCustomStereotypeIcon, getCustomSupplierPoint, getDefaultParentForData, getIndexOfCoveredPath, getIndexOfCoveredPathInternal, getIntersection, getLineJumpStartAngle, getLinkLineStyle, getMiddlePoint, getNearestLinkPart, getNearestPoint, getNewBreakPointIndex, getNewPointByTheLink, getNextEnd, getNextPoint, getNotCopyBounds, getOwnStyleDelegate, getPathIcon, getPathPainter, getPaths, getPointOnPath, getPreviousPoint, getSupplier, getSupplierDrawPoint, getSupplierPoint, getSuspendShapeAutoResizeMode, handleRemoveBreaksAction, hasClientPoint, hasManipulator, hasSharedModelElement, hasSupplierPoint, internalGetBoundsShape, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalSnapToGrid, intersects, intersectsInternal, isAlwaysToSelf, isBezier, isBezierIntersects, isBreakable, isConnectable, isConnectable, isDrawLineJumps, isFixed, isLinkLineStyleDefined, isOblique, isRectilinear, isRounded, isSmartLayoutNeeded, isSnapToGrid, isToSelf, isUseFlowLayoutLogic, isVertical, makeRectilinear, makeRectilinear, moveLinkToClientParent, movePathElement, needsToMoveOtherEnd, nextStyle, notifyRepaintManager, notifyRepaintManager, optimizeLoops, preDisposeOnUpdate, prepareForLineDrawing, registerLineJumpInfos, registerLineJumpStartAngle, removeBreakPoints, removeBreaks, removeRedundantBreakPoints, removeUnnecessaryBreakPoints, resetCache, resizeParent, sAddBreakPoint, sClearBreakPoints, setBounds, setBreakable, setBreakPoints, setCachedPathBounds, setClient, setClientPoint, setCustomClientPoint, setCustomSupplierPoint, setLineJumpPlace, setLinkLineStyle, setPathPainter, setRectilinear, setRounded, setSmartLayoutNeeded, setSupplier, setSupplierPoint, sSetBounds, sSetBreakable, sSetBreakPoint, sSetBreakPoints, sSetClient, sSetClientPoint, sSetLinkLineStyle, sSetParent, sSetRounded, sSetSupplier, sSetSupplierPoint, sSetSuspendShapeAutoResizeMode, swapEnds, translateClientPoint, translateSupplierPoint, useOtherExistingElementMethods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
checkShowsProxy, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, movePathElements, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements, sSetVisibility, supportsVisibleConnectedPathElementsIfSelfInvisibleMethods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addPresentationElementWithoutResize, addProperty, adjustBoundsBeforeChange, adjustChildBounds, adjustChildBoundsForMoving, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, autosizeAndResizeParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canChangeParent, canFill, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, childrenForMoving, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createPresentationElementStyle, createPropertyChangeListener, disposePropertyChangeListener, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findOwnerForChildElement, findPresentationElement, firePropertyChange, generateID, getAbstractDiagramPresentationElement, getActualElement, getAdditionalRenderersToNotifyOnPropertiesChange, getAssignableModelElementsClasses, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getManipulationPreferredDimension, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolStyleOwner, getPreferredBounds, getPreferredDimension, getPreferredDimensionForAutosize, 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, initialize, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, intersects, invalidate, isCanChildrenChangeEdge, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintChildrenBackground, paintSelfBackground, prepareForLineDrawing, prepareForShadowDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDummyResizeMode, setFillColor, 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, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateLater, 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, sGetID, toStringMethods 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.LabelOwner
getModelElementMethods inherited from interface com.nomagic.magicdraw.uml.symbols.LineJumpDrawer
getLineWidthMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProjectMethods inherited from interface com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds
asContainerLinkViewMethods inherited from interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
addProperty, getProperty, getPropertyManager
-
Constructor Details
-
AssociationClassView
public AssociationClassView() -
AssociationClassView
-
-
Method Details
-
setClassView
-
sSetLinkAttributeView
-
sSetClassView
-
setLinkAttributeView
-
clone
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
getClassView
-
getLinkAttributeView
-
isAnchoredShapeMandatory
public boolean isAnchoredShapeMandatory()- Specified by:
isAnchoredShapeMandatoryin interfacecom.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
-
getAnchorPath
- Specified by:
getAnchorPathin interfacecom.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
-
getAnchoredShape
- Specified by:
getAnchoredShapein interfacecom.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
-
removePresentationElement
Description copied from class:PresentationElementRemoves given child- Overrides:
removePresentationElementin classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView- Parameters:
element- child
-
isSubElement
-
setElement
- Overrides:
setElementin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
sSetElement
- Overrides:
sSetElementin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
simpleSetBounds
Description copied from class:PathElementcalls break point vector changed method.- Overrides:
simpleSetBoundsin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView- Parameters:
rct- new bounding rectangle.
-
internalMovedAsToSelf
public void internalMovedAsToSelf(int dx, int dy) Description copied from class:PathElementThis is an internal method to notify a path that it was moved by connecting shape as the path "to self"- Overrides:
internalMovedAsToSelfin classPathElement- Parameters:
dx- delta xdy- delta y
-
notifyBreakPointsChangedForElement
Description copied from class:com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkViewNotify about changed break points- Overrides:
notifyBreakPointsChangedForElementin classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView- Parameters:
view- symbollocation- location
-
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.- Specified by:
acceptin interfaceMDElement- Overrides:
acceptin classAssociationView- Parameters:
visitor- which visits this element.- Throws:
Exception
-
disposeChildren
protected void disposeChildren()Description copied from class:PresentationElementRemoves all children from itself. Such removing causes calling dispose for every child.- Overrides:
disposeChildrenin classPresentationElement
-
getBoundsToRepaint
Description copied from class:PresentationElementReturn bounds of the symbol that must be repainted. throws NoRectangleDefinedException- Overrides:
getBoundsToRepaintin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView- Returns:
- rectangle of bounds
- Throws:
NoRectangleDefinedException
-
layoutAnchoredShape
public void layoutAnchoredShape()- Specified by:
layoutAnchoredShapein interfacecom.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
-
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 interfacecom.nomagic.magicdraw.uml.symbols.LabelOwner- Specified by:
getElementin interfaceModelElementProvider- Overrides:
getElementin classAssociationView- Returns:
- model element of this presentation element.
-