Class InterfaceView

  • 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.shapes.PortOwner, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, 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 InterfaceView
    extends ClassifierView
    • Constructor Detail

      • InterfaceView

        public InterfaceView()
    • Method Detail

      • canStereotypeIconGrow

        public boolean canStereotypeIconGrow()
        Returns:
        true if stereotype icon forces shape growing into all directions on resize
      • 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
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • addConnectedPathElement

        public boolean addConnectedPathElement​(PathElement pathElement)
        Description copied from class: PathConnector
        Adds new path element, and recalculates its position.
        Parameters:
        pathElement - element to be added.
        Returns:
        true if element was added
      • removeConnectedPathElement

        public boolean removeConnectedPathElement​(PathElement pathElement)
        Description copied from class: PathConnector
        Removes path element.
        Parameters:
        pathElement - element to remove.
        Returns:
        true if element was removed
      • getMiddlePointX

        public int getMiddlePointX()
      • getMiddlePointY

        public int getMiddlePointY()
      • getMiddlePointForInterface

        @CheckForNull
        private java.awt.Point getMiddlePointForInterface()
      • isUML_2_0_interface

        public boolean isUML_2_0_interface()
      • getElement

        public Interface 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 interface ModelElementProvider
        Returns:
        model element of this presentation element.
      • getHeaderView

        public com.nomagic.magicdraw.uml.symbols.shapes.InterfaceHeaderView getHeaderView()