Class FlowConnectorView

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

    @OpenApi
    public class FlowConnectorView
    extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    This class creates a split shape for flows.

    • Field Detail

      • allowRemoveOnUpdate

        private static boolean allowRemoveOnUpdate
    • Constructor Detail

      • FlowConnectorView

        public FlowConnectorView()
    • Method Detail

      • isAllowRemoveOnUpdate

        public static boolean isAllowRemoveOnUpdate()
      • setAllowRemoveOnUpdate

        public static void setAllowRemoveOnUpdate​(boolean allowRemoveOnUpdate)
      • minimumSizeIgnoringOrientation

        protected void minimumSizeIgnoringOrientation​(java.awt.Dimension min)
        Overrides:
        minimumSizeIgnoringOrientation in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • getHumanType

        public java.lang.String getHumanType()
        Description copied from class: PresentationElement
        Returns human representation of the data type
        Specified by:
        getHumanType in interface BaseElement
        Returns:
        the name of the data
      • internalGetHeaderInsets

        protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
        Overrides:
        internalGetHeaderInsets in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • internalSpecificUpdate

        protected void internalSpecificUpdate()
        Overrides:
        internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • removeItselfIfNotValid

        private void removeItselfIfNotValid()
      • 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 com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • paintSelf

        public void paintSelf​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
        Overrides:
        paintSelf in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      • getBaseFlowView

        @CheckForNull
        public com.nomagic.magicdraw.uml.symbols.paths.BaseFlowView getBaseFlowView()
      • isWrapEnabled

        public boolean isWrapEnabled()
        Specified by:
        isWrapEnabled in interface com.nomagic.magicdraw.uml.symbols.Wrapable
        Overrides:
        isWrapEnabled in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      • isOvalShape

        protected boolean isOvalShape()
        Overrides:
        isOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • getHeaderDistanceFromTopForOvalShape

        protected int getHeaderDistanceFromTopForOvalShape()
        Overrides:
        getHeaderDistanceFromTopForOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • getHeaderVerticalPositionForLayout

        protected com.nomagic.magicdraw.uml.symbols.shapes.TextObject.VerticalPosition getHeaderVerticalPositionForLayout()
        Overrides:
        getHeaderVerticalPositionForLayout in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • findParentForData

        public Element findParentForData​(PresentationElement newParent,
                                         com.nomagic.uml2.ext.jmi.helpers.ElementAddContext addContext)
      • findNameForConnector

        public static java.lang.String findNameForConnector​(DiagramPresentationElement diagram)
        Returns an unique name for connector view in given diagram
        Parameters:
        diagram - diagram
        Returns:
        name