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:

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicANGLE_AT_ENDInteger
publicANGLE_AT_STARTInteger
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  
publicNONEInteger

Inherited Variables

Inherited Functions