Class StraightLinkRenderer<T extends ActivityLink<?>>

    • Constructor Detail

      • StraightLinkRenderer

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

      • 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