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

Profile: desktop, common

Overview

The ReuleauxTriangle class defines a curved triangle shape.

the code:

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

    ReuleauxTriangle {
        centerX: 50
        centerY: 50
        radius: 25
        fill: Color.BLACK
    }

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccenterXNumber0

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

publiccenterYNumber0

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

publicradiusNumber

Defines the width of the triangle's sides and the radius of the arcs in pixels.

Inherited Variables

Inherited Functions