Class AssociationClassView
- 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.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,StereotypesDisplayModeOwner,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider,NameOwner,java.beans.PropertyChangeListener,java.lang.Cloneable,java.lang.Comparable,java.util.EventListener
@OpenApi public class AssociationClassView extends AssociationView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.AbstractConveyedInformationLabelWrapper, com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.ConveyedInformationSourceToTargetLabelWrapper, com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype.ConveyedInformationTargetToSourceLabelWrapper
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData, com.nomagic.magicdraw.uml.symbols.PresentationElement.StructureCache
-
-
Field Summary
Fields Modifier and Type Field Description private ClassViewclassViewstatic intDISTANCEprivate LinkAttributeViewlinkAttributeView-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
NON_NAVIGABILITY_DISTANCE
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
ARROW_ADORNMENT_SIZE, CONVEYED_BOX_A_DISTANCE, CONVEYED_BOX_B_DISTANCE
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathElement
BEZIER, LINE_STYLE, OBLIQUE, RECTILINEAR
-
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.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 Constructor Description AssociationClassView()AssociationClassView(PresentationElement parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Method accepts visitor, and calls method visit<class name>(this) of visitor .AssociationClassViewclone()Returns a copy of theElement.protected voiddisposeChildren()Removes all children from itself.java.awt.RectanglegetBoundsToRepaint()Return bounds of the symbol that must be repainted.ClassViewgetClassView()AssociationClassgetElement()Returns model element of this presentation element.LinkAttributeViewgetLinkAttributeView()voidinternalMovedAsToSelf(int dx, int dy)This is an internal method to notify link that it was moved by connecting shape as link "to self"booleanisSubElement(PresentationElement element)voidlayoutAssociationClassViewElements()private static voidmoveChild(int dx, int dy, PresentationElement symbol)protected voidnotifyBreakPointsChangedForElement(PresentationElement view, java.awt.Point location)voidremovePresentationElement(PresentationElement element)Removes given childvoidsetClassView(ClassView classView)voidsetElement(Element element)voidsetLinkAttributeView(LinkAttributeView linkAttributeView)voidsimpleSetBounds(java.awt.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, createNameLabelWrapper, createSmartListenerConfig, getAssociationNameBox, getFirstMemberEnd, getNameLabelWrapper, getSecondMemberEnd, internalApplyProperties, propertyChange, updateNameBox
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
cacheActualDrawPoints, drawNavigability, getActualClientDrawPoint, getActualSupplierDrawPoint, getRoleA, getRoleB, ownsRoleA, ownsRoleB, paintSelf
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
calculateAlternativePoints, calculateAltPointsFromEnds, getAltPoint1, getAltPoint2, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getLinkEndA, getLinkEndB, getSupplierConnectionType, internalUpdatePresentationElement, layoutLabelOnNotifyBreakPointsChanged, notifyBreakPointsChanged, retrieveLinkEndElements, setAltPoint1, setAltPoint2, setLocationForChild, sSetLinkEndA, sSetLinkEndB
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
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, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetShowConstraints, sSetShowConveyedSourceToTarget, sSetShowConveyedTargetToSource, sSetShowTaggedValues, sSetStereotypesDisplayMode
-
Methods 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, updateChildren
-
Methods 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, coversPoint, dispose, draw, draw, dynamicPathIcon, dynamicPathIcon, findOtherExistingElement, 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, getPathIcon, getPathPainter, getPaths, getPointOnPath, getPreviousPoint, getSupplier, getSupplierDrawPoint, getSupplierPoint, getSuspendShapeAutoResizeMode, handleRemoveBreaksAction, hasClientPoint, hasManipulator, hasSharedData, hasSupplierPoint, internalGetBoundsShape, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalGetPresentationElementStroke, internalSnapToGrid, intersects, intersectsInternal, isAlwaysToSelf, isBezier, isBezierIntersects, isBreakable, isConnectable, isConnectable, isDrawLineJumps, isFixed, isOblique, isRectilinear, isRounded, isSmartLayoutNeeded, isSnapToGrid, isToSelf, isUseFlowLayoutLogic, isVertical, makeRectilinear, makeRectilinear, moveLinkToClientParent, movePathElement, needsToMoveOtherEnd, nextStyle, notifyRepaintManager, notifyRepaintManager, optimizeLoops, preDisposeOnUpdate, prepareForFillDrawing, 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
-
Methods 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
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addPresentationElementWithoutResize, addProperty, adjustBoundsForMoving, adjustChildBounds, adjustChildBoundsForMoving, alwaysShowTooltip, applyProperties, atInsertChildren, autosizeAndResizeManipulatedParent, autosizeAndResizeParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeListener, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findParentForData, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAdditionalRenderersToNotify, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getElementNumberDisplayMode, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getManipulationPreferredDimension, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, getPreferredBounds, getPreferredDimension, getPreferredDimensionForAutosize, 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, initialize, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetElementsForLinkConnecting, internalGetElementToConnectLink, internalSnapToGrid, invalidate, isCanChildrenChangeEdge, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintChildrenBackground, paintSelfBackground, prepareForLineDrawing, prepareForShadowDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDiagramSurface, setDummyResizeMode, setFillColor, 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, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateLater, 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, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DISTANCE
public static final int DISTANCE
- See Also:
- Constant Field Values
-
classView
private ClassView classView
-
linkAttributeView
private LinkAttributeView linkAttributeView
-
-
Constructor Detail
-
AssociationClassView
public AssociationClassView()
-
AssociationClassView
public AssociationClassView(@CheckForNull PresentationElement parent)
-
-
Method Detail
-
setClassView
public void setClassView(ClassView classView)
-
sSetLinkAttributeView
public void sSetLinkAttributeView(@CheckForNull LinkAttributeView linkAttributeView)
-
sSetClassView
public void sSetClassView(ClassView classView)
-
setLinkAttributeView
public void setLinkAttributeView(LinkAttributeView linkAttributeView)
-
clone
public AssociationClassView clone()
Description copied from class:ElementImplReturns a copy of theElement.- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView- Returns:
- the cloned object
-
getClassView
public ClassView getClassView()
-
getLinkAttributeView
public LinkAttributeView getLinkAttributeView()
-
removePresentationElement
public void removePresentationElement(PresentationElement element)
Description copied from class:PresentationElementRemoves given child- Overrides:
removePresentationElementin classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView- Parameters:
element- child
-
isSubElement
public boolean isSubElement(PresentationElement element)
-
setElement
public void setElement(Element element)
- Overrides:
setElementin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
sSetElement
public void sSetElement(Element element)
- Overrides:
sSetElementin classcom.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
-
simpleSetBounds
public void simpleSetBounds(java.awt.Rectangle rct)
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 link that it was moved by connecting shape as link "to self"- Parameters:
dx- delta xdy- delta y
-
moveChild
private static void moveChild(int dx, int dy, PresentationElement symbol)
-
notifyBreakPointsChangedForElement
protected void notifyBreakPointsChangedForElement(PresentationElement view, java.awt.Point location)
- Overrides:
notifyBreakPointsChangedForElementin classcom.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
-
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.
-
disposeChildren
protected void disposeChildren()
Description copied from class:PresentationElementRemoves all children from itself. Such removing causes calling dispose for every child.
-
layoutAssociationClassViewElements
public void layoutAssociationClassViewElements()
-
getBoundsToRepaint
public java.awt.Rectangle getBoundsToRepaint() throws NoRectangleDefinedExceptionDescription 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
-
getElement
public AssociationClass 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- Returns:
- model element of this presentation element.
-
-