Quadcurve class defines a quadratic 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 point (controlX, controlY)
as Bézier control point.
import javafx.scene.shape.*; QuadCurve quad = new QuadCurve(); quad.setStartX(0.0f); quad.setStartY(50.0f); quad.setEndX(50.0f); quad.setEndY(50.0f); quad.setControlX(25.0f); quad.setControlY(0.0f);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | controlX
Defines the X coordinate of the control point of the quadratic curve segment. |
| private DoubleProperty | controlY
Defines the Y coordinate of the control point of the quadratic curve segment. |
| private DoubleProperty | endX
Defines the X coordinate of the end point of the quadratic curve segment. |
| private DoubleProperty | endY
Defines the Y coordinate of the end point of the quadratic curve segment. |
| private final QuadCurve2D | |
| private DoubleProperty | startX
Defines the X coordinate of the start point of the quadratic curve segment. |
| private DoubleProperty | startY
Defines the Y coordinate of the start point of the quadratic curve segment. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | QuadCurve(double
the X coordinate of the start point startX, double the Y coordinate of the start point startY, double the X coordinate of the control point controlX, double the Y coordinate of the control point controlY, double the X coordinate of the end point endX, double the Y coordinate of the end point endY)Creates a new instance of QuadCurve. |
| Modifier and Type | Method and Description |
|---|---|
| public final DoubleProperty | |
| public final DoubleProperty | |
| private QuadCurve2D | |
| 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 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 thisQuadCurve object.Overrides javafx. Returns a string representation of this |
| controlX | back to summary |
|---|---|
| private DoubleProperty controlX Defines the X coordinate of the control point of the quadratic curve segment.
| |
| controlY | back to summary |
|---|---|
| private DoubleProperty controlY Defines the Y coordinate of the control point of the quadratic curve segment.
| |
| endX | back to summary |
|---|---|
| private DoubleProperty endX Defines the X coordinate of the end point of the quadratic curve segment.
| |
| endY | back to summary |
|---|---|
| private DoubleProperty endY Defines the Y coordinate of the end point of the quadratic curve segment.
| |
| shape | back to summary |
|---|---|
| private final QuadCurve2D shape | |
| startX | back to summary |
|---|---|
| private DoubleProperty startX Defines the X coordinate of the start point of the quadratic curve segment.
| |
| startY | back to summary |
|---|---|
| private DoubleProperty startY Defines the Y coordinate of the start point of the quadratic curve segment.
| |
| QuadCurve | back to summary |
|---|---|
| public QuadCurve() Creates an empty instance of QuadCurve. | |
| QuadCurve | back to summary |
|---|---|
| public QuadCurve(double startX, double startY, double controlX, double controlY, double endX, double endY) Creates a new instance of QuadCurve.
| |
| controlXProperty | back to summary |
|---|---|
| public final DoubleProperty controlXProperty() | |
| controlYProperty | back to summary |
|---|---|
| public final DoubleProperty controlYProperty() | |
| doConfigShape | back to summary |
|---|---|
| private QuadCurve2D 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() | |
| getControlX | back to summary |
|---|---|
| public final double getControlX() | |
| getControlY | back to summary |
|---|---|
| public final double getControlY() | |
| 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() | |
| setControlX | back to summary |
|---|---|
| public final void setControlX(double value) | |
| setControlY | back to summary |
|---|---|
| public final void setControlY(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 | |