Class QuadCurveTo
- javafx.scene.shape.PathElement
-
- javafx.scene.shape.QuadCurveTo
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);
Since:
JavaFX 2.0
-
Property Summary
All MethodsInstance MethodsConcrete Methods Type Property and Description DoublePropertycontrolXDefines the X coordinate of the quadratic control point.DoublePropertycontrolYDefines the Y coordinate of the quadratic control point.DoublePropertyxDefines the X coordinate of the final end point.DoublePropertyyDefines the Y coordinate of the final end point.-
Properties inherited from class javafx.scene.shape.PathElement
absolute
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description DoublePropertycontrolXProperty()Defines the X coordinate of the quadratic control point.DoublePropertycontrolYProperty()Defines the Y coordinate of the quadratic control point.doublegetControlX()Gets the value of the property controlX.doublegetControlY()Gets the value of the property controlY.doublegetX()Gets the value of the property x.doublegetY()Gets the value of the property y.voidsetControlX(double value)Sets the value of the property controlX.voidsetControlY(double value)Sets the value of the property controlY.voidsetX(double value)Sets the value of the property x.voidsetY(double value)Sets the value of the property y.StringtoString()Returns a string representation of thisCubicCurveToobject.DoublePropertyxProperty()Defines the X coordinate of the final end point.DoublePropertyyProperty()Defines the Y coordinate of the final end point.-
Methods inherited from class javafx.scene.shape.PathElement
absoluteProperty, isAbsolute, setAbsolute
-
-
Property Detail
-
controlX
public final DoubleProperty controlXProperty
Defines the X coordinate of the quadratic control point.Default value:
0.0
See Also:
-
controlY
public final DoubleProperty controlYProperty
Defines the Y coordinate of the quadratic control point.Default value:
0.0
See Also:
-
x
public final DoubleProperty xProperty
Defines the X coordinate of the final end point.Default value:
0.0
See Also:
-
y
public final DoubleProperty yProperty
Defines the Y coordinate of the final end point.Default value:
0.0
See Also:
-
-
Constructor Detail
-
QuadCurveTo
public QuadCurveTo()
Creates an empty instance of QuadCurveTo.
-
QuadCurveTo
public QuadCurveTo(double controlX, double controlY, double x, double y)Creates a new instance of QuadCurveTo.Parameters:
controlX- the X coordinate of the quadratic control point
-
-
Method Detail
-
setControlX
public final void setControlX(double value)
Sets the value of the property controlX.Property description:
Defines the X coordinate of the quadratic control point.
Default value:
0.0
-
getControlX
public final double getControlX()
Gets the value of the property controlX.Property description:
Defines the X coordinate of the quadratic control point.
Default value:
0.0
-
controlXProperty
public final DoubleProperty controlXProperty()
Defines the X coordinate of the quadratic control point.Default value:
0.0
See Also:
-
setControlY
public final void setControlY(double value)
Sets the value of the property controlY.Property description:
Defines the Y coordinate of the quadratic control point.
Default value:
0.0
-
getControlY
public final double getControlY()
Gets the value of the property controlY.Property description:
Defines the Y coordinate of the quadratic control point.
Default value:
0.0
-
controlYProperty
public final DoubleProperty controlYProperty()
Defines the Y coordinate of the quadratic control point.Default value:
0.0
See Also:
-
setX
public final void setX(double value)
Sets the value of the property x.Property description:
Defines the X coordinate of the final end point.
Default value:
0.0
-
getX
public final double getX()
Gets the value of the property x.Property description:
Defines the X coordinate of the final end point.
Default value:
0.0
-
xProperty
public final DoubleProperty xProperty()
Defines the X coordinate of the final end point.Default value:
0.0
See Also:
-
setY
public final void setY(double value)
Sets the value of the property y.Property description:
Defines the Y coordinate of the final end point.
Default value:
0.0
-
getY
public final double getY()
Gets the value of the property y.Property description:
Defines the Y coordinate of the final end point.
Default value:
0.0
-
yProperty
public final DoubleProperty yProperty()
Defines the Y coordinate of the final end point.Default value:
0.0
See Also:
-
toString
public String toString()
Returns a string representation of thisCubicCurveToobject.
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.