Spec-Zone .ru
спецификации, руководства, описания, API

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 Bézier curve that intersects both the current coordinates and the specified coordinates (x, y), using the specified point (controlX, controlY) as a Bézier control point. All coordinates are specified in double precision.

the code:

import javafx.scene.shape.*;

Path {
    elements: [
        MoveTo { x: 0 y: 50 },
        QuadCurveTo {
            controlX: 25.0  controlY: 0.0
            x: 50.0  y: 50.0
        }
    ]
}

produces:

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccontrolXNumber0.0

Defines the X coordinate of the quadratic control point.

publiccontrolYNumber0.0

Defines the Y coordinate of the quadratic control point.

publicxNumber0.0

Defines the X coordinate of the final end point.

publicyNumber0.0

Defines the Y coordinate of the final end point.

Inherited Variables

javafx.scene.shape.PathElement

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicabsoluteBooleantrue

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.

true

Profile: common

 

Inherited Functions