java.lang.Object
javafx.scene.shape.PathElement
javafx.scene.shape.QuadCurveTo
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 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 SummaryPropertiesTypePropertyDescriptionfinal DoublePropertyDefines the X coordinate of the quadratic control point.final DoublePropertyDefines the Y coordinate of the quadratic control point.final DoublePropertyDefines the X coordinate of the final end point.final DoublePropertyDefines the Y coordinate of the final end point.Properties declared in class javafx.scene.shape.PathElementabsolute
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty instance of QuadCurveTo.QuadCurveTo(double controlX, double controlY, double x, double y) Creates a new instance of QuadCurveTo.
- 
Method SummaryModifier and TypeMethodDescriptionfinal DoublePropertyDefines the X coordinate of the quadratic control point.final DoublePropertyDefines the Y coordinate of the quadratic control point.final doubleGets the value of thecontrolXproperty.final doubleGets the value of thecontrolYproperty.final doublegetX()Gets the value of thexproperty.final doublegetY()Gets the value of theyproperty.final voidsetControlX(double value) Sets the value of thecontrolXproperty.final voidsetControlY(double value) Sets the value of thecontrolYproperty.final voidsetX(double value) Sets the value of thexproperty.final voidsetY(double value) Sets the value of theyproperty.toString()Returns a string representation of thisCubicCurveToobject.final DoublePropertyDefines the X coordinate of the final end point.final DoublePropertyDefines the Y coordinate of the final end point.Methods declared in class javafx.scene.shape.PathElementabsoluteProperty, isAbsolute, setAbsolute
- 
Property Details- 
controlXDefines the X coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
 
- 
controlYDefines the Y coordinate of the quadratic control point.- Default value:
- 0.0
- See Also:
 
- 
xDefines the X coordinate of the final end point.- Default value:
- 0.0
- See Also:
 
- 
yDefines the Y coordinate of the final end point.- Default value:
- 0.0
- See Also:
 
 
- 
- 
Constructor Details- 
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 Details- 
setControlXpublic final void setControlX(double value) Sets the value of thecontrolXproperty.- Property description:
- Defines the X coordinate of the quadratic control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlXproperty
- See Also:
 
- 
getControlXpublic final double getControlX()Gets the value of thecontrolXproperty.- Property description:
- Defines the X coordinate of the quadratic control point.
- Default value:
- 0.0
- Returns:
- the value of the controlXproperty
- See Also:
 
- 
controlXPropertyDefines the X coordinate of the quadratic control point.- Default value:
- 0.0
- Returns:
- the controlXproperty
- See Also:
 
- 
setControlYpublic final void setControlY(double value) Sets the value of thecontrolYproperty.- Property description:
- Defines the Y coordinate of the quadratic control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlYproperty
- See Also:
 
- 
getControlYpublic final double getControlY()Gets the value of thecontrolYproperty.- Property description:
- Defines the Y coordinate of the quadratic control point.
- Default value:
- 0.0
- Returns:
- the value of the controlYproperty
- See Also:
 
- 
controlYPropertyDefines the Y coordinate of the quadratic control point.- Default value:
- 0.0
- Returns:
- the controlYproperty
- See Also:
 
- 
setXpublic final void setX(double value) Sets the value of thexproperty.- Property description:
- Defines the X coordinate of the final end point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- xproperty
- See Also:
 
- 
getXpublic final double getX()Gets the value of thexproperty.- Property description:
- Defines the X coordinate of the final end point.
- Default value:
- 0.0
- Returns:
- the value of the xproperty
- See Also:
 
- 
xPropertyDefines the X coordinate of the final end point.- Default value:
- 0.0
- Returns:
- the xproperty
- See Also:
 
- 
setYpublic final void setY(double value) Sets the value of theyproperty.- Property description:
- Defines the Y coordinate of the final end point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- yproperty
- See Also:
 
- 
getYpublic final double getY()Gets the value of theyproperty.- Property description:
- Defines the Y coordinate of the final end point.
- Default value:
- 0.0
- Returns:
- the value of the yproperty
- See Also:
 
- 
yPropertyDefines the Y coordinate of the final end point.- Default value:
- 0.0
- Returns:
- the yproperty
- See Also:
 
- 
toStringReturns a string representation of thisCubicCurveToobject.
 
-