Class InterfaceView

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.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.ClassifierView
com.nomagic.magicdraw.uml.symbols.shapes.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.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.PortOwner, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class InterfaceView extends ClassifierView
  • Constructor Details

    • InterfaceView

      public InterfaceView()
    • InterfaceView

      public InterfaceView(@CheckForNull PresentationElement parent)
  • Method Details

    • canStereotypeIconGrow

      public boolean canStereotypeIconGrow()
      Overrides:
      canStereotypeIconGrow in class ClassifierView
      Returns:
      true if stereotype icon forces shape growing into all directions on resize
    • accept

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

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

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

      public int getMiddlePointX()
      Overrides:
      getMiddlePointX in class ShapeElement
    • getMiddlePointY

      public int getMiddlePointY()
      Overrides:
      getMiddlePointY in class ShapeElement
    • 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
      Overrides:
      getElement in class ClassifierView
      Returns:
      model element of this presentation element.
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.InterfaceHeaderView getHeaderView()
      Overrides:
      getHeaderView in class ClassifierView