The CubiCurve class defines a cubic Bézier parametric curve segment
in (x,y) coordinate space. Drawing a curve that intersects both the specified
coordinates (startX, startY) and (endX, enfY), using the
specified points (controlX1, controlY1) and (controlX2, controlY2)
as Bézier control points.
Example:
import javafx.scene.shape.*; CubicCurve cubic = new CubicCurve(); cubic.setStartX(0.0f); cubic.setStartY(50.0f); cubic.setControlX1(25.0f); cubic.setControlY1(0.0f); cubic.setControlX2(75.0f); cubic.setControlY2(100.0f); cubic.setEndX(100.0f); cubic.setEndY(50.0f); }
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | controlX1
Defines the X coordinate of the first control point of the cubic curve segment. |
| private DoubleProperty | controlX2
Defines the X coordinate of the second control point of the cubic curve segment. |
| private DoubleProperty | controlY1
Defines the Y coordinate of the first control point of the cubic curve segment. |
| private DoubleProperty | controlY2
Defines the Y coordinate of the second control point of the cubic curve segment. |
| private DoubleProperty | endX
Defines the X coordinate of the end point of the cubic curve segment. |
| private DoubleProperty | endY
Defines the Y coordinate of the end point of the cubic curve segment. |
| private final CubicCurve2D | |
| private DoubleProperty | startX
Defines the X coordinate of the start point of the cubic curve segment. |
| private DoubleProperty | startY
Defines the Y coordinate of the start point of the cubic curve segment. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CubicCurve(double
the X coordinate of the start point startX, double the Y coordinate of the start point startY, double the X coordinate of the first control point controlX1, double the Y coordinate of the first control point controlY1, double the X coordinate of the second control point controlX2, double the Y coordinate of the second control point controlY2, double the X coordinate of the end point endX, double the Y coordinate of the end point endY)Creates a new instance of CubicCurve. |
| Modifier and Type | Method and Description |
|---|---|
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| private CubicCurve2D | |
| private NGNode | |
| private void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final double | |
| public final double | |
| 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 final void | |
| public final void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public String | Returns: a string representation of thisCubicCurve object.Overrides javafx. Returns a string representation of this |
| controlX1 | back to summary |
|---|---|
| private DoubleProperty controlX1 Defines the X coordinate of the first control point of the cubic curve segment.
| |
| controlX2 | back to summary |
|---|---|
| private DoubleProperty controlX2 Defines the X coordinate of the second control point of the cubic curve segment.
| |
| controlY1 | back to summary |
|---|---|
| private DoubleProperty controlY1 Defines the Y coordinate of the first control point of the cubic curve segment.
| |
| controlY2 | back to summary |
|---|---|
| private DoubleProperty controlY2 Defines the Y coordinate of the second control point of the cubic curve segment.
| |
| endX | back to summary |
|---|---|
| private DoubleProperty endX Defines the X coordinate of the end point of the cubic curve segment.
| |
| endY | back to summary |
|---|---|
| private DoubleProperty endY Defines the Y coordinate of the end point of the cubic curve segment.
| |
| shape | back to summary |
|---|---|
| private final CubicCurve2D shape | |
| startX | back to summary |
|---|---|
| private DoubleProperty startX Defines the X coordinate of the start point of the cubic curve segment.
| |
| startY | back to summary |
|---|---|
| private DoubleProperty startY Defines the Y coordinate of the start point of the cubic curve segment.
| |
| CubicCurve | back to summary |
|---|---|
| public CubicCurve() Creates an empty instance of CubicCurve. | |
| CubicCurve | back to summary |
|---|---|
| public CubicCurve(double startX, double startY, double controlX1, double controlY1, double controlX2, double controlY2, double endX, double endY) Creates a new instance of CubicCurve.
| |
| 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() | |
| doConfigShape | back to summary |
|---|---|
| private CubicCurve2D doConfigShape() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| endXProperty | back to summary |
|---|---|
| public final DoubleProperty endXProperty() | |
| endYProperty | back to summary |
|---|---|
| public final DoubleProperty endYProperty() | |
| 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() | |
| getEndX | back to summary |
|---|---|
| public final double getEndX() | |
| getEndY | back to summary |
|---|---|
| public final double getEndY() | |
| getStartX | back to summary |
|---|---|
| public final double getStartX() | |
| getStartY | back to summary |
|---|---|
| public final double getStartY() | |
| 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) | |
| setEndX | back to summary |
|---|---|
| public final void setEndX(double value) | |
| setEndY | back to summary |
|---|---|
| public final void setEndY(double value) | |
| setStartX | back to summary |
|---|---|
| public final void setStartX(double value) | |
| setStartY | back to summary |
|---|---|
| public final void setStartY(double value) | |
| startXProperty | back to summary |
|---|---|
| public final DoubleProperty startXProperty() | |
| startYProperty | back to summary |
|---|---|
| public final DoubleProperty startYProperty() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |