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.
|
absoluteProperty
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.
|
nodes
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 |
---|---|
(package private) void |
addTo(NGPath pgPath) |
DoubleProperty |
controlXProperty()
Defines the X coordinate of the quadratic control point.
|
DoubleProperty |
controlYProperty()
Defines the Y coordinate of the quadratic control point.
|
private void |
doAddTo(Path2D path) |
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.
|
java.lang.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, addNode, isAbsolute, removeNode, setAbsolute, u
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)
private DoubleProperty controlX
private DoubleProperty controlY
private DoubleProperty x
private DoubleProperty y
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)
void addTo(NGPath pgPath)
addTo
in class PathElement
private void doAddTo(Path2D path)
public java.lang.String toString()
CubicCurveTo
object.toString
in class java.lang.Object
CubicCurveTo
object.