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.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.PinView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.LabelsDisplayModeSupporter, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class PinView extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
  • Field Details

    • TO_LEFT_EDGE_ICON

      public static final ResizableIcon TO_LEFT_EDGE_ICON
    • TO_RIGHT_EDGE_ICON

      public static final ResizableIcon TO_RIGHT_EDGE_ICON
    • TO_TOP_EDGE_ICON

      public static final ResizableIcon TO_TOP_EDGE_ICON
    • TO_BOTTOM_EDGE_ICON

      public static final ResizableIcon TO_BOTTOM_EDGE_ICON
  • Constructor Details

  • Method Details

    • createLabels

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

      protected void internalSpecificUpdate()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Specific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.
      Overrides:
      internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • getElement

      public Pin 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.
    • constructNameText

      @CheckForNull public String constructNameText()
      Overrides:
      constructNameText in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PresentationElement
      Applies properties from given property manager
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
      Parameters:
      changer - new properties
    • internalSilentApply

      public void internalSilentApply()
      Description copied from class: PresentationElement
      Silently applies all properties after initialization
      Overrides:
      internalSilentApply in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementWithLabels
    • setShowProperties

      public void setShowProperties(boolean show)
    • sSetShowProperties

      public void sSetShowProperties(boolean show)
    • isShowProperties

      public boolean isShowProperties()
    • 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.shapes.TypedElementWithLabels
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • isSnapToGrid

      protected boolean isSnapToGrid()
      Overrides:
      isSnapToGrid in class ShapeElement
    • getOnEdgePosition

      public int getOnEdgePosition()
      Description copied from class: ShapeElement
      Returns position on edge.
      Overrides:
      getOnEdgePosition in class ShapeElement
      Returns:
      position on edge.
      See Also:
    • findOwnerForElement

      public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement parent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext)
      Overrides:
      findOwnerForElement in class PresentationElement
    • getOnEdgeCornerDistance

      public int getOnEdgeCornerDistance()
      Overrides:
      getOnEdgeCornerDistance in class ShapeElement
      Returns:
      inset from a corner
    • getHumanType

      public String getHumanType()
      Description copied from class: PresentationElement
      Returns human representation of the data type
      Specified by:
      getHumanType in interface BaseElement
      Overrides:
      getHumanType in class PresentationElement
      Returns:
      the name of the data
    • getHumanName

      public String getHumanName()
      Description copied from class: PresentationElement
      Returns human representation of the data type
      Specified by:
      getHumanName in interface BaseElement
      Overrides:
      getHumanName in class PresentationElement
      Returns:
      the name of the data
    • setOnEdge

      public void setOnEdge(int onEdge)
      Description copied from class: ShapeElement
      Sets on edge property.
      Overrides:
      setOnEdge in class ShapeElement
      Parameters:
      onEdge - the edge constant
      See Also:
    • addConnectedPathElement

      public boolean addConnectedPathElement(PathElement element)
      Description copied from class: PathConnector
      Adds a new path element, and recalculates its position.
      Overrides:
      addConnectedPathElement in class PathConnector
      Parameters:
      element - element to be added.
      Returns:
      true if an element was added
    • removeConnectedPathElement

      public boolean removeConnectedPathElement(PathElement element)
      Description copied from class: PathConnector
      Removes path element.
      Overrides:
      removeConnectedPathElement in class PathConnector
      Parameters:
      element - element to remove.
      Returns:
      true if an element was removed
    • updateIcon

      protected void updateIcon()
      Overrides:
      updateIcon in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
    • isInputPin

      public boolean isInputPin()
    • isOutputPin

      public boolean isOutputPin()
    • isDeciderPin

      public boolean isDeciderPin()
    • isValuePin

      public boolean isValuePin()
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
    • 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:
    • isDrawRectangle

      protected boolean isDrawRectangle()
      Overrides:
      isDrawRectangle in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabelsInside
    • isVerticalCenterlineProvider

      public boolean isVerticalCenterlineProvider()
      Description copied from class: ShapeElement
      Indicates whether this shape provides vertical center-lines to other shapes.
      Overrides:
      isVerticalCenterlineProvider in class ShapeElement
      Returns:
      true if this shape provides vertical center lines, false otherwise.
    • isHorizontalCenterlineProvider

      public boolean isHorizontalCenterlineProvider()
      Description copied from class: ShapeElement
      Indicates whether this shape provides horizontal center-lines to other shapes.
      Overrides:
      isHorizontalCenterlineProvider in class ShapeElement
      Returns:
      true if this shape provides horizontal center-lines, false otherwise.
    • hasSharedModelElement

      public boolean hasSharedModelElement()
      Description copied from class: PresentationElement
      Returns true if ModelElement of this symbol can represented with other symbol. If ModelElement is not shared, it can be deleted together with symbol deleting.
      Overrides:
      hasSharedModelElement in class PresentationElement
      Returns:
      true if element of this symbol can be represented with other symbol.