public class PathBuilder extends Object
ActivityLink
. It is only used by the LinksCanvas
.Modifier and Type | Class and Description |
---|---|
static class |
PathBuilder.ArrowDirection
An enum listing the various directions the arrow can be painted.
|
static class |
PathBuilder.TargetLocation
An enumerator of possible locations that the target object can have
relative to the source object.
|
Constructor and Description |
---|
PathBuilder()
Constructs a new path calculator.
|
Modifier and Type | Method and Description |
---|---|
impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult |
buildPathEndToEnd(javafx.geometry.Rectangle2D sourceRect,
javafx.geometry.Rectangle2D targetRect)
Builds a path in the given graphics context from the end of the source
rectangle to the end of the target rectangle.
|
impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult |
buildPathEndToStart(javafx.geometry.Rectangle2D sourceRect,
javafx.geometry.Rectangle2D targetRect)
Builds a path in the given graphics context from the end of the source
rectangle to the start of the target rectangle.
|
impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult |
buildPathStartToEnd(javafx.geometry.Rectangle2D sourceRect,
javafx.geometry.Rectangle2D targetRect)
Builds a path in the given graphics context from the start of the source
rectangle to the end of the target rectangle.
|
impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult |
buildPathStartToStart(javafx.geometry.Rectangle2D sourceRect,
javafx.geometry.Rectangle2D targetRect)
Builds a path in the given graphics context from the start of the source
rectangle to the start of the target rectangle.
|
double |
getCurve()
Returns the radius of the curve.
|
double |
getGap()
The gap determines how far the line is drawn away from the bounds of the
source or target timeline object.
|
double |
getOffset()
The offset determines the end location of the first segment of the
calculated path.
|
void |
setCurve(double curve)
Sets the radius for the curve.
|
void |
setGap(double gap)
The gap determines how far the line is drawn away from the bounds of the
source or target timeline object.
|
void |
setOffset(double offset)
The offset determines the end location of the first segment of the
calculated path.
|
public impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult buildPathStartToStart(javafx.geometry.Rectangle2D sourceRect, javafx.geometry.Rectangle2D targetRect)
sourceRect
- the source rectangletargetRect
- the target rectanglepublic impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult buildPathEndToEnd(javafx.geometry.Rectangle2D sourceRect, javafx.geometry.Rectangle2D targetRect)
sourceRect
- the source rectangletargetRect
- the target rectanglepublic impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult buildPathStartToEnd(javafx.geometry.Rectangle2D sourceRect, javafx.geometry.Rectangle2D targetRect)
sourceRect
- the source rectangletargetRect
- the target rectanglepublic impl.com.flexganttfx.skin.graphics.PathBuilder.PathBuilderResult buildPathEndToStart(javafx.geometry.Rectangle2D sourceRect, javafx.geometry.Rectangle2D targetRect)
sourceRect
- the source rectangletargetRect
- the target rectanglepublic final double getOffset()
public final void setOffset(double offset)
offset
- the offset in pixelspublic final void setCurve(double curve)
setOffset(double)
). Setting this value to 0 results
in corners instead of curves.curve
- the radius of the curvepublic final double getCurve()
public final double getGap()
public final void setGap(double gap)
gap
- the distance between line and timeline objectsCopyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.