- java.lang.Object
- 
- javafx.scene.shape.PathElement
- 
- javafx.scene.shape.QuadCurveTo
 
 
- 
 public class QuadCurveTo extends PathElement Creates a curved path element, defined by two new points, by drawing a Quadratic Bézier curve that intersects both the current coordinates and the specified coordinates(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 PathandPathElementclasses.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 SummaryProperties Type Property 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.PathElementabsolute
 
- 
 - 
Constructor SummaryConstructors Constructor Description QuadCurveTo()Creates an empty instance of QuadCurveTo.QuadCurveTo(double controlX, double controlY, double x, double y)Creates a new instance of QuadCurveTo.
 - 
Method SummaryModifier and Type Method 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.PathElementabsoluteProperty, isAbsolute, setAbsolute
 
- 
 
- 
- 
- 
Property Detail- 
controlXpublic final DoubleProperty controlXProperty Defines the X coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
- getControlX(),- setControlX(double)
 
 - 
controlYpublic final DoubleProperty controlYProperty Defines the Y coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
- getControlY(),- setControlY(double)
 
 - 
xpublic final DoubleProperty xProperty Defines the X coordinate of the final end point.- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
ypublic final DoubleProperty yProperty Defines the Y coordinate of the final end point.- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 
- 
 - 
Constructor Detail- 
QuadCurveTopublic QuadCurveTo() Creates an empty instance of QuadCurveTo.
 - 
QuadCurveTopublic 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
- controlY- the Y coordinate of the quadratic control point
- x- the X coordinate of the final end point
- y- the Y coordinate of the final end point
 
 
- 
 - 
Method Detail- 
setControlXpublic 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
 
 - 
getControlXpublic 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
 
 - 
controlXPropertypublic final DoubleProperty controlXProperty() Defines the X coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
- getControlX(),- setControlX(double)
 
 - 
setControlYpublic 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
 
 - 
getControlYpublic 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
 
 - 
controlYPropertypublic final DoubleProperty controlYProperty() Defines the Y coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
- getControlY(),- setControlY(double)
 
 - 
setXpublic 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
 
 - 
getXpublic 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
 
 - 
xPropertypublic final DoubleProperty xProperty() Defines the X coordinate of the final end point.- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
setYpublic 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
 
 - 
getYpublic 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
 
 - 
yPropertypublic final DoubleProperty yProperty() Defines the Y coordinate of the final end point.- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 
- 
 
-