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

expand all

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccontrolX1Number0.0

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

publiccontrolX2Number0.0

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

publiccontrolY1Number0.0

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

publiccontrolY2Number0.0

Defines the Y coordinate of the second Bézier 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

 

Function Summary

Inherited Functions

javafx.scene.shape.PathElement




Spec-Zone.ru - all specs in one place