Klasse LinkRenderer<T extends ActivityLink<?>>

java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.LinkRenderer<T>
Bekannte direkte Unterklassen:
CurvedLinkRenderer, StraightLinkRenderer

public abstract class LinkRenderer<T extends ActivityLink<?>> extends RendererBase
The base class for all link renderers. It is only used by the LinksCanvas.
Seit:
1.0
Siehe auch:
  • Eigenschaftsdetails

  • Konstruktordetails

    • LinkRenderer

      protected LinkRenderer(GraphicsBase<?> graphics, String name)
      Constructs a new link renderer.
      Seit:
      1.0
  • Methodendetails

    • calculateTargetLocation

      protected final LinkRenderer.TargetLocation calculateTargetLocation(double sx, double sy, double tx, double ty)
    • draw

      public void draw(T link, GraphicsContext gc, Rectangle2D sourceBounds, Rectangle2D targetBounds)
      Draws the given link between the two activity bounds into the given graphics context.
      Parameter:
      link - the link to draw
      gc - the graphics context
      sourceBounds - the bounds of the source activity
      targetBounds - the bounds of the target activity
    • drawStartToStart

      protected abstract void drawStartToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a path in the given graphics context from the start of the source rectangle to the start of the target rectangle.
      Parameter:
      sourceRect - the source rectangle
      targetRect - the target rectangle
      Seit:
      1.0
    • drawEndToEnd

      protected abstract void drawEndToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a path in the given graphics context from the end of the source rectangle to the end of the target rectangle.
      Parameter:
      sourceRect - the source rectangle
      targetRect - the target rectangle
      Seit:
      1.0
    • drawStartToEnd

      protected abstract void drawStartToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a path in the given graphics context from the start of the source rectangle to the end of the target rectangle.
      Parameter:
      sourceRect - the source rectangle
      targetRect - the target rectangle
      Seit:
      1.0
    • drawEndToStart

      protected abstract void drawEndToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)
      Draws a path in the given graphics context from the end of the source rectangle to the start of the target rectangle.
      Parameter:
      sourceRect - the source rectangle
      targetRect - the target rectangle
      Seit:
      1.0
    • drawArrowHead

      protected void drawArrowHead(LinkRenderer.ArrowDirection direction, GraphicsContext gc, double x, double y)
    • getStrokeWidth

      public final double getStrokeWidth()
      Ruft den Wert der strokeWidth-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      Gibt zurück:
      Wert der Eigenschaft strokeWidth
      Siehe auch:
    • strokeWidthProperty

      public final DoubleProperty strokeWidthProperty()
      Gibt zurück:
      die Eigenschaft strokeWidth
      Siehe auch:
    • setStrokeWidth

      public final void setStrokeWidth(double strokeWidth)
      Legt den Wert der strokeWidth-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      Parameter:
      strokeWidth - Wert für die Eigenschaft strokeWidth
      Siehe auch:
    • getStrokeColor

      public final Color getStrokeColor()
      Ruft den Wert der strokeColor-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      Gibt zurück:
      Wert der Eigenschaft strokeColor
      Siehe auch:
    • strokeColorProperty

      public final ObjectProperty<Color> strokeColorProperty()
      Gibt zurück:
      die Eigenschaft strokeColor
      Siehe auch:
    • setStrokeColor

      public final void setStrokeColor(Color strokeColor)
      Legt den Wert der strokeColor-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      Parameter:
      strokeColor - Wert für die Eigenschaft strokeColor
      Siehe auch:
    • getArrowHeadColor

      public final Color getArrowHeadColor()
      Ruft den Wert der arrowHeadColor-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      Gibt zurück:
      Wert der Eigenschaft arrowHeadColor
      Siehe auch:
    • arrowHeadColorProperty

      public final ObjectProperty<Color> arrowHeadColorProperty()
      Gibt zurück:
      die Eigenschaft arrowHeadColor
      Siehe auch:
    • setArrowHeadColor

      public final void setArrowHeadColor(Color arrowHeadColor)
      Legt den Wert der arrowHeadColor-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      Parameter:
      arrowHeadColor - Wert für die Eigenschaft arrowHeadColor
      Siehe auch:
    • arrowSizeProperty

      public final IntegerProperty arrowSizeProperty()
      The arrow size determines how big the arrow head will be drawn.
      Gibt zurück:
      the arrow head size
      Siehe auch:
    • getArrowSize

      public final int getArrowSize()
      Ruft den Wert der arrowSize-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      The arrow size determines how big the arrow head will be drawn.
      Gibt zurück:
      Wert der Eigenschaft arrowSize
      Siehe auch:
    • setArrowSize

      public final void setArrowSize(int arrowSize)
      Legt den Wert der arrowSize-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The arrow size determines how big the arrow head will be drawn.
      Parameter:
      arrowSize - Wert für die Eigenschaft arrowSize
      Siehe auch:
    • offsetProperty

      public final DoubleProperty offsetProperty()
      The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.
      Gibt zurück:
      die Eigenschaft offset
      Siehe auch:
    • getOffset

      public final double getOffset()
      The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.
      Gibt zurück:
      the offset
      Seit:
      1.0
    • setOffset

      public final void setOffset(double offset)
      The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.
      Parameter:
      offset - the offset in pixels
      Seit:
      1.0
    • gapProperty

      public DoubleProperty gapProperty()
      The gap determines how far the line is drawn away from the bounds of the source or target timeline object.
      Gibt zurück:
      die Eigenschaft gap
      Siehe auch:
    • getGap

      public final double getGap()
      The gap determines how far the line is drawn away from the bounds of the source or target timeline object.
      Gibt zurück:
      the gap between line and timeline objects
      Seit:
      1.0
    • setGap

      public final void setGap(double gap)
      The gap determines how far the line is drawn away from the bounds of the source or target timeline object.
      Parameter:
      gap - the distance between line and timeline objects
      Seit:
      1.0