Class RectangularShape

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.TextShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView
com.nomagic.magicdraw.uml.symbols.shapes.SeparatorView
com.nomagic.magicdraw.uml.symbols.shapes.RectangularShape
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, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class RectangularShape extends SeparatorView
This class creates a rectangular shape
  • Field Details

  • Constructor Details

    • RectangularShape

      public RectangularShape()
    • RectangularShape

      public RectangularShape(@CheckForNull PresentationElement parent)
  • Method Details

    • getDefaultDimension

      protected UnmodifiableDimension getDefaultDimension()
      Overrides:
      getDefaultDimension in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView
    • paintSelf

      public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Overrides:
      paintSelf in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView
    • 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 SeparatorView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • isRounded

      public boolean isRounded()
    • setRounded

      public void setRounded(boolean rounded)
    • needAdjustToMaximumDimension

      protected boolean needAdjustToMaximumDimension()
      Description copied from class: ShapeElement
      Check if shape should be resized to a maximum size.
      Overrides:
      needAdjustToMaximumDimension in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView
      Returns:
      true if adjustments are necessary
    • canChangeOrientation

      public boolean canChangeOrientation()
      Overrides:
      canChangeOrientation in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractSeparatorView