Class TemplateBindingView

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.TemplateBindingView
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.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

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

    • TemplateBindingView

      public TemplateBindingView(@CheckForNull PresentationElement parent)
    • TemplateBindingView

      public TemplateBindingView()
  • Method Details

    • 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
    • constructNameTextToDisplay

      @CheckForNull public String constructNameTextToDisplay()
      Overrides:
      constructNameTextToDisplay in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Returns:
      pure name text for displaying
    • dispose

      public void dispose()
      Description copied from class: PathElement
      Disconnect this link from shapes.
      Specified by:
      dispose in interface BaseElement
      Overrides:
      dispose in class PathElement
    • atInsert

      public void atInsert()
      Description copied from class: PathElement
      Inserts ends of link into shapes.
      Specified by:
      atInsert in interface BaseElement
      Overrides:
      atInsert in class PathElement
    • internalGetPresentationElementStroke

      public BasicStroke internalGetPresentationElementStroke(boolean line, int width)
      Description copied from class: PathElement
      This method must be overridden, if you need to use DASHED_STROKE or another one.
      Overrides:
      internalGetPresentationElementStroke in class PathElement
      Parameters:
      line - true if for line, false if for adornments also
      width - width
      Returns:
      the stroke for line drawing ( by default SOLID_STROKE).
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PathElement
      Applies properties
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
      Parameters:
      changer - new properties
    • isUseCompactBindingNotation

      public boolean isUseCompactBindingNotation()
      Gets use compact binding notation property value.
      Returns:
      use compact binding notation property value.
    • sSetUseCompactBindingNotation

      public void sSetUseCompactBindingNotation(boolean value)
      Simple sets use compact binding notation property value.
      Parameters:
      value - use compact binding notation property value.
    • setUseCompactBindingNotation

      public void setUseCompactBindingNotation(boolean value)
      Sets use compact binding notation property value.
      Parameters:
      value - use compact binding notation property value.
    • createSmartListenerConfig

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

      public TemplateBinding 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.