JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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:

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicangleNumber0

Defines the rotation angle of the cross in degrees.

publiccenterXNumber0

Defines the horizontal position of the center of the cross in pixels.

publiccenterYNumber0

Defines the vertical position of the center of the cross in pixels.

publicradiusNumber40

Defines the radius of the cross in pixels.

publicroundnessNumber0

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  
publicwidthNumber30

Defines the width (thickness) of each arm of the cross.

Inherited Variables

Inherited Functions