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

Profile: desktop, common

Overview

The Astroid class defines a hypocycloid with four cusps. See http://en.wikipedia.org/wiki/Astroid

the code:

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

    Astroid {
        centerX: 40
        centerY: 40
        radius: 30
        fill: Color.BLACK
    }

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccenterXNumber0

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

publiccenterYNumber0

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

publicradiusNumber40

Defines the radius of the astroid in pixels.

Inherited Variables

Inherited Functions