Class NNaryAssociationView

  • All Implemented Interfaces:
    BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

    @OpenApi
    public class NNaryAssociationView
    extends ShapeElement
    This class represents connector for the n-nary association. Connector is the shape that connects association ends and has describing class defined, connected to is with realize link.
    • Constructor Detail

      • NNaryAssociationView

        public NNaryAssociationView()
      • NNaryAssociationView

        public NNaryAssociationView​(@CheckForNull
                                    PresentationElement parent)
    • Method Detail

      • paintChildren

        public void paintChildren​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • paintSelf

        public void paintSelf​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.Exception
        Description copied from interface: MDElement
        Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
        Specified by:
        accept in interface MDElement
        Overrides:
        accept in class ShapeElement
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • createBoundsShape

        public ContainerShape createBoundsShape​(PathElement path,
                                                BoundsTransformation transformation)
        Description copied from class: ShapeElement
        Creates bounding shape for intersection calculation.
        Parameters:
        path - path
        transformation - transformation
        Returns:
        shape
      • createPolygon

        private java.awt.Polygon createPolygon​(int grow)