Class StraightLinkRenderer<T extends ActivityLink<?>>


public class StraightLinkRenderer<T extends ActivityLink<?>>
extends LinkRenderer<T>
The straight link renderer is used to draw any link of type ActivityLink. It is only used by the LinksCanvas.
  • Constructor Details

    • StraightLinkRenderer

      public StraightLinkRenderer​(GraphicsBase<?> graphics, String name)
      Constructs a new link renderer.
  • Method Details

    • drawStartToStart

      protected void drawStartToStart​(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a link in the given graphics context from the start of the source rectangle to the start of the target rectangle.
      Specified by:
      drawStartToStart in class LinkRenderer<T extends ActivityLink<?>>
      Parameters:
      sourceRect - the source rectangle
      targetRect - the target rectangle
    • drawEndToEnd

      protected void drawEndToEnd​(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a link in the given graphics context from the end of the source rectangle to the end of the target rectangle.
      Specified by:
      drawEndToEnd in class LinkRenderer<T extends ActivityLink<?>>
      Parameters:
      sourceRect - the source rectangle
      targetRect - the target rectangle
    • drawStartToEnd

      protected void drawStartToEnd​(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a link in the given graphics context from the start of the source rectangle to the end of the target rectangle.
      Specified by:
      drawStartToEnd in class LinkRenderer<T extends ActivityLink<?>>
      Parameters:
      sourceRect - the source rectangle
      targetRect - the target rectangle
    • drawEndToStart

      protected void drawEndToStart​(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a link in the given graphics context from the end of the source rectangle to the start of the target rectangle.
      Specified by:
      drawEndToStart in class LinkRenderer<T extends ActivityLink<?>>
      Parameters:
      sourceRect - the source rectangle
      targetRect - the target rectangle