Klasse PathBuilder
java.lang.Object
impl.com.flexganttfx.skin.graphics.PathBuilder
The path builder is used to compute path nodes for instances of type
ActivityLink. It is only used by the LinksCanvas.- Seit:
- 1.0
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumAn enum listing the various directions the arrow can be painted.static final classstatic enumAn enumerator of possible locations that the target object can have relative to the source object. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuildPathEndToEnd(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.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.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.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.final doublegetCurve()Returns the radius of the curve.final doublegetGap()The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final doubleThe offset determines the end location of the first segment of the calculated path.final voidsetCurve(double curve) Sets the radius for the curve.final voidsetGap(double gap) The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final voidsetOffset(double offset) The offset determines the end location of the first segment of the calculated path.
-
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 rectangletargetRect- 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 rectangletargetRect- 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 rectangletargetRect- 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 rectangletargetRect- 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 (seesetOffset(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
-