Class PathRenderer

java.lang.Object
com.nomagic.magicdraw.uml.symbols.PresentationElementRenderer
com.nomagic.magicdraw.uml.symbols.paths.PathRenderer

@OpenApiAll @Deprecated public abstract class PathRenderer extends PresentationElementRenderer
Deprecated.
use PathElementRenderer which also allows decorating the path while creating a new one, which is not yet connected in the model.
Path element renderer allows to customize (change) the default view of PathElement.
See Also:
  • Constructor Details

    • PathRenderer

      public PathRenderer()
      Deprecated.
  • Method Details

    • getClientEndPreferredSize

      protected int getClientEndPreferredSize(PathElement pathElement)
      Deprecated.
      The path client end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the client end size.
      Parameters:
      pathElement - path element.
      Returns:
      end size, or 0 to use default end size.
    • getSupplierEndPreferredSize

      protected int getSupplierEndPreferredSize(PathElement pathElement)
      Deprecated.
      The path supplier end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the supplier end size.
      Parameters:
      pathElement - path element.
      Returns:
      end size, or 0 to use default end size.
    • getClientEndRenderer

      @CheckForNull protected PathEndRenderer getClientEndRenderer(PathElement pathElement)
      Deprecated.
      Provides the path client end renderer. Override the method to return the custom path end renderer.
      Parameters:
      pathElement - path element.
      Returns:
      custom renderer, or null to use default end renderer.
      See Also:
    • getSupplierEndRenderer

      @CheckForNull protected PathEndRenderer getSupplierEndRenderer(PathElement pathElement)
      Deprecated.
      Provides the path supplier end renderer. Override the method to return the custom path end renderer.
      Parameters:
      pathElement - path element.
      Returns:
      custom renderer, or null to use default end renderer.
      See Also:
    • getPathStroke

      @CheckForNull protected BasicStroke getPathStroke(PathElement pathElement)
      Deprecated.
      Stroke used to draw path. Override to change the stroke for path drawing.
      Parameters:
      pathElement - drawing path.
      Returns:
      custom stroke, or null to use the default stroke.
      See Also:
    • getLineWidth

      public int getLineWidth(PresentationElement presentationElement)
      Deprecated.
      Returns path line width. Override to use the custom line width.
      Parameters:
      presentationElement - drawing path.
      Returns:
      line width, or 0 to use default line width.
    • drawPathAdornment

      @OpenApi protected void drawPathAdornment(Graphics g, PathElement pathElement)
      Deprecated.
      Draws the path adornment. By default draws no adornment. Override the method to add the custom adornment drawing.
      Parameters:
      g - graphics where path is drawn.
      pathElement - path to draw adornment for.
    • updateText

      protected final void updateText(PresentationElement presentationElement)
      Deprecated.
      Update path text.
      Specified by:
      updateText in class PresentationElementRenderer
      Parameters:
      presentationElement - presentation element