JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Creates a curved path element, defined by three new points, by drawing a 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.geometry.*;
import javafx.scene.paint.*;
Path {
    fill:Color.BLACK
    elements: [
        MoveTo { x: 0 y: 50 },
        CurveTo {
            controlX1:   0     controlY1:  0
            controlX2: 100    controlY2: 100
                    x: 100            y:  50
        }
    ]
}

produces:

Profile: common

This comment needs review.

Attribute Summary

nametypedescription
Public
controlX1Number

Defines the X coordinate of the first Bézier control point.

More: [+]

Defines the X coordinate of the first Bézier control point.

Profile: common

controlX2Number

Defines the X coordinate of the second Bézier control point.

More: [+]

Defines the X coordinate of the second Bézier control point.

Profile: common

controlY1Number

Defines the Y coordinate of the first Bézier control point.

More: [+]

Defines the Y coordinate of the first Bézier control point.

Profile: common

controlY2Number

Defines the Y coordinate of the second Bézier control point.

More: [+]

Defines the Y coordinate of the second Bézier control point.

Profile: common

xNumber

Defines the X coordinate of the final end point.

More: [+]

Defines the X coordinate of the final end point.

Profile: common

yNumber

Defines the Y coordinate of the final end point.

More: [+]

Defines the Y coordinate of the final end point.

Profile: common

Protected

Inherited Attributes

javafx.scene.geometry.PathElement

nametypedescription
absoluteBoolean More: [+]

Profile: common

Inherited Functions