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

Profile: desktop, common

Overview

The ETriangle class defines an equilateral triangle shape.

the code:

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

    ETriangle {
        centerX: 10
        centerY: 10
        width: 50
        fill: Color.BLACK
    }

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicwidthNumber80

Defines the width of the triangle's sides in pixels.

publicxNumber0.0

Defines the X coordinate of the triangle's lower left point

publicyNumber0.0

Defines the Y coordinate of the triangle's lower left point.

Inherited Variables

Inherited Functions