public final class CurvedArrow
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javafx.scene.shape.Shape |
create(double startAngle,
double radius,
double length,
double xOffset,
double headSize)
Creates a new curved arrow.
|
static javafx.scene.shape.Shape |
createPolar(double startAngle,
double radius,
double sweepAngle,
double xOffset,
double headSize)
Creates a new curved arrow.
|
static javafx.scene.shape.Shape |
createStraight(double length,
double angle,
double xOffset,
double headSize)
Creates a straight arrow, which is just a curved arrow with an infinite radius.
|
public static javafx.scene.shape.Shape createStraight(double length, double angle, double xOffset, double headSize)
length
- the length of the arrowangle
- the angle of the arrow, in radiansxOffset
- how much to offset the arrow along the X-axisheadSize
- the length of the head of the arrowpublic static javafx.scene.shape.Shape create(double startAngle, double radius, double length, double xOffset, double headSize)
startAngle
- the starting angle of the arc, in radiansradius
- the radius of the arrow. Must be non-negative.length
- the length of the arrow, in the same units as radius
xOffset
- how much to offset the arc along the X-axisheadSize
- the length of the head of the arrowjava.lang.IllegalArgumentException
- if radius
or headSize
are negativepublic static javafx.scene.shape.Shape createPolar(double startAngle, double radius, double sweepAngle, double xOffset, double headSize)
create(startAngle, radius, radius * sweepAngle, xOffset, headSize)
.startAngle
- the starting angle of the arc, in radiansradius
- the radius of the arcsweepAngle
- the sweep of the arc, in radiansxOffset
- how much to offset the arc along the X-axisheadSize
- the length of the head of the arrowjava.lang.IllegalArgumentException
- if radius
or headSize
are negative