Open Source JavaFX Now!

JFXtras Core Logo

Asterisk

Provides an Asterisk 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


Asterisk { centerX: 160 centerY: 260 radius: 40 width: 5 rotate: 45 roundness: 0.5 beams: 8 fill: Color.CYAN stroke: Color.BLACK }

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
centerX0X coordinate of Asterisk center
centerY0Y coordinate of Asterisk center
radius40External radius of the Asterisk
width30Thickness of each beam of the Asterisk
beams5The number of beams (min 2)
roundness0The roundness of the beam ends (0.0 to 1.0)


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
353 Views