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

Profile: desktop, common

Overview

Creates a curved path element, defined by two new points, by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x, y), using the specified point (controlX, controlY) as a quadratic parametric control point. All coordinates are specified in double precision.

the code:

import javafx.scene.geometry.*;
import javafx.scene.paint.*;
Path {
    stroke:Color.BLACK
    elements: [
        MoveTo { x: 0 y: 50 },
        QuadTo { 
            controlX: 25.0
            controlY: 0.0
            x: 50.0
            y: 50.0
        }
    ]
}

produces:

Profile: common

Attribute Summary

nametypedescription
Public
controlXNumber

Defines the X coordinate of the quadratic control point.

More: [+]

Defines the X coordinate of the quadratic control point.

Profile: common

controlYNumber

Defines the Y coordinate of the quadratic control point.

More: [+]

Defines the Y coordinate of the quadratic 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