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
    }
    ]
    }

Profile: common

Variable Summary

access name type Can Read Can Init Can Write Default Value description
public controlX Number 0.0

Defines the X coordinate of the quadratic control point.

public controlY Number 0.0

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

true

Profile: common

 

Inherited Functions