Overview
The Cross class defines a symmetrical cross shape (with optional
round corners).
the code:
import org.jfxtras.scene.shape.Cross;
import javafx.scene.paint.*;
Cross {
centerX: 40
centerY: 40
radius: 30
width: 20
roundness: 0.5
fill: Color.BLACK
}produces:

Profile: desktop
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | centerX | Number | ![]() | ![]() | ![]() | 0 |
Defines the horizontal position of the center of the cross in pixels. |
| public | centerY | Number | ![]() | ![]() | ![]() | 0 |
Defines the vertical position of the center of the cross in pixels. |
| public | radius | Number | ![]() | ![]() | ![]() | 40 |
Defines the radius of the cross in pixels. |
| public | roundness | Number | ![]() | ![]() | ![]() | 0 |
Defines the roundness of the outside corners of the cross.
Defines the roundness of the outside corners of the cross. The range is from 0.0 to 1.0. The higher the value the more round the corners will be. 0 |
| public | width | Number | ![]() | ![]() | ![]() | 30 |
Defines the width (thickness) of each arm of the cross. |

