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

Profile: desktop, common

Overview

The Rays class defines a shape having a number of rays extending from its center point.

the code:

import org.jfxtras.scene.shape.Rays;
    import javafx.scene.paint.*;

    Rays {
       angle: 0
       extent: 0.5
       centerX: 50
       centerY: 50
       radius: 40
       rays: 5
       fill: Color.BLACK
    }

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccenterXNumber0.0

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

publiccenterYNumber0.0

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

publicextentNumber0.5

Defines the width of the rays.

Defines the width of the rays. The range is from 0.0 to 1.0. A value of 1.0 will make each ray take up the maximum amount of space on that side of the shape.

0.5  
publicradiusNumber30

Defines the radius of the shape in pixels.

publicraysNumber5

Defines the number of rays eminating from the center.

publicroundedBooleanfalse

Defines whether the outside edge of the rays should be rounded.

Inherited Variables

Inherited Functions