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

Profile: desktop, common

Overview

The RTriangle class defines a right triangle, a triangle with one 90 degree angle

the code:

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

    RTriangle {
        angle: 0
        x: 10
        y: 10
        width: 50
        height: 50
        rotateAtCenter: false
        anglePosition: RTriangle.ANGLE_AT_END
        fill: Color.BLACK
    }

produces:

Profile: desktop

Script Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicANGLE_AT_ENDInteger
publicANGLE_AT_STARTInteger
publicNONEInteger

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicanglePositionNumberRTriangle.ANGLE_AT_START

Defines the position of the 90 degree angle.

Defines the position of the 90 degree angle. Valid values RTriangle.NONE, RTriangle.ANGLE_AT_START, and RTriangle.ANGLE_AT_END.

RTriangle.ANGLE_AT_START  
publicheightNumber40

Defines the height of the triangle in pixels.

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