public class QuadCurveTo extends PathElement
(x, y),
using the specified point (controlX, controlY)
as a Bézier control point.
All coordinates are specified in double precision.
For more information on path elements see the Path and
PathElement classes.
Example:
import javafx.scene.shape.*; Path path = new Path(); MoveTo moveTo = new MoveTo(); moveTo.setX(0.0f); moveTo.setY(50.0f); QuadCurveTo quadTo = new QuadCurveTo(); quadTo.setControlX(25.0f); quadTo.setControlY(0.0f); quadTo.setX(50.0f); quadTo.setY(50.0f); path.getElements().add(moveTo); path.getElements().add(cubicTo);
| Type | Property and Description |
|---|---|
DoubleProperty |
controlX
Defines the X coordinate of the quadratic control point.
|
DoubleProperty |
controlY
Defines the Y coordinate of the quadratic control point.
|
DoubleProperty |
x
Defines the X coordinate of the final end point.
|
DoubleProperty |
y
Defines the Y coordinate of the final end point.
|
absolute | Constructor and Description |
|---|
QuadCurveTo ()
Creates an empty instance of QuadCurveTo.
|
QuadCurveTo (double controlX,
double controlY,
double x,
double y)
Creates a new instance of QuadCurveTo.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleProperty |
controlXProperty ()
Defines the X coordinate of the quadratic control point.
|
DoubleProperty |
controlYProperty ()
Defines the Y coordinate of the quadratic control point.
|
double |
getControlX ()
Gets the value of the property controlX.
|
double |
getControlY ()
Gets the value of the property controlY.
|
double |
getX ()
Gets the value of the property x.
|
double |
getY ()
Gets the value of the property y.
|
void |
setControlX (double value)
Sets the value of the property controlX.
|
void |
setControlY (double value)
Sets the value of the property controlY.
|
void |
setX (double value)
Sets the value of the property x.
|
void |
setY (double value)
Sets the value of the property y.
|
String |
toString ()
Returns a string representation of this
CubicCurveTo object. |
DoubleProperty |
xProperty ()
Defines the X coordinate of the final end point.
|
DoubleProperty |
yProperty ()
Defines the Y coordinate of the final end point.
|
absoluteProperty, isAbsolute, setAbsolute public final DoubleProperty controlXProperty
getControlX(),
setControlX(double) public final DoubleProperty controlYProperty
getControlY(),
setControlY(double) public final DoubleProperty xProperty
getX(),
setX(double) public final DoubleProperty yProperty
getY(),
setY(double) public QuadCurveTo()
public QuadCurveTo(double controlX, double controlY, double x, double y)
controlX - the X coordinate of the quadratic control pointcontrolY - the Y coordinate of the quadratic control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointpublic final void setControlX(double value)
public final double getControlX()
public final DoubleProperty controlXProperty()
getControlX(),
setControlX(double) public final void setControlY(double value)
public final double getControlY()
public final DoubleProperty controlYProperty()
getControlY(),
setControlY(double) public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX(),
setX(double) public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY(),
setY(double) Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.