(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);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | controlX
Defines the X coordinate of the quadratic control point. |
| private DoubleProperty | controlY
Defines the Y coordinate of the quadratic control point. |
| private DoubleProperty | x
Defines the X coordinate of the final end point. |
| private DoubleProperty | y
Defines the Y coordinate of the final end point. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | QuadCurveTo(double
the X coordinate of the quadratic control point controlX, double the Y coordinate of the quadratic control point controlY, double the X coordinate of the final end point x, double the Y coordinate of the final end point y)Creates a new instance of QuadCurveTo. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| private void | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public String | Returns: a string representation of thisCubicCurveTo object.Overrides java. Returns a string representation of this |
| public final DoubleProperty | |
| public final DoubleProperty |
| controlX | back to summary |
|---|---|
| private DoubleProperty controlX Defines the X coordinate of the quadratic control point.
| |
| controlY | back to summary |
|---|---|
| private DoubleProperty controlY Defines the Y coordinate of the quadratic control point.
| |
| x | back to summary |
|---|---|
| private DoubleProperty x Defines the X coordinate of the final end point.
| |
| y | back to summary |
|---|---|
| private DoubleProperty y Defines the Y coordinate of the final end point.
| |
| QuadCurveTo | back to summary |
|---|---|
| public QuadCurveTo() Creates an empty instance of QuadCurveTo. | |
| QuadCurveTo | back to summary |
|---|---|
| public QuadCurveTo(double controlX, double controlY, double x, double y) Creates a new instance of QuadCurveTo.
| |
| addTo | back to summary |
|---|---|
| pack-priv void addTo(NGPath pgPath) Implements abstract javafx.
| |
| controlXProperty | back to summary |
|---|---|
| public final DoubleProperty controlXProperty() | |
| controlYProperty | back to summary |
|---|---|
| public final DoubleProperty controlYProperty() | |
| doAddTo | back to summary |
|---|---|
| private void doAddTo(Path2D path) | |
| getControlX | back to summary |
|---|---|
| public final double getControlX() | |
| getControlY | back to summary |
|---|---|
| public final double getControlY() | |
| getX | back to summary |
|---|---|
| public final double getX() | |
| getY | back to summary |
|---|---|
| public final double getY() | |
| setControlX | back to summary |
|---|---|
| public final void setControlX(double value) | |
| setControlY | back to summary |
|---|---|
| public final void setControlY(double value) | |
| setX | back to summary |
|---|---|
| public final void setX(double value) | |
| setY | back to summary |
|---|---|
| public final void setY(double value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |
| xProperty | back to summary |
|---|---|
| public final DoubleProperty xProperty() | |
| yProperty | back to summary |
|---|---|
| public final DoubleProperty yProperty() | |