Class DiagramPropertiesShape

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.AbstractTextBoxView
com.nomagic.magicdraw.uml.symbols.shapes.TextBoxView
com.nomagic.magicdraw.uml.symbols.shapes.DiagramPropertiesShape
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 DiagramPropertiesShape extends TextBoxView
  • Field Details

  • Constructor Details

    • DiagramPropertiesShape

      public DiagramPropertiesShape()
    • DiagramPropertiesShape

      public DiagramPropertiesShape(@CheckForNull PresentationElement parent)
  • Method Details

    • isUseCustomHTML

      public boolean isUseCustomHTML()
    • canDisplayHTMLText

      public boolean canDisplayHTMLText()
      Specified by:
      canDisplayHTMLText in interface com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable
      Overrides:
      canDisplayHTMLText in class TextBoxView
    • 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
    • createTextArea

      protected com.nomagic.magicdraw.uml.symbols.shapes.TextAreaView createTextArea()
      Overrides:
      createTextArea in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • updateViewAfterPropertyChange

      public void updateViewAfterPropertyChange()
      Overrides:
      updateViewAfterPropertyChange in class PresentationElement
    • 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
    • getHTMLTemplateFileName

      public static String getHTMLTemplateFileName()
    • constructStandardModeText

      public static String constructStandardModeText(Collection<String> keywords)
    • 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 TextBoxView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • canBeAutosized

      public boolean canBeAutosized()
      Overrides:
      canBeAutosized in class TextBoxView
    • getElement

      public Diagram 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 PresentationElement
      Returns:
      model element of this presentation element.
    • insertTaggedValues

      public String insertTaggedValues(String source)
    • getSelectedTags

      public List<String> getSelectedTags()
      Returns:
      names of selected for displaying tag definitions names, including some hardcoded constants like DIAGRAM_NAME etc.
    • canHavePaths

      public boolean canHavePaths()
      Overrides:
      canHavePaths in class ShapeElement
      Returns:
      true if symbol can have connected paths. Return false here.
    • canBeDeleted

      public boolean canBeDeleted()
      Description copied from interface: BaseElement
      Checks if an element can be deleted from a project. Element cannot be deleted if it is not isEditable(), parent is not set, or parent does not allow to remove this element.
      Specified by:
      canBeDeleted in interface BaseElement
      Overrides:
      canBeDeleted in class com.nomagic.magicdraw.uml.MDElementImpl
      Returns:
      true, if an element can be deleted from a project.
      See Also:
    • updateModificationTime

      public static void updateModificationTime(Diagram diagram)
      Update diagram modification time
      Parameters:
      diagram - diagram
    • getHumanName

      public String getHumanName()
      Description copied from class: PresentationElement
      Returns human representation of the data type
      Specified by:
      getHumanName in interface BaseElement
      Overrides:
      getHumanName in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      Returns:
      the name of the data
    • makeFreeSpaceInDiagram

      public void makeFreeSpaceInDiagram()
    • 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
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PresentationElement
      Applies properties from given property manager
      Overrides:
      internalApplyProperties in class TextBoxView
      Parameters:
      changer - new properties
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class PathConnector
    • canChangeParent

      public boolean canChangeParent(Collection<? extends PresentationElement> movedTogether, @CheckForNull BaseElement newParent, boolean changeElementParent)
      Description copied from class: PresentationElement
      Returns true, if element can change parent.
      Overrides:
      canChangeParent in class TextBoxView
      Parameters:
      movedTogether - collection of the elements, whose will change the parent together with this.
      newParent - new symbol parent
      changeElementParent - change element parent
      Returns:
      true if parent of symbol can be changed
    • isInInitialPositionOnFrame

      public boolean isInInitialPositionOnFrame()
      Indicates if diagram properties shape is in the initial position and not moved by the user.
      Returns:
      true if diagram properties shape is in initial position, false otherwise.