Class GenericView

  • All Implemented Interfaces:
    BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.CompartmentContainer, com.nomagic.magicdraw.uml.symbols.CompartmentOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, 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 GenericView
    extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
    Generic View is used to represent a view in a multiple diagrams as a simple shape, to be able to customize its appearance with custom renderers
    • Field Detail

      • mIdentifier

        private java.lang.String mIdentifier
    • Constructor Detail

      • GenericView

        public GenericView​(@CheckForNull
                           PresentationElement parent,
                           @CheckForNull
                           Element element,
                           java.lang.String identifier)
      • GenericView

        public GenericView()
        Default constructor
    • Method Detail

      • 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
        Overrides:
        accept in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • setIdentifier

        @OpenApi
        public void setIdentifier​(@CheckForNull
                                  java.lang.String identifier)
      • getIdentifier

        @OpenApi
        public java.lang.String getIdentifier()
      • canChangeElementParent

        public boolean canChangeElementParent​(java.util.Collection<PresentationElement> movedTogether,
                                              @CheckForNull
                                              BaseElement newParent)
        Description copied from class: PresentationElement
        Returns true, if symbol does not restrict it's element ownership change
        Parameters:
        movedTogether - collection of the elements, whose will change the parent together with this symbol
        newParent - new symbol parent
        Returns:
        true if parent of element can be changed.