Class DiagramPresentationElement

    • Field Detail

      • FORCE_CONTENT_SAVE_PROPERTY

        public static final java.lang.String FORCE_CONTENT_SAVE_PROPERTY
        See Also:
        Constant Field Values
      • forceStoreContentOnSave

        private boolean forceStoreContentOnSave
      • DIAGRAM_CONTENT_LOADED_PROPERTY

        public static final java.lang.String DIAGRAM_CONTENT_LOADED_PROPERTY
        See Also:
        Constant Field Values
      • HEAVY_WEIGHT_SYMBOLS_CHECKER

        private static final java.util.Collection<com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.HeavyWeightSymbolsChecker> HEAVY_WEIGHT_SYMBOLS_CHECKER
      • LOAD_CONTENTS_TASK_NAME

        private static final java.lang.String LOAD_CONTENTS_TASK_NAME
        See Also:
        Constant Field Values
      • inLoadContents

        private static final java.lang.ThreadLocal<java.lang.Boolean> inLoadContents
      • dynamicStyleProviders

        private java.util.Collection<com.nomagic.magicdraw.uml.symbols.DynamicStyleProvider> dynamicStyleProviders
      • dynamicRepresentationProviders

        private final java.util.Collection<com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider> dynamicRepresentationProviders
      • modificationTimeUpdateDisabled

        private boolean modificationTimeUpdateDisabled
        Explicitly prevent update diagram modification time
      • lastModificationUpdateTime

        private long lastModificationUpdateTime
        For better performance we want to keep this info here, not in properties shape
      • updatingDiagramModificationTime

        private boolean updatingDiagramModificationTime
        A flag telling that modification time for this diagram is updating at the moment
      • dummyMode

        private boolean dummyMode
        In dummy mode symbols in diagram may use smart autosize capabilities on resize and etc.
      • loadContentsExecutor

        private static final java.util.concurrent.Executor loadContentsExecutor
      • container

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer container
      • sortManager

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.SortManager sortManager
        Manager for sorted shape views in this diagram view
      • manipulationSortManager

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.SortManager manipulationSortManager
        Manager for sorted manipulation shape views in this diagram view.
      • diagramSurface

        private java.lang.ref.WeakReference<DiagramSurface> diagramSurface
      • contentState

        private final com.nomagic.magicdraw.uml.symbols.DiagramContentState contentState
      • viewOptions

        private com.nomagic.magicdraw.core.options.DiagramViewOptions viewOptions
      • requiredFeature

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.RequiredFeature requiredFeature
      • contentListeners

        @CheckForNull
        private com.nomagic.utils.ExtendedPropertyChangeSupport contentListeners
      • DIAGRAM_ORIENTATION_VERTICAL

        public static final java.lang.String DIAGRAM_ORIENTATION_VERTICAL
        Vertical diagram orientation mode.
        See Also:
        Constant Field Values
      • DIAGRAM_ORIENTATION_HORIZONTAL

        public static final java.lang.String DIAGRAM_ORIENTATION_HORIZONTAL
        Horizontal diagram orientation mode.
        See Also:
        Constant Field Values
      • DIAGRAM_ORIENTATION_MODES

        public static final java.util.List<java.lang.String> DIAGRAM_ORIENTATION_MODES
        Diagram orientation modes.
      • DIAGRAM_USE_STEREOTYPE_MODES

        public static final java.util.List<java.lang.String> DIAGRAM_USE_STEREOTYPE_MODES
        Diagram use stereotype modes.
      • LINE_JUMP_PLACES

        public static final java.util.List<java.lang.String> LINE_JUMP_PLACES
        Possible values of line jump place of a diagram.
      • centerlineManager

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineManager centerlineManager
      • representation

        private com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject representation
      • realType

        @CheckForNull
        private java.lang.String realType
        Real type of diagram. This value maybe different from mType if realType is not registered
      • openConfigurator

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.OpenConfigurator openConfigurator
        Configurator for opening diagram presentation element. It knows if open action is supported and has action which is executed before open is performed; if action returns false, open is canceled.
      • initializer

        private com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementInitializer initializer
        Diagram presentation element initializer. It can be set custom initializer for every diagram presentation element.
      • contentHash

        @CheckForNull
        private java.lang.String contentHash
      • pathToMoveCache

        private final com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.PathToMoveCache pathToMoveCache
        A cache for storing paths from deep symbols structure for moving together with some symbol. The calculation of these paths is time consuming operation, so it is better to cache these calculations and update them if structure is changed (path is connected to some symbol or path is added/removed from some symbol)
      • usedElementsCache

        @CheckForNull
        private java.util.Set<Element> usedElementsCache
      • presentationElementsCache

        private com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementsCache presentationElementsCache
    • Constructor Detail

      • DiagramPresentationElement

        public DiagramPresentationElement​(@CheckForNull
                                          Diagram diagram)
      • DiagramPresentationElement

        public DiagramPresentationElement​(@CheckForNull
                                          Diagram diagram,
                                          @CheckForNull
                                          DiagramType type)
      • DiagramPresentationElement

        public DiagramPresentationElement​(@CheckForNull
                                          Diagram diagram,
                                          @CheckForNull
                                          com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject repObject)
    • Method Detail

      • addDefaultDynamicStyleProviders

        private void addDefaultDynamicStyleProviders()
      • setDiagramRepresentationObject

        public void setDiagramRepresentationObject​(com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject repObject)
        Initializes all persistent data from it's representation object except for diagram contents.
        Parameters:
        repObject - object
      • hasRegisteredRealTypeDescriptor

        public boolean hasRegisteredRealTypeDescriptor()
      • createDiagramFrame

        private void createDiagramFrame()
      • sSetDiagramType

        @OpenApi
        public void sSetDiagramType​(@CheckForNull
                                    DiagramType type)
        Sets the type of the diagram.
        Parameters:
        type - the type of the diagram
      • setDiagramType

        @OpenApi
        public void setDiagramType​(DiagramType type)
        Sets the type of the diagram and fires the property change event with name ExtendedPropertyNames.EDIT_DIAGRAM_TYPE .
        Parameters:
        type - the type of the diagram
        See Also:
        ExtendedPropertyNames.EDIT_DIAGRAM_TYPE, Project
      • unregisterFromProject

        public void unregisterFromProject()
      • removeDiagramViewOptions

        private void removeDiagramViewOptions()
        Removes @DiagramViewOptions of this diagram from project options.
      • registerInProject

        public void registerInProject()
      • loadDiagramViewOptions

        public void loadDiagramViewOptions()
        Loads values of @DiagramViewOptions for this diagram from project options.
      • getHumanType

        public java.lang.String getHumanType()
        Returns human representation of the data type
        Specified by:
        getHumanType in interface BaseElement
        Returns:
        the name of the data
      • getDiagram

        @OpenApi
        public Diagram getDiagram()
        Returns Diagram model element of this presentation element.
        Returns:
        Diagram object of this element.
        See Also:
        getElement()
      • sSetZoom

        public void sSetZoom​(float zoom)
        Sets zoom size.
        Parameters:
        zoom - zoom value
      • setZoom

        public void setZoom​(float zoom)
      • getZoom

        public float getZoom()
        Returns:
        diagram zoom value
      • paintSelf

        public void paintSelf​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • paintChildren

        public void paintChildren​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        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
      • getContainer

        public com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer getContainer()
        Returns:
        diagram container
      • intersects

        public boolean intersects​(int x,
                                  int y,
                                  int width,
                                  int height)
        checks whether object intersects with given rectangle
        Returns:
        true if object and rectangle intersects
      • coversPoint

        public boolean coversPoint​(int x,
                                   int y)
        checks if object covers provided point
        Returns:
        true if object covers this point
      • sAddPresentationElement

        public void sAddPresentationElement​(PresentationElement element,
                                            int index)
        Description copied from class: PresentationElement
        Add given child to this symbol at given index
        Parameters:
        element - child to add
        index - index to add at. Can be -1
      • addPresentationElement

        public void addPresentationElement​(PresentationElement element,
                                           int index)
        Description copied from class: PresentationElement
        Add given child to this symbol at given index
        Parameters:
        element - child to add
        index - index to add at. Can be -1
      • isEmpty

        public boolean isEmpty()
      • setPresentationElements

        public void setPresentationElements​(java.util.List<PresentationElement> elements)
        Description copied from class: PresentationElement
        Sets children of this element
        Parameters:
        elements - children
      • sSetPresentationElements

        public void sSetPresentationElements​(java.util.List<PresentationElement> elements)
        Description copied from class: PresentationElement
        Sets children of this element
        Parameters:
        elements - children
      • accept

        @OpenApi
        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
        Overrides:
        accept in class com.nomagic.magicdraw.uml.MDElementImpl
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • open

        @OpenApi
        public void open()
        Open the diagram
      • open

        @OpenApi
        public void open​(boolean showProgress)
        Open the diagram in a new diagram tab, or activates diagram tab if this diagram is already open
        Parameters:
        showProgress - show progress dialog
      • open

        public void open​(boolean loadContent,
                         boolean showProgress)
        Open the diagram.
        Parameters:
        loadContent - load diagram content
        showProgress - show progress dialog
      • openInActiveTab

        @OpenApi
        public void openInActiveTab​(boolean showProgress)
        Open diagram in currently active diagram tab If no other diagram is opened yet, creates a new tab If this diagram is already opened, simply activates that tab
        Parameters:
        showProgress - show progress dialog
      • open

        public void open​(boolean loadContent,
                         boolean showProgress,
                         boolean inActiveTab)
        Open the diagram.
        Parameters:
        loadContent - load diagram content
        showProgress - show progress dialog
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener l)
        Just hack, registers the same listener to the container
        Specified by:
        addPropertyChangeListener in interface BaseElement
        Overrides:
        addPropertyChangeListener in class com.nomagic.magicdraw.uml.MDElementImpl
        Parameters:
        l - the PropertyChangeListener to be added.
        See Also:
        PropertyChangeSupport
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener l)
        Just hack, unregister the same listener from the container
        Specified by:
        removePropertyChangeListener in interface BaseElement
        Overrides:
        removePropertyChangeListener in class com.nomagic.magicdraw.uml.MDElementImpl
        Parameters:
        l - the PropertyChangeListener to be removed.
        See Also:
        PropertyChangeSupport
      • getName

        public java.lang.String getName()
        Gets the name of this DiagramPresentationElement object.
        Specified by:
        getName in interface MDElement
        Specified by:
        getName in interface NameOwner
        Overrides:
        getName in class com.nomagic.magicdraw.uml.MDElementImpl
        Returns:
        name of this object
      • getGridSize

        public int getGridSize()
        Returns:
        grid size
      • setGridSize

        public void setGridSize​(int grid)
        Sets grid size. If snap to grid flag is set, snap all views to the grid.
        Parameters:
        grid - grid size
      • snapViewToGrid

        private void snapViewToGrid()
        Snap all views to the grid.
      • snapViewToGrid

        public void snapViewToGrid​(PresentationElement el)
        Snaps provided presentation element to grid
        Parameters:
        el - element
      • getPathGridSize

        public float getPathGridSize()
        Returns:
        path grid size
      • sSetGridSize

        public void sSetGridSize​(int grid)
        Sets grid size.
        Parameters:
        grid - grid size
      • setShowGrid

        public void setShowGrid​(boolean showGrid)
        Sets show grid flag
        Parameters:
        showGrid - show grid
      • sSetShowGrid

        public void sSetShowGrid​(boolean showGrid)
        Sets show grid flag
        Parameters:
        showGrid - show grid value
      • isShowGrid

        public boolean isShowGrid()
        Returns:
        show grid flag
      • sSetShowDiagramOwner

        public void sSetShowDiagramOwner​(boolean show)
      • sSetShowAbbreviatedDiagramType

        public void sSetShowAbbreviatedDiagramType​(boolean show)
      • sSetShowDiagramName

        public void sSetShowDiagramName​(boolean show)
      • sSetShowParameters

        public void sSetShowParameters​(boolean show)
      • sSetShowContextName

        public void sSetShowContextName​(boolean show)
      • sSetShowContextType

        public void sSetShowContextType​(boolean show)
      • sSetShowDiagramType

        public void sSetShowDiagramType​(boolean show)
      • sSetShowContextKind

        public void sSetShowContextKind​(boolean show)
      • setShowAbbreviatedDiagramType

        public void setShowAbbreviatedDiagramType​(boolean show)
      • setShowDiagramName

        public void setShowDiagramName​(boolean show)
      • setShowParameters

        public void setShowParameters​(boolean show)
      • setShowContextName

        public void setShowContextName​(boolean show)
      • setShowContextType

        public void setShowContextType​(boolean show)
      • setShowDiagramType

        public void setShowDiagramType​(boolean show)
      • updateDiagramFrame

        private void updateDiagramFrame()
        Updates diagram frame for this diagram.
      • setShowContextKind

        public void setShowContextKind​(boolean show)
      • isShowAbbreviatedDiagramType

        public boolean isShowAbbreviatedDiagramType()
        Specified by:
        isShowAbbreviatedDiagramType in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowDiagramName

        public boolean isShowDiagramName()
        Specified by:
        isShowDiagramName in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowParameters

        public boolean isShowParameters()
        Specified by:
        isShowParameters in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowContextName

        public boolean isShowContextName()
        Specified by:
        isShowContextName in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowContextType

        public boolean isShowContextType()
        Specified by:
        isShowContextType in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowDiagramType

        public boolean isShowDiagramType()
        Specified by:
        isShowDiagramType in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • isShowContextKind

        public boolean isShowContextKind()
        Specified by:
        isShowContextKind in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
      • sSetShowDiagramFrame

        public void sSetShowDiagramFrame​(boolean show)
      • setShowDiagramFrame

        private void setShowDiagramFrame​(boolean show,
                                         boolean useSimpleSet)
      • isShowDiagramOwner

        public boolean isShowDiagramOwner()
      • isShowDiagramFrame

        public boolean isShowDiagramFrame()
      • setShowDiagramOwner

        public void setShowDiagramOwner​(boolean show)
      • setShowDiagramFrame

        public void setShowDiagramFrame​(boolean show)
      • sSetElement

        public void sSetElement​(@CheckForNull
                                Element element)
        Sets diagram element for this object.
      • setSnapToGridShapes

        public void setSnapToGridShapes​(boolean snap)
        Sets show grid flag
        Parameters:
        snap - snap value
      • sSetSnapToGridShapes

        public void sSetSnapToGridShapes​(boolean snap)
        Sets show grid flag
        Parameters:
        snap - snap value
      • isSnapToGridShapes

        public boolean isSnapToGridShapes()
        Returns:
        show grid flag.
      • canAddChild

        public boolean canAddChild​(PresentationElement o)
        Description copied from class: PresentationElement
        Check of given symbol can be added as child into this symbol.
        Parameters:
        o - symbol
        Returns:
        true if symbol can be added
      • findPresentationElement

        @OpenApi
        @CheckForNull
        public final PresentationElement findPresentationElement​(@CheckForNull
                                                                 Element element,
                                                                 @CheckForNull
                                                                 java.lang.Class presentationElementClass)
        Finds presentation element for given model element of given symbol type in this diagram. Does recursive search in the diagram.
        Parameters:
        element - the given ModelElement.
        presentationElementClass - the class of presentation element or null if any.
        Returns:
        found presentation element or null if given ModelElement does not have presentation element in this diagram.
      • findPresentationElementForPathConnecting

        @CheckForNull
        @OpenApi
        public final PresentationElement findPresentationElementForPathConnecting​(BaseElement element,
                                                                                  java.lang.Class presentationElementClass)
        Finds presentation element to connect some PathElement for given model element of given type in this diagram. Does recursive search. For example if TemplateSignature will be passes as element, Class owning that signature will be found.
        Parameters:
        element - the given ModelElement
        presentationElementClass - the class of presentation element or null if any.
        Returns:
        found presentation element or null if given ModelElement does not have presentation element in this diagram.
      • findPresentationElementsForPathConnecting

        @OpenApi
        public final java.util.stream.Stream<PresentationElement> findPresentationElementsForPathConnecting​(Element element,
                                                                                                            java.lang.Class presentationElementClass)
        Finds presentations element to connect some PathElement for given model element of given type in this diagram. Does recursive search. For example if TemplateSignature will be passes as element, Class owning that signature will be found.
        Parameters:
        element - the given ModelElement
        presentationElementClass - the class of presentation element or null if any.
        Returns:
        a stream of presentation elements
      • getSortManagers

        public java.util.List<com.nomagic.magicdraw.uml.symbols.SortManager> getSortManagers​(boolean create)
        Gets sort managers registered for this diagram.
        Parameters:
        create - indicates if sort managers should be created if they aren't created yet.
        Returns:
        sort managers registered for this diagram.
      • getSortManager

        public com.nomagic.magicdraw.uml.symbols.SortManager getSortManager()
        Returns sort manager for this diagram view.
        Returns:
        symbol sort manager.
      • hasManipulationSortManager

        private boolean hasManipulationSortManager()
        Indicates if diagram has manipulation sort manager.
        Returns:
        true if diagram has manipulation sort manager, false otherwise.
      • getManipulationSortManager

        public com.nomagic.magicdraw.uml.symbols.SortManager getManipulationSortManager()
        Returns manipulation sort manager for this diagram view.
        Returns:
        manipulation symbol sort manager.
      • getPresentationElementAt

        @CheckForNull
        public PresentationElement getPresentationElementAt​(java.awt.Point relativePoint,
                                                            com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider)
        Description copied from class: PresentationElement
        Gets object view at point.
        Parameters:
        relativePoint - object view at point location.
        sortManagerProvider - sort manager for searching elements.
        Returns:
        object view at this point.
      • getPresentationElementAt

        @CheckForNull
        public PresentationElement getPresentationElementAt​(java.awt.Point relativePoint)
        Searches and returns object that covers given point.
        Parameters:
        relativePoint - point where searching for object
        Returns:
        object that covers given point, null if no objects found
      • getPresentationElementsAt

        public java.util.List<PresentationElement> getPresentationElementsAt​(java.awt.Point pt)
        Searches and returns all objects that covers given point.
        Parameters:
        pt - point where searching for object
        Returns:
        object that covers given point, null if no objects found
      • getPresentationElementsAt

        @CheckForNull
        public java.util.List<PresentationElement> getPresentationElementsAt​(java.awt.Point relativePoint,
                                                                             com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider)
        Description copied from class: PresentationElement
        Gets object view at point.
        Parameters:
        relativePoint - object view at point location.
        sortManagerProvider - sort manager for searching elements.
        Returns:
        object view at this point.
      • getManipulatedElementAt

        @CheckForNull
        public PresentationElement getManipulatedElementAt​(java.awt.Point relativePoint,
                                                           com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider)
        Description copied from class: PresentationElement
        Gets manipulate symbol at specified point pt.
        Parameters:
        relativePoint - Point
        sortManagerProvider - provides sort manager in which to search.
        Returns:
        manipulate symbol
      • getManipulatedElementAt

        @CheckForNull
        public PresentationElement getManipulatedElementAt​(java.awt.Point pt)
        Gets manipulate object view at specified point pt.
        Parameters:
        pt - Point
        Returns:
        manipulate object view
      • onFontChange

        protected void onFontChange()
      • setShowMessageNumbers

        public void setShowMessageNumbers​(boolean b)
      • setUseAdvancedNumbering

        public void setUseAdvancedNumbering​(boolean b)
      • isShowMessageNumbers

        public boolean isShowMessageNumbers()
      • isUseAdvancedNumbering

        public boolean isUseAdvancedNumbering()
      • isShowDiagramInfo

        public boolean isShowDiagramInfo()
      • sSetShowDiagramInfo

        public void sSetShowDiagramInfo​(boolean b)
      • resetLastModificationUpdateTime

        public void resetLastModificationUpdateTime()
        Reset cached last diagram modification time.
      • setShowDiagramInfo

        public void setShowDiagramInfo​(boolean showDiagramInfo)
      • createDiagramInfoShape

        public void createDiagramInfoShape​(boolean simple)
      • positionDiagramInfoShapeOnFrame

        public void positionDiagramInfoShapeOnFrame​(DiagramPropertiesShape shape)
      • addDiagramCreationInfo

        public static void addDiagramCreationInfo​(Diagram diagram)
      • findStereotypePropertyFor

        @CheckForNull
        private static Property findStereotypePropertyFor​(Element element,
                                                          java.lang.String propertyName)
        Looks for first available property with given name among available stereotypes for given element. Checks "DiagramInfo"first for better performance
        Parameters:
        element - given element
        propertyName - property name
        Returns:
        first available property with given name among available stereotypes for given element or null if not found
      • addDiagramCreationInfo

        public static void addDiagramCreationInfo​(Diagram diagram,
                                                  boolean overwrite)
      • setDiagramInfoTagValue

        private static void setDiagramInfoTagValue​(Diagram diagram,
                                                   java.lang.String tagName,
                                                   java.util.function.Supplier<java.lang.String> value,
                                                   boolean overwrite,
                                                   java.util.Collection<TaggedValue> taggedValues)
      • sSetShowActivations

        public void sSetShowActivations​(boolean b)
      • setShowActivations

        public void setShowActivations​(boolean b)
      • isShowActivations

        public boolean isShowActivations()
      • sSetDiagramOrientationMode

        public void sSetDiagramOrientationMode​(java.lang.String mode)
        Simple set for diagram orientation mode property
        Parameters:
        mode - - diagram orientation mode.
      • setDiagramOrientationMode

        public void setDiagramOrientationMode​(java.lang.String mode)
        Sets diagram orientation mode.
        Parameters:
        mode - - diagram orientation mode.
      • getLineJumpPlace

        public java.lang.String getLineJumpPlace()
        Returns current line jump place value of the diagram.
        Returns:
        line jump place mode
      • sSetLineJumpPlace

        public void sSetLineJumpPlace​(java.lang.String lineJumpPlace)
        Sets value of line jump place.
        Parameters:
        lineJumpPlace - line jump place mode
      • getDiagramOrientationMode

        public java.lang.String getDiagramOrientationMode()
        Gets diagram orientation mode.
        Returns:
        diagram orientation mode.
      • sSetUseStereotypeMode

        public void sSetUseStereotypeMode​(java.lang.String mode)
        Simple set for diagram use stereotype mode property
        Parameters:
        mode - - diagram orientation mode.
      • setUseStereotypeMode

        public void setUseStereotypeMode​(java.lang.String mode)
        Sets diagram use stereotype mode.
        Parameters:
        mode - - diagram orientation mode.
      • getUseStereotypeMode

        public java.lang.String getUseStereotypeMode()
        Gets diagram use stereotype mode.
        Specified by:
        getUseStereotypeMode in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
        Returns:
        diagram orientation mode.
      • getAspectRatioMode

        public java.lang.String getAspectRatioMode()
      • setAspectRatioMode

        public void setAspectRatioMode​(java.lang.String mode)
      • sSetAspectRatioMode

        public void sSetAspectRatioMode​(java.lang.String mode)
      • hasVerticalOrientation

        public boolean hasVerticalOrientation()
        Returns true if diagram has vertical orientation.
        Returns:
        true if diagram has vertical orientation, false otherwise.
      • internalSilentApply

        public void internalSilentApply()
        Description copied from class: PresentationElement
        Silently applies all properties after initialization
      • internalApplyProperties

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

        public boolean useParentProperties()
        Description copied from class: PresentationElement
        Does this element uses parent properties or has it own?
        Overrides:
        useParentProperties in class PresentationElement
        Returns:
        true, if element does not have properties and uses parent's.
      • getBackgroundColor

        public java.awt.Color getBackgroundColor()
        Returns:
        background color
      • preferredSize

        public void preferredSize​(java.awt.Dimension dim)
      • setDiagramSurface

        public void setDiagramSurface​(@CheckForNull
                                      DiagramSurface canvas)
      • getDiagramSurface

        @CheckForNull
        public DiagramSurface getDiagramSurface()
        Description copied from class: PresentationElement
        Returns diagram surface for this presentation element. DiagramSurface is null if diagram of this element is not opened in some window.
        Overrides:
        getDiagramSurface in class PresentationElement
        Returns:
        diagram surface or null if diagram is not opened.
      • recursiveAutosize

        public void recursiveAutosize()
        Description copied from class: PresentationElement
        Resize recursively all symbols. Method must be called if something is changed in symbol (for example minimum size) and you want to resize (autosize) all hierarchy
      • hasDiagramSurface

        public boolean hasDiagramSurface()
      • canDeleteChild

        public boolean canDeleteChild​(BaseElement obj)
        Description copied from interface: BaseElement
        Checks if given element can be deleted from this element. Follofing rules must be true in order to have result true: 1.this element must be editable. 2.project must be editable. 3.the type of given child must be valid for teamwork lock for edit operation (for example class, package and etc, not Attribute).
        Specified by:
        canDeleteChild in interface BaseElement
        Overrides:
        canDeleteChild in class com.nomagic.magicdraw.uml.MDElementImpl
        Parameters:
        obj - a given child
        Returns:
        true, if given element can be deleted from current element.
      • isModificationTimeUpdateDisabled

        public boolean isModificationTimeUpdateDisabled()
        Indicates if automatic diagram modification time update is disabled
        Returns:
        true when diagram modification time update is disabled
      • setModificationTimeUpdateDisabled

        public void setModificationTimeUpdateDisabled​(boolean modificationTimeUpdateDisabled)
        Disables automatic diagram modification time update.
        Parameters:
        modificationTimeUpdateDisabled - true to disable automatic diagram modification time update.
      • updateDiagramPropertiesShapeModificationTime

        public void updateDiagramPropertiesShapeModificationTime()
      • isLoaded

        @OpenApi
        public boolean isLoaded()
        Check if diagram is loaded.
        Returns:
        true if diagram contents is loaded
      • getContentState

        public com.nomagic.magicdraw.uml.symbols.DiagramContentState getContentState()
      • ensureLoaded

        @OpenApi
        public void ensureLoaded()
        Ensures that diagram is loaded. If diagram is not loaded, loads it. Make sure the project is active before invoking this method. Otherwise diagram may not be loaded.
      • loadContents

        public void loadContents​(@CheckForNull
                                 ProgressStatus status)
        Loads diagram to memory. This method should be used only when diagram is not loaded. Make sure the project is active before invoking this method. Otherwise diagram may not be loaded.
        Parameters:
        status - progress status.
      • doLoadContent

        private void doLoadContent​(@CheckForNull
                                   ProgressStatus status)
      • cleanupAfterLoad

        private void cleanupAfterLoad()
      • getUnsupportedReason

        public java.lang.String getUnsupportedReason()
        Returns if possible reason why this diagram cannot be loaded, otherwise - null.
        Returns:
        unsupported reason
      • getDiagramNotLoadedReasons

        public com.nomagic.magicdraw.uml.symbols.DiagramNotLoadedReasons getDiagramNotLoadedReasons()
      • invokeOnDispatcher

        public static void invokeOnDispatcher​(java.lang.Runnable runnable)
      • executeInLoadContentsState

        private static void executeInLoadContentsState​(java.lang.Boolean state,
                                                       java.lang.Runnable runnable)
      • isProfileLoaded

        public boolean isProfileLoaded()
        Returns:
        true if diagram does not requires profile or profile is loaded (method used from diagram descriptor)
      • isPluginAvailable

        public boolean isPluginAvailable()
        Returns:
        true if diagram does not requires plugin or this plugin is available.
      • areFeaturesAvailable

        public boolean areFeaturesAvailable()
        Returns:
        true if diagram does not requires additional features or all required features are available.
      • isSupported

        public boolean isSupported()
        Returns:
        true if this diagram is supported in this edition or in current plugins configuration.
      • applyForcedProperties

        public void applyForcedProperties()
        Applies properties stored in default style for diagram and marked as forced. They can be marked as forced using "apply" from styles dialog.
      • setSnapToGridPaths

        public void setSnapToGridPaths​(boolean snap)
      • sSetSnapToGridPaths

        public void sSetSnapToGridPaths​(boolean snap)
      • isSnapToGridPaths

        public boolean isSnapToGridPaths()
      • close

        @OpenApi
        public final void close()
        Closes diagram window.
      • close

        public void close​(boolean closeWindow)
        Closes opened diagram If close window is 'false' and there is a possibility to back to previous diagram in that window, when previous diagram is opened Otherwise, diagram window is closed
        Parameters:
        closeWindow - if window should be closed
      • unloadDiagram

        public void unloadDiagram()
                           throws java.lang.Exception
        Disposes all symbols and creates not loaded data.
        Throws:
        java.lang.Exception - in case of some error
      • doUnload

        private void doUnload()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDefaultDiagramLayouter

        public DiagramLayouter getDefaultDiagramLayouter()
      • layout

        @OpenApi
        public boolean layout​(boolean useCommands)
        Layout the diagram using default layouter.

        Make sure before doing layout:

        Only selected symbols in diagram are layouted. All symbols are layouted if selection is empty. Use PresentationElement.setSelected(java.util.List) ()} to selects symbols in the diagram.
        Parameters:
        useCommands - true to create commands. If true, this command will be available in project's command history.
        Returns:
        true if layout was performed.
      • layout

        @OpenApi
        public boolean layout​(boolean useCommands,
                              DiagramLayouter layouter)
        Layouts the diagram with the specified layouter.

        Make sure before doing layout:

        Only selected symbols in diagram are layouted. All symbols are layouted if selection is empty. Use PresentationElement.setSelected(java.util.List) ()} to selects symbols in the diagram.
        Parameters:
        useCommands - true to create commands. If true, this command will be available in project's command history
        layouter - layouter to be used for layouting
        Returns:
        true if layout was performed.
      • layout

        @OpenApi
        public boolean layout​(boolean useCommands,
                              DiagramLayouter diagramLayouter,
                              AbstractDiagramLayouterOptionsGroup options)
        Layout the diagram.

        Make sure before doing layout:

        Only selected symbols in diagram are layouted. All symbols are layouted if selection is empty. Use PresentationElement.setSelected(java.util.List) ()} to selects symbols in the diagram.
        Parameters:
        useCommands - true to create commands. If true, this command will be available in project's command history
        diagramLayouter - layouter to use
        options - layout options
        Returns:
        true if layout was performed
      • getUsedModelElements

        @OpenApi
        @Deprecated
        public java.util.Collection<Element> getUsedModelElements​(boolean checkOnlyPersistent)
        Deprecated.
        checkOnlyPersistent parameter is ignored. Use getUsedModelElements()
        Returns collection of model elements that are drawn in this diagram.
        Parameters:
        checkOnlyPersistent - if true, result includes elements for symbols which are saved to XMI and not created at run-time. If false, includes all elements.
        Returns:
        collection of model elements.
      • getUsedModelElements

        @Deprecated
        public java.util.Collection<Element> getUsedModelElements​(boolean checkOnlyPersistent,
                                                                  boolean checkOnlyFriendly)
        Deprecated.
        checkOnlyPersistent and checkOnlyFriendly parameters are ignored. Use getUsedModelElements()
        Returns collection of model elements that are drawn in this diagram.
        Parameters:
        checkOnlyPersistent - if true, result includes elements for symbols which are saved to XMI and not created at run-time. If false, includes all elements.
        checkOnlyFriendly - check only "friendly" symbols
        Returns:
        collection of model elements.
      • getUsedModelElements

        @OpenApi
        public java.util.Collection<Element> getUsedModelElements()
        Returns collection of model elements that has views in this diagram.
        Returns:
        collection of model elements.
      • getUsedModelElements

        @OpenApi
        public java.util.Set<Element> getUsedModelElements​(UsedElementPolicy usedElementPolicy)
        Returns collection of model elements that are used in this diagram.
        Parameters:
        usedElementPolicy - used element policy
        Returns:
        collection of model elements.
      • collectShowingManipulatedElementsRecursively

        @OpenApi
        public java.util.Collection<PresentationElement> collectShowingManipulatedElementsRecursively()
        Collects all visible manipulated elements in this diagram recursively.
        Returns:
        manipulated elements in this diagram
      • collectShowingPresentationElementsRecursively

        @OpenApi
        public java.util.Collection<PresentationElement> collectShowingPresentationElementsRecursively()
        Collects all visible elements in this diagram recursively.
        Returns:
        visible elements in this diagram
      • collectPresentationElementsRecursively

        @OpenApi
        public java.util.Collection<PresentationElement> collectPresentationElementsRecursively()
        Collects all elements in this diagram recursively.
        Returns:
        elements in this diagram
      • clearUsedElementsCache

        private void clearUsedElementsCache()
      • isElementInDiagram

        @OpenApi
        public boolean isElementInDiagram​(Element element)
        Checks if given element exist in any diagram.
        Parameters:
        element - element
        Returns:
        true if element exist in any diagram otherwise false
      • isElementInDiagram

        @OpenApi
        public boolean isElementInDiagram​(Element element,
                                          UsedElementPolicy usedElementPolicy)
        Checks if given element exist in any diagram.
        Parameters:
        element - element
        Returns:
        true if element exist in any diagram otherwise false
      • isElementInDiagram

        public boolean isElementInDiagram​(Element element,
                                          boolean skipProxyCheck,
                                          UsedElementPolicy usedElementPolicy)
        Checks if given element exist in any diagram.
        Parameters:
        element - element
        skipProxyCheck - enables to skip if diagram's actual element is proxy
        Returns:
        true if element exist in any diagram otherwise false
      • collectUsedModelElements

        private static void collectUsedModelElements​(PresentationElement element,
                                                     java.util.Set<Element> result)
      • setDefaultStyleID

        public void setDefaultStyleID​(@CheckForNull
                                      java.lang.String id)
        Sets new diagram style id to representation object
        Parameters:
        id - new id
      • getDefaultStyleID

        @CheckForNull
        public java.lang.String getDefaultStyleID()
        Returns:
        Returns the defaultStyleForDiagramID, can be null if default style is equal to diagram style, or diagram is loaded.
      • getDefaultStyleForDiagram

        @CheckForNull
        public Style getDefaultStyleForDiagram​(StyleManager styleManager)
        Finds style for this diagram
        Parameters:
        styleManager - manager to find in.
        Returns:
        found style, null if no style is created.
      • getRealType

        @CheckForNull
        public java.lang.String getRealType()
        Returns real diagram type. Real diagram type is diagram type which is not registered but loaded from project file.
        Returns:
        real type. Can be null.
      • setRealType

        public void setRealType​(@CheckForNull
                                java.lang.String realType)
        If diagram type is not registered then known type is set. Real type is preserved for saving.
        Parameters:
        realType - real diagram type.
      • sSetScrollPosition

        public void sSetScrollPosition​(java.awt.Point p)
        Sets scroll position of the diagram.

        Note, it does not affect actual property value of the opened diagram. It only sets persistent data so the value can be restored after project reload. If user is manipulating the diagram property value will be overwritten.

        Parameters:
        p - new scroll position
      • sSetDiagramWindowOpen

        public void sSetDiagramWindowOpen​(boolean open)
        Marks diagram window open/close.

        Note, it does not affect actual property value of the opened diagram. It only sets persistent data so the value can be restored after project reload. If user is manipulating the diagram property value will be overwritten.

        Parameters:
        open - new state
      • sSetDiagramWindowActive

        public void sSetDiagramWindowActive​(boolean active)
        Marks diagram window (in)active.

        Note, it does not affect actual property value of the opened diagram. It only sets persistent data so the value can be restored after project reload. If user is manipulating the diagram property value will be overwritten.

        Parameters:
        active - new state
      • sSetDiagramActivationTime

        public void sSetDiagramActivationTime​(long activationTime)
        Marks diagram window activation time.

        Note, it does not affect actual property value of the opened diagram. It only sets persistent data so the value can be restored after project reload. If user is manipulating the diagram property value will be overwritten.

        Parameters:
        activationTime - time of activation
      • getScrollPosition

        public java.awt.Point getScrollPosition()
        Gets scroll position of the diagram.

        Note that property value is backed by project options and it may not reflect real value at all times.

        Returns:
        point designating the scroll position
        See Also:
        sSetScrollPosition(Point)
      • isDiagramWindowOpen

        public boolean isDiagramWindowOpen()
        Indicates if diagram is opened.

        Note that property value is backed by project options and it may not reflect real value at all times.

        Returns:
        true if diagram is opened
        See Also:
        sSetDiagramWindowOpen(boolean)
      • isDiagramWindowActive

        public boolean isDiagramWindowActive()
        Indicates if diagram is active.

        Note that property value is backed by project options and it may not reflect real value at all times.

        Returns:
        true if diagram is active
        See Also:
        sSetDiagramWindowActive(boolean)
      • getDiagramWindowActivationTime

        public long getDiagramWindowActivationTime()
        Returns diagram activation time.

        Note that property value is backed by project options and it may not reflect real value at all times.

        Returns:
        diagram activation time
        See Also:
        sSetDiagramActivationTime(long)
      • getCurrentDate

        public static java.lang.String getCurrentDate()
      • isDummyMode

        public boolean isDummyMode()
      • setDummyMode

        public void setDummyMode​(boolean dummyMode)
      • isActive

        public boolean isActive()
      • hasSelectableSymbols

        public boolean hasSelectableSymbols()
      • sSetDiagramFrame

        public void sSetDiagramFrame​(@CheckForNull
                                     DiagramFrameView diagramFrame)
      • getDiagramFrame

        @OpenApi
        @CheckForNull
        public DiagramFrameView getDiagramFrame()
        Get the frame of the diagram.
        Returns:
        frame of the diagram.
      • setRequiredFeature

        public void setRequiredFeature​(@CheckForNull
                                       com.nomagic.magicdraw.uml.symbols.RequiredFeature feature)
        Sets required feature for this diagram. Required feature can be plugin or core feature or profile. If required feature is not available diagram should not be loaded.
        Parameters:
        feature - new required feature. Can be null.
      • getRequiredFeature

        @CheckForNull
        public com.nomagic.magicdraw.uml.symbols.RequiredFeature getRequiredFeature()
        Required feature can be plugin or core feature.
        Returns:
        required feature for this diagram. If feature is not available diagram will be not loaded. If returns null no feature is required.
      • setInitialDiagramFrameBounds

        public void setInitialDiagramFrameBounds()
        Sets initial diagram frame bounds for this diagram's frame.
      • calculateInitialDiagramFrameBounds

        @CheckForNull
        private java.awt.Rectangle calculateInitialDiagramFrameBounds()
        Gets bounds which should be set for the diagram's frame.
      • adjustInitialDiagramFrameBounds

        public static void adjustInitialDiagramFrameBounds​(java.awt.Rectangle bounds)
        Adjust initial diagram frame bounds.
        Parameters:
        bounds - bounds
      • getVisibleBounds

        @CheckForNull
        public java.awt.Rectangle getVisibleBounds()
        Returns user visible bounds of the diagram.
        Returns:
        visible bounds or null if the diagram is not opened.
      • getStereotypesDisplayMode

        public java.lang.String getStereotypesDisplayMode()
        Description copied from interface: StereotypesDisplayModeOwner
        Gets stereotype display mode.
        Specified by:
        getStereotypesDisplayMode in interface com.nomagic.magicdraw.uml.symbols.shapes.DiagramFrameHeaderOwner
        Specified by:
        getStereotypesDisplayMode in interface StereotypesDisplayModeOwner
        Returns:
        stereotype display mode.
      • isAutosized

        public boolean isAutosized()
      • sSetAutosize

        public void sSetAutosize​(boolean val)
      • setAutosize

        public void setAutosize​(boolean val)
      • isUseFlowLayoutLogic

        public boolean isUseFlowLayoutLogic()
        Indicates if smart path/shape edit should be used in this diagram.
        Returns:
        true if smart symbol editing should be used, false otherwise.
      • addContentPropertyChangeListener

        @OpenApi
        public boolean addContentPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Registers the listener for changes in all symbols contained in the diagram.
        Parameters:
        listener - the PropertyChangeListener to be added
        Returns:
        true if listener was added - it wasn't there yet, otherwise false
      • removeContentPropertyChangeListener

        @OpenApi
        public boolean removeContentPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Unregister the given listener from the diagram.
        Parameters:
        listener - the PropertyChangeListener to be removed
        Returns:
        true if listener was removed
      • fireContentPropertyChange

        protected void fireContentPropertyChange​(PresentationElement source,
                                                 java.lang.String propertyName,
                                                 @CheckForNull
                                                 java.lang.Object oldValue,
                                                 @CheckForNull
                                                 java.lang.Object newValue)
        Delegates firePropertyChange to the PropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners. No event is fired if old and new values are equal or null.
        Parameters:
        source - source element
        propertyName - the programmatic name of the property that was changed.
        oldValue - the old value of the property
        newValue - the new value of the property
        See Also:
        PropertyChangeSupport
      • firePropertyChange

        public void firePropertyChange​(java.lang.String propertyName,
                                       @CheckForNull
                                       java.lang.Object oldValue,
                                       @CheckForNull
                                       java.lang.Object newValue)
        Description copied from interface: BaseElement
        Delegates firePropertyChange to the PropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners. No event is fired if old and new values are equal or null.
        Specified by:
        firePropertyChange in interface BaseElement
        Parameters:
        propertyName - the programmatic name of the property that was changed.
        oldValue - the old value of the property
        newValue - the new value of the property
        See Also:
        PropertyChangeSupport
      • recalculateInternalDataRequired

        public void recalculateInternalDataRequired()
      • isInitialFrameSizeSet

        @OpenApi
        public boolean isInitialFrameSizeSet()
        Returns:
        false if diagram frame size should not recalculated on opening.
      • setInitialFrameSizeSet

        @OpenApi
        public void setInitialFrameSizeSet​(boolean value)
        Set a flag that diagram frame size should not be recalculated on opening.
        Parameters:
        value - new value
      • getCenterlineManager

        public com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineManager getCenterlineManager()
        Gets centerline manager for this diagram.
        Returns:
        centerline manager for this diagram.
      • setUseGradientForFill

        public void setUseGradientForFill​(boolean use)
        Sets elements gradient fill option. Will presentation element use gradient fill, or not for painting.
        Parameters:
        use - true to use.
      • isUseGradientForFill

        public boolean isUseGradientForFill()
        Do we need to use gradient for fill color? Returns value of fill gradient property.
        Returns:
        True, when use gradient fill property is true.
      • resetContainer

        public void resetContainer()
        In case diagram type changes in way DiagramObjectViewContainer needs to be changed it should be reset and new one will be created on getContainer() first call.
      • getID

        public java.lang.String getID()
        Description copied from interface: BaseElement
        Returns the ID of the Element. If the ID is null, new id for element is generated. Element id is persistence and do not changes during project save/load.
        Specified by:
        getID in interface BaseElement
        Overrides:
        getID in class com.nomagic.magicdraw.uml.MDElementImpl
        Returns:
        the ID of the Element.
      • setID

        public void setID​(java.lang.String id)
        Description copied from interface: BaseElement
        Sets the specified ID to the Element.
        Specified by:
        setID in interface BaseElement
        Overrides:
        setID in class com.nomagic.magicdraw.uml.MDElementImpl
        Parameters:
        id - the id to be set.
      • setOpenConfigurator

        public void setOpenConfigurator​(@CheckForNull
                                        com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.OpenConfigurator openConfigurator)
        Sets open configurator.
        Parameters:
        openConfigurator - open configurator.
      • getOpenConfigurator

        @CheckForNull
        public com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.OpenConfigurator getOpenConfigurator()
      • isSymbolDiagram

        @OpenApi
        public boolean isSymbolDiagram()
        Checks if diagram displays symbols as its contents. Other type of diagrams may be tables, matrices.
        Returns:
        true if diagram displays symbols
      • initialize

        public void initialize()
        Description copied from class: PresentationElement
        Initialize symbol and its children state. Symbol must be initialized before doing any resize, painting and etc. These operations can lead to unpredictable results otherwise.
      • createPropertyManager

        protected void createPropertyManager()
        Create default property manager for Diagram, initializes default properties.
      • setInitializer

        public void setInitializer​(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementInitializer initializer)
        Sets custom diagram presentation element initializer.
        Parameters:
        initializer - custom diagram presentation element initializer.
      • getPathToMoveCache

        public com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.PathToMoveCache getPathToMoveCache()
        Returns:
        paths to move cache
      • getContentHash

        @CheckForNull
        public java.lang.String getContentHash()
      • setContentHash

        public void setContentHash​(@CheckForNull
                                   java.lang.String contentHash)
        sets identifier of contents. If identifier is the same diagram are the same.
        Parameters:
        contentHash - content hash
      • getRepresentation

        public com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject getRepresentation()
      • getDiagramViewOptions

        public com.nomagic.magicdraw.core.options.DiagramViewOptions getDiagramViewOptions()
        Gets diagram view options.
        Returns:
        diagram view options.
      • isOpening

        public boolean isOpening()
        Returns:
        true if diagram is in opening mode at the moment
      • hasHeavyWeightSymbols

        public boolean hasHeavyWeightSymbols()
        Check is diagram has heavy weight symbols - symbols those can be painted correctly only if diagram is displayed in some JComponent
        Returns:
        true if heavy weight symbols exists in the diagram
      • registerHeavyWeightSymbolsChecker

        public static void registerHeavyWeightSymbolsChecker​(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.HeavyWeightSymbolsChecker checker)
      • unRegisterHeavyWeightSymbolsChecker

        public static void unRegisterHeavyWeightSymbolsChecker​(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement.HeavyWeightSymbolsChecker checker)
      • sGetContainer

        @CheckForNull
        com.nomagic.magicdraw.uml.symbols.DiagramObjectViewContainer sGetContainer()
      • getDynamicStyleProviders

        public java.util.Collection<com.nomagic.magicdraw.uml.symbols.DynamicStyleProvider> getDynamicStyleProviders()
      • addDynamicStyleProvider

        public final void addDynamicStyleProvider​(com.nomagic.magicdraw.uml.symbols.DynamicStyleProvider dynamicStyleProvider)
      • removeDynamicStyleProvider

        public final void removeDynamicStyleProvider​(com.nomagic.magicdraw.uml.symbols.DynamicStyleProvider dynamicStyleProvider)
      • addDynamicRepresentationProvider

        public final void addDynamicRepresentationProvider​(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider)
      • removeDynamicRepresentationProvider

        public final void removeDynamicRepresentationProvider​(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider)
      • getDynamicRepresentationProviders

        public java.util.Collection<com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider> getDynamicRepresentationProviders()
      • addProvider

        private <T> void addProvider​(T provider,
                                     java.util.Collection<T> providers)
      • removeProvider

        private <T> void removeProvider​(T provider,
                                        java.util.Collection<T> providers)
      • repaintLater

        private void repaintLater()
      • isForceStoreContentOnSave

        public boolean isForceStoreContentOnSave()
      • setForceStoreContentOnSave

        public void setForceStoreContentOnSave​(boolean forceStoreContentOnSave)
      • sSetForceStoreContentOnSave

        private void sSetForceStoreContentOnSave​(boolean forceStoreContentOnSave)
      • isShapesAutoResizeSuspended

        public boolean isShapesAutoResizeSuspended()
      • sSetShapesAutoResizeSuspended

        public void sSetShapesAutoResizeSuspended​(boolean enabled)
      • setShapesAutoResizeSuspended

        public void setShapesAutoResizeSuspended​(boolean enabled)
      • autosizeSuspendedSymbolsWithHiddenContent

        public void autosizeSuspendedSymbolsWithHiddenContent()
      • isLabelsAutoDisplaySuspended

        public boolean isLabelsAutoDisplaySuspended()
      • sSetLabelsAutoDisplaySuspended

        public void sSetLabelsAutoDisplaySuspended​(boolean enabled)
      • setLabelsAutoDisplaySuspended

        public void setLabelsAutoDisplaySuspended​(boolean enabled)
      • getSuspendShapeAutoResizeMode

        public java.lang.String getSuspendShapeAutoResizeMode()
      • sSetSuspendShapeAutoResizeMode

        public void sSetSuspendShapeAutoResizeMode​(java.lang.String mode)
      • setSuspendShapeAutoResizeMode

        public void setSuspendShapeAutoResizeMode​(java.lang.String mode)