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

Profile: desktop, common

Overview

The Asterisk class defines an asterisk shape that may have round corners.

the code:

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

    Asterisk {
        centerX: 40
        centerY: 40
        radius: 30
        width: 20
        beams: 5
        roundness: 0.5
        fill: Color.BLACK
    }

produces:

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicbeamsNumber5

Defines the number of beams (or arms) that eminate from the center of the shape.

Defines the number of beams (or arms) that eminate from the center of the shape. Minimum value is 2.

5  
publiccenterXNumber0

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

publiccenterYNumber0

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

publicradiusNumber40

Defines the radius of the asterisk in pixels.

publicroundnessNumber0

Defines the roundness of the outside corners of the asterisk.

Defines the roundness of the outside corners of the asterisk. 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 asterisk.

Inherited Variables

Inherited Functions