Class 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, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

    @OpenApi
    public class DiagramPropertiesShape
    extends TextBoxView
    • Constructor Detail

      • DiagramPropertiesShape

        public DiagramPropertiesShape()
    • Method Detail

      • isUseCustomHTML

        public boolean isUseCustomHTML()
      • canDisplayHTMLText

        public boolean canDisplayHTMLText()
      • 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()
      • internalSpecificUpdate

        protected void internalSpecificUpdate()
        Overrides:
        internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • getHTMLTemplateFileName

        public static java.lang.String getHTMLTemplateFileName()
      • constructStandardModeText

        public static java.lang.String constructStandardModeText​(java.util.Collection<java.lang.String> keywords)
      • 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
      • canBeAutosized

        public boolean canBeAutosized()
      • insertTaggedValues

        public java.lang.String insertTaggedValues​(java.lang.String source)
      • getSelectedTags

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

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

        public boolean canBeDeleted()
        Description copied from interface: BaseElement
        Checks if element can be deleted from 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 element can be deleted from project.
        See Also:
        BaseElement.isEditable()
      • updateModificationTime

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

        @CheckForNull
        private static TaggedValue setTaggedValue​(Diagram diagram,
                                                  @CheckForNull
                                                  Property tag,
                                                  java.util.function.Supplier<java.lang.String> newValueSupplier)
      • getHumanName

        public java.lang.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​(java.beans.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 java.beans.PropertyChangeListener
      • internalApplyProperties

        public void internalApplyProperties​(PropertyManager man)
        Description copied from class: PresentationElement
        Applies properties from given property manager
        Parameters:
        man - new properties
      • createSmartListenerConfig

        protected void createSmartListenerConfig​(java.util.List<SmartListenerConfig> configurations)
      • canChangeParent

        public boolean canChangeParent​(java.util.Collection<? extends PresentationElement> movedTogether,
                                       @CheckForNull
                                       BaseElement newParent,
                                       boolean changeElementParent)
        Description copied from class: PresentationElement
        Returns true, if element can change parent.
        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.