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);
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.
|
impl_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() |
DoubleProperty |
controlYProperty() |
double |
getControlX() |
double |
getControlY() |
double |
getX() |
double |
getY() |
void |
impl_addTo(Path2D path)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
void |
setControlX(double value) |
void |
setControlY(double value) |
void |
setX(double value) |
void |
setY(double value) |
java.lang.String |
toString()
Returns a string representation of this
CubicCurveTo object. |
DoubleProperty |
xProperty() |
DoubleProperty |
yProperty() |
absoluteProperty, addNode, isAbsolute, removeNode, setAbsolute, u
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()
public final void setControlY(double value)
public final double getControlY()
public final DoubleProperty controlYProperty()
public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
void addTo(NGPath pgPath)
addTo
in class PathElement
@Deprecated public void impl_addTo(Path2D path)
impl_addTo
in class PathElement
public java.lang.String toString()
CubicCurveTo
object.toString
in class java.lang.Object
CubicCurveTo
object.