Javatpoint Logo
Javatpoint Logo

JavaFX Quad Curve

Quad curve is a plain curve of order two. This is different from Cubic Curve in the sense that it doesn't have two control points like cubic curve. It rather has a single control point (X,Y).

In JavaFX, we can instantiate javafx.scene.shape.QuadCurve class to create a Quad curve. The class contains various properties which are defined in the table below. The class also contains the setter methods which can be used to set the properties to get the quad curve according to our requirements.

Properties

The properties of the class along with their setter methods are given in the table below.

Property Description Setter Method
controlX X coordinate of the control point of quad curve setControlX(Double)
controlY Y coordinate of the control point of quad curve setControlY(Double)
endX X coordinate of the end point of quad curve setEndX(Double)
endY Y coordinate of ending point of quad curve setEndY(Double)
startX X coordinate of starting point of quad curve setStartX(Double)
startY Y coordinate of starting point of quad curve setStartY(Double)

Example


JavaFX Quad Curve Output
Next TopicJavaFX Color




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA