Klasse 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.
  • Konstruktordetails

    • StraightLinkRenderer

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

    • 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.
      Angegeben von:
      drawStartToStart in Klasse LinkRenderer<T extends ActivityLink<?>>
      Parameter:
      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.
      Angegeben von:
      drawEndToEnd in Klasse LinkRenderer<T extends ActivityLink<?>>
      Parameter:
      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.
      Angegeben von:
      drawStartToEnd in Klasse LinkRenderer<T extends ActivityLink<?>>
      Parameter:
      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.
      Angegeben von:
      drawEndToStart in Klasse LinkRenderer<T extends ActivityLink<?>>
      Parameter:
      sourceRect - the source rectangle
      targetRect - the target rectangle