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 {
        angle: 0
        x: 10
        y: 10
        width: 50
        fill: Color.BLACK
    }

produces:

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicangleNumber0.0

Defines the angle of rotation of the triangle in degrees.

Defines the angle of rotation of the triangle in degrees. The triangle rotates counter-clockwise either about its center or about its first corner depending on the value of rotateAtCenter.

0.0  
publicrotateAtCenterBooleanfalse

Defines whether the triangle will rotate about its center (if true) or about its first corner (if false).

publicwidthNumber80

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

publicxNumber0.0

Defines the X coordinate of the triangle's first corner.

publicyNumber0.0

Defines the Y coordinate of the triangle's first corner.

Inherited Variables

Function Summary

protected getSGTriangle() : org.kordamp.jsilhouette.scenegraph.SGTriangle
Returns
SGTriangle
 

Inherited Functions