Open Source JavaFX Now!

JFXtras Core Logo

Donut

Provides an Donut shape as below:

Try it out

If you would like to try a sample of how this shape operates, run the ShapesDemoFX.fx application in org.jfxtras.scene.shape.

Sample Code


Donut { centerX: 120 centerY: 120 outerRadius: 30 innerRadius: 10 sides: 3 fill: Color.GREEN stroke: Color.BLACK },

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
centerX0x coordinate of the Donut center
centerY0y coordinate of the Donut center
outerRadius30Radius containing the shapes
innerRadius10Radius containing the hole
sides5Number of sides - 0 or 3 and greater


Other options may be available, including public variables and methods and will be detailed in the JavaFXDoc

<< Back to JFXtras FrontPage < Back to Shapes
1 Attachments 1 Attachments
334 Views