java.lang.Object
javafx.scene.shape.PathElement
javafx.scene.shape.CubicCurveTo
Creates a curved path element, defined by three new points,
 by drawing a Cubic Bézier curve that intersects both the current coordinates
 and the specified coordinates 
(x,y), using the
 specified points (controlX1,controlY1) and (controlX2,controlY2)
 as Bézier control points. 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(0.0f); CubicCurveTo cubicTo = new CubicCurveTo(); cubicTo.setControlX1(0.0f); cubicTo.setControlY1(0.0f); cubicTo.setControlX2(100.0f); cubicTo.setControlY2(100.0f); cubicTo.setX(100.0f); cubicTo.setY(50.0f); path.getElements().add(moveTo); path.getElements().add(cubicTo);
- Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal DoublePropertyDefines the X coordinate of the first Bézier control point.final DoublePropertyDefines the X coordinate of the second Bézier control point.final DoublePropertyDefines the Y coordinate of the first Bézier control point.final DoublePropertyDefines the Y coordinate of the second Bézier 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 CubicCurveTo.CubicCurveTo(double controlX1, double controlY1, double controlX2, double controlY2, double x, double y) Creates a new instance of CubicCurveTo.
- 
Method SummaryModifier and TypeMethodDescriptionfinal DoublePropertyDefines the X coordinate of the first Bézier control point.final DoublePropertyDefines the X coordinate of the second Bézier control point.final DoublePropertyDefines the Y coordinate of the first Bézier control point.final DoublePropertyDefines the Y coordinate of the second Bézier control point.final doubleGets the value of thecontrolX1property.final doubleGets the value of thecontrolX2property.final doubleGets the value of thecontrolY1property.final doubleGets the value of thecontrolY2property.final doublegetX()Gets the value of thexproperty.final doublegetY()Gets the value of theyproperty.final voidsetControlX1(double value) Sets the value of thecontrolX1property.final voidsetControlX2(double value) Sets the value of thecontrolX2property.final voidsetControlY1(double value) Sets the value of thecontrolY1property.final voidsetControlY2(double value) Sets the value of thecontrolY2property.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- 
controlX1Defines the X coordinate of the first Bézier control point.- Default value:
- 0.0
- See Also:
 
- 
controlY1Defines the Y coordinate of the first Bézier control point.- Default value:
- 0.0
- See Also:
 
- 
controlX2Defines the X coordinate of the second Bézier control point.- Default value:
- 0.0
- See Also:
 
- 
controlY2Defines the Y coordinate of the second Bézier 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- 
CubicCurveTopublic CubicCurveTo()Creates an empty instance of CubicCurveTo.
- 
CubicCurveTopublic CubicCurveTo(double controlX1, double controlY1, double controlX2, double controlY2, double x, double y) Creates a new instance of CubicCurveTo.- Parameters:
- controlX1- the X coordinate of the first Bézier control point
- controlY1- the Y coordinate of the first Bézier control point
- controlX2- the X coordinate of the second Bézier control point
- controlY2- the Y coordinate of the second Bézier control point
- x- the X coordinate of the final end point
- y- the Y coordinate of the final end point
 
 
- 
- 
Method Details- 
setControlX1public final void setControlX1(double value) Sets the value of thecontrolX1property.- Property description:
- Defines the X coordinate of the first Bézier control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlX1property
- See Also:
 
- 
getControlX1public final double getControlX1()Gets the value of thecontrolX1property.- Property description:
- Defines the X coordinate of the first Bézier control point.
- Default value:
- 0.0
- Returns:
- the value of the controlX1property
- See Also:
 
- 
controlX1PropertyDefines the X coordinate of the first Bézier control point.- Default value:
- 0.0
- Returns:
- the controlX1property
- See Also:
 
- 
setControlY1public final void setControlY1(double value) Sets the value of thecontrolY1property.- Property description:
- Defines the Y coordinate of the first Bézier control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlY1property
- See Also:
 
- 
getControlY1public final double getControlY1()Gets the value of thecontrolY1property.- Property description:
- Defines the Y coordinate of the first Bézier control point.
- Default value:
- 0.0
- Returns:
- the value of the controlY1property
- See Also:
 
- 
controlY1PropertyDefines the Y coordinate of the first Bézier control point.- Default value:
- 0.0
- Returns:
- the controlY1property
- See Also:
 
- 
setControlX2public final void setControlX2(double value) Sets the value of thecontrolX2property.- Property description:
- Defines the X coordinate of the second Bézier control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlX2property
- See Also:
 
- 
getControlX2public final double getControlX2()Gets the value of thecontrolX2property.- Property description:
- Defines the X coordinate of the second Bézier control point.
- Default value:
- 0.0
- Returns:
- the value of the controlX2property
- See Also:
 
- 
controlX2PropertyDefines the X coordinate of the second Bézier control point.- Default value:
- 0.0
- Returns:
- the controlX2property
- See Also:
 
- 
setControlY2public final void setControlY2(double value) Sets the value of thecontrolY2property.- Property description:
- Defines the Y coordinate of the second Bézier control point.
- Default value:
- 0.0
- Parameters:
- value- the value for the- controlY2property
- See Also:
 
- 
getControlY2public final double getControlY2()Gets the value of thecontrolY2property.- Property description:
- Defines the Y coordinate of the second Bézier control point.
- Default value:
- 0.0
- Returns:
- the value of the controlY2property
- See Also:
 
- 
controlY2PropertyDefines the Y coordinate of the second Bézier control point.- Default value:
- 0.0
- Returns:
- the controlY2property
- 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.
 
-