Class GeneralizationView

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.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.GeneralizationView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class GeneralizationView extends com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype implements com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
  • Constructor Details

    • GeneralizationView

      public GeneralizationView()
    • GeneralizationView

      public GeneralizationView(@CheckForNull PresentationElement parent)
  • Method Details

    • asPathElement

      public PathElement asPathElement()
      Specified by:
      asPathElement in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • createTreeShape

      public com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape createTreeShape()
      Specified by:
      createTreeShape in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • updateTreeShapeByTreeShapeConnector

      public void updateTreeShapeByTreeShapeConnector(PathElement otherPath, com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape treeShape)
      Specified by:
      updateTreeShapeByTreeShapeConnector in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • createLabels

      protected void createLabels()
      Overrides:
      createLabels in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
    • setParent

      public void setParent(PresentationElement parent)
      Description copied from class: PresentationElement
      Overrides:
      setParent in class PathConnector
      Parameters:
      parent - parent view
    • getActualClientDrawPoint

      public Point getActualClientDrawPoint()
      Description copied from class: PathElement
      Returns actual client side draw point.
      Overrides:
      getActualClientDrawPoint in class PathElement
      Returns:
      actual client draw point.
    • getActualSupplierDrawPoint

      public Point getActualSupplierDrawPoint()
      Description copied from class: PathElement
      Returns actual supplier side draw point.
      Overrides:
      getActualSupplierDrawPoint in class PathElement
      Returns:
      actual supplier draw point.
    • drawAnchor

      public Point drawAnchor(Graphics2D g, int x1, int y1, int x2, int y2, int size, boolean fill, Color fillColor)
      Specified by:
      drawAnchor in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • setTreeShape

      public void setTreeShape(com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape tree)
      Specified by:
      setTreeShape in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • sSetTreeShape

      public void sSetTreeShape(com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape tree)
      Specified by:
      sSetTreeShape in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • retrieveDataFromTreeView

      public void retrieveDataFromTreeView(com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape tree)
      Specified by:
      retrieveDataFromTreeView in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • getElement

      public Generalization 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 com.nomagic.magicdraw.uml.symbols.LabelOwner
      Specified by:
      getElement in interface ModelElementProvider
      Overrides:
      getElement in class PresentationElement
      Returns:
      model element of this presentation element.
    • getGeneralization

      @CheckForNull public Generalization getGeneralization()
    • getTreeShape

      @CheckForNull public com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape getTreeShape()
      Specified by:
      getTreeShape in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • getInternalStroke

      public BasicStroke getInternalStroke(boolean line, int width)
      Specified by:
      getInternalStroke in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • 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.paths.LinkWithStereotype
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • sSetSimple

      public void sSetSimple(boolean simple)
      Specified by:
      sSetSimple in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • setSimple

      public void setSimple(boolean simple)
      Specified by:
      setSimple in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in interface com.nomagic.magicdraw.uml.symbols.paths.TreeShapeConnector
    • useOtherExistingElement

      public com.nomagic.utils.Pair<com.dassault_systemes.modeler.foundation.model.ModelElement,Consumer<com.dassault_systemes.modeler.foundation.model.ModelElement>> useOtherExistingElement()
      Description copied from class: PathElement
      Finds and returns other model element which is semantically equivalent to this path model element. Found element can be modified. This method is invoked during new PathElement creation and purpose of it is to reuse existing model elements instead of creating new ones.
      Overrides:
      useOtherExistingElement in class PathElement
      Returns:
      element
    • canHavePaths

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

      @CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement internalGetModelElementToConnectRelationship(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient)
      Description copied from class: PresentationElement
      Returns element that should be used for given relationship connecting. All possible elements are returned by method PresentationElement.getModelElementsForRelationshipConnecting().
      Overrides:
      internalGetModelElementToConnectRelationship in class PresentationElement
      Returns:
      all possible elements
      See Also:
    • getGeneralizationSetLabelBox

      @CheckForNull public GeneralizationSetView getGeneralizationSetLabelBox()
    • getGeneralizationSetLabelWrapper

      public com.nomagic.magicdraw.uml.symbols.shapes.GeneralizationSetLabelWrapper getGeneralizationSetLabelWrapper()
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
    • isShowGeneralizationSet

      public boolean isShowGeneralizationSet()
    • sSetShowGeneralizationSet

      public void sSetShowGeneralizationSet(boolean show)
    • setShowGeneralizationSet

      public void setShowGeneralizationSet(boolean show)