Open Source JavaFX Now!

JFXtras Core Logo

Cross

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


Cross { centerX: 160 centerY: 260 radius: 40 width: 30 rotate: 45 roundness: 0.5 fill: Color.CYAN stroke: Color.BLACK }

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
centerX0x coordinate of the center of the Cross
centerY0y coordinate of the center of the Cross
radius40Radius of the Cross arms
width30Width across each arm of the Cross
roundness0The roundness of the arm 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
301 Views