Klasse PathBuilder

java.lang.Object
impl.com.flexganttfx.skin.graphics.PathBuilder

public class PathBuilder extends Object
The path builder is used to compute path nodes for instances of type ActivityLink. It is only used by the LinksCanvas.
Seit:
1.0
  • Konstruktordetails

    • PathBuilder

      public PathBuilder()
      Constructs a new path calculator.
      Seit:
      1.0
  • Methodendetails

    • buildPathStartToStart

      public PathBuilder.PathBuilderResult buildPathStartToStart(Rectangle2D sourceRect, Rectangle2D targetRect)
      Builds 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
      Gibt zurück:
      the result path
      Seit:
      1.0
    • buildPathEndToEnd

      public PathBuilder.PathBuilderResult buildPathEndToEnd(Rectangle2D sourceRect, Rectangle2D targetRect)
      Builds 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
      Gibt zurück:
      the result path
      Seit:
      1.0
    • buildPathStartToEnd

      public PathBuilder.PathBuilderResult buildPathStartToEnd(Rectangle2D sourceRect, Rectangle2D targetRect)
      Builds 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
      Gibt zurück:
      the result path
      Seit:
      1.0
    • buildPathEndToStart

      public PathBuilder.PathBuilderResult buildPathEndToStart(Rectangle2D sourceRect, Rectangle2D targetRect)
      Builds 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
      Gibt zurück:
      the result path
      Seit:
      1.0
    • 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
    • setCurve

      public final void setCurve(double curve)
      Sets the radius for the curve. The radius can not be larger than the offset (see setOffset(double)). Setting this value to 0 results in corners instead of curves.
      Parameter:
      curve - the radius of the curve
      Seit:
      1.0
    • getCurve

      public final double getCurve()
      Returns the radius of the curve.
      Gibt zurück:
      the curve radius
      Seit:
      1.0
    • 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