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

Profile: desktop, common

Overview

The Star2 class defines a star shape (twinkle, twinkle)

the code:

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

    Star2 {
        angle: 0
        centerX: 50
        centerY: 50
        outerRadius: 40
        innerRadius: 20
        count: 7
        fill: Color.BLACK
    }

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccenterXNumber0.0

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

publiccenterYNumber0.0

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

publiccountNumber5

Defines the number of points the star has.

publicinnerRadiusNumber10

Defines the radius to the start of the star's points.

publicouterRadiusNumber30

Defines the radius to the tip of the star's points.

Inherited Variables

Inherited Functions