(x,y), using the
specified points (controlX1,controlY1) and (controlX2,controlY2)
as Bézier control points. 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(0.0f); CubicCurveTo cubicTo = new CubicCurveTo(); cubicTo.setControlX1(0.0f); cubicTo.setControlY1(0.0f); cubicTo.setControlX2(100.0f); cubicTo.setControlY2(100.0f); cubicTo.setX(100.0f); cubicTo.setY(50.0f); path.getElements().add(moveTo); path.getElements().add(cubicTo);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | controlX1
Defines the X coordinate of the first Bézier control point. |
| private DoubleProperty | controlX2
Defines the X coordinate of the second Bézier control point. |
| private DoubleProperty | controlY1
Defines the Y coordinate of the first Bézier control point. |
| private DoubleProperty | controlY2
Defines the Y coordinate of the second Bézier 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 | CubicCurveTo(double
the X coordinate of the first Bézier control point controlX1, double the Y coordinate of the first Bézier control point controlY1, double the X coordinate of the second Bézier control point controlX2, double the Y coordinate of the second Bézier control point controlY2, 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 CubicCurveTo. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addTo(NGPath pgPath)
Implements abstract javafx. Adds the curved path element to the specified path. |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| private void | |
| public final double | |
| public final double | |
| 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 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 |
| controlX1 | back to summary |
|---|---|
| private DoubleProperty controlX1 Defines the X coordinate of the first Bézier control point.
| |
| controlX2 | back to summary |
|---|---|
| private DoubleProperty controlX2 Defines the X coordinate of the second Bézier control point.
| |
| controlY1 | back to summary |
|---|---|
| private DoubleProperty controlY1 Defines the Y coordinate of the first Bézier control point.
| |
| controlY2 | back to summary |
|---|---|
| private DoubleProperty controlY2 Defines the Y coordinate of the second Bézier 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.
| |
| CubicCurveTo | back to summary |
|---|---|
| public CubicCurveTo() Creates an empty instance of CubicCurveTo. | |
| CubicCurveTo | back to summary |
|---|---|
| public CubicCurveTo(double controlX1, double controlY1, double controlX2, double controlY2, double x, double y) Creates a new instance of CubicCurveTo.
| |
| addTo | back to summary |
|---|---|
| pack-priv void addTo(NGPath pgPath) Implements abstract javafx. Adds the curved path element to the specified path.
| |
| controlX1Property | back to summary |
|---|---|
| public final DoubleProperty controlX1Property() | |
| controlX2Property | back to summary |
|---|---|
| public final DoubleProperty controlX2Property() | |
| controlY1Property | back to summary |
|---|---|
| public final DoubleProperty controlY1Property() | |
| controlY2Property | back to summary |
|---|---|
| public final DoubleProperty controlY2Property() | |
| doAddTo | back to summary |
|---|---|
| private void doAddTo(Path2D path) | |
| getControlX1 | back to summary |
|---|---|
| public final double getControlX1() | |
| getControlX2 | back to summary |
|---|---|
| public final double getControlX2() | |
| getControlY1 | back to summary |
|---|---|
| public final double getControlY1() | |
| getControlY2 | back to summary |
|---|---|
| public final double getControlY2() | |
| getX | back to summary |
|---|---|
| public final double getX() | |
| getY | back to summary |
|---|---|
| public final double getY() | |
| setControlX1 | back to summary |
|---|---|
| public final void setControlX1(double value) | |
| setControlX2 | back to summary |
|---|---|
| public final void setControlX2(double value) | |
| setControlY1 | back to summary |
|---|---|
| public final void setControlY1(double value) | |
| setControlY2 | back to summary |
|---|---|
| public final void setControlY2(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() | |