Class ContentShape

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.ContentShape
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 ContentShape extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
Shape for displaying content of some package.
  • Constructor Details

    • ContentShape

      public ContentShape()
    • ContentShape

      public ContentShape(@CheckForNull PresentationElement parent)
  • Method Details

    • canDisplayHTMLText

      public boolean canDisplayHTMLText()
      Specified by:
      canDisplayHTMLText in interface com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
      Overrides:
      canDisplayHTMLText in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • isHTMLText

      public boolean isHTMLText()
      Specified by:
      isHTMLText in interface com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
      Overrides:
      isHTMLText in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • getDiagramsIdsFromHTMLSource

      public List<String> getDiagramsIdsFromHTMLSource()
    • internalSpecificUpdate

      protected void internalSpecificUpdate()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Specific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.
      Overrides:
      internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • atInsert

      public void atInsert()
      Description copied from class: PresentationElement
      Invalidates object at insert
      Specified by:
      atInsert in interface BaseElement
      Overrides:
      atInsert in class PresentationElement
    • dispose

      public void dispose()
      Description copied from class: PresentationElement
      disposes ends of links when link is deleted
      Specified by:
      dispose in interface BaseElement
      Overrides:
      dispose in class PathConnector
    • clearDiagramsMap

      public void clearDiagramsMap()
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Description copied from class: PresentationElement
      Listens for property change it can be: data was edited text box was edited
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class PresentationElement
    • wrapDiagramsBlock

      public static String wrapDiagramsBlock(String diagramType, String body)
      Wraps given body inside diagram blog tags
      Parameters:
      diagramType - type
      body - body
      Returns:
      text
    • replaceString

      public static String replaceString(String text, String oldString, String newString)
    • 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 com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • paintSelf

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

      @CheckForNull public Element getPackage()
    • setPackage

      public void setPackage(Element aPackage)
    • clone

      public ContentShape clone()
      Specified by:
      clone in interface BaseElement
      Overrides:
      clone in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • fixSpacesInHeader

      public void fixSpacesInHeader()