Open Source JavaFX Now!

JFXtras Core Logo

Balloon

Provides an Balloon shape as below:

Try it out

If you would like to try a sample of how this shape operates, run the ShapesDemoFX.fx application in org.jfxtras.scene.shape.

Sample Code


Balloon { x: 90 y: 20 width: 50 height: 50 arc: 0 tabWidth: 20 tabHeight: 10 tabDisplacement: 0.5 tabLocation: Balloon.TAB_AT_LEFT anglePosition: Balloon.NONE fill: Color.RED stroke: Color.BLACK }

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
x0x coordinate of the Balloons upper left corner
y0y coordinate of the Balloons upper left corner
width50Width of the Balloon excluding the tab
height50Height of the Balloon excluding the tab
arc0Diameter of the corner arcs of the Balloon
anglePositionNONEPosition of angle on Balloon tab - NONE, ANGLE_AT_START, ANGLE_AT_END
tabHeight10Height of the Balloon tab
tabWidth20Width of the Balloon tab
tabLocationTAB_AT_BOTTOMSide of Balloon for tab - TAB_AT_BOTTOM, TAB_AT_TOP, TAB_AT_LEFT, TAB_AT_RIGHT
tabDisplacement0.5Position of tab on chosen side 0.0 to 1.0

Other options may be available, including public variables and methods and will be detailed in the JavaFXDoc

<< Back to JFXtras FrontPage < Back to Shapes
1 Attachments 1 Attachments
366 Views