Overview
Creates a curved path element, defined by three new points,
by drawing a Cubic Bézier curve that intersects both the current coordinates
and the specified coordinates (x,y), using the
specified points (controlX1,controlY1) and (controlX2,controlY2)
as Bézier control points. All coordinates are specified in double precision.
the code:
import javafx.scene.shape.*;
Path {
elements: [
MoveTo { x: 0 y: 50 },
CubicCurveTo {
controlX1: 0 controlY1: 0
controlX2: 100 controlY2: 100
x: 100 y: 50
}
]
}produces:

Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | controlX1 | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the X coordinate of the first Bézier control point. |
| public | controlX2 | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the X coordinate of the second Bézier control point. |
| public | controlY1 | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the Y coordinate of the first Bézier control point. |
| public | controlY2 | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the Y coordinate of the second Bézier control point. |
| public | x | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the X coordinate of the final end point. |
| public | y | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the Y coordinate of the final end point. |
Inherited Variables
javafx.scene.shape.PathElement
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | absolute | Boolean | ![]() | ![]() | ![]() | true |
A flag that indicates whether the path coordinates are absolute or relative.
A flag that indicates whether the path coordinates are absolute or relative. A value of true indicates that the coordinates are absolute values. A value of false indicates that the values in this PathElement are added to the coordinates of the previous PathElement to compute the actual coordinates. trueProfile: common |

