Javatpoint Logo
Javatpoint Logo

JavaFX Cirlce

A circle is a special type of ellipse with both of the focal points at the same position. Its horizontal radius is equal to its vertical radius. JavaFX allows us to create Circle on the GUI of any application by just instantiating javafx.scene.shape.Circle class. Just set the class properties by using the instance setter methods and add the class object to the Group.

Properties

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

Property Description Setter Methods
centerX X coordinate of the centre of circle setCenterX(Double value)
centerY Y coordinate of the centre of circle setCenterY(Double value)
radious Radius of the circle setRadius(Double value)

Example:


JavaFX Circle Output

Next TopicJavaFX Polygons





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA