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);
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 |
---|---|
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) |
String |
toString()
Returns a string representation of this
CubicCurveTo object. |
DoubleProperty |
xProperty() |
DoubleProperty |
yProperty() |
absoluteProperty, isAbsolute, setAbsolute
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()
@Deprecated public void impl_addTo(Path2D path)
impl_addTo
in class PathElement
Copyright © 2020. All rights reserved.