Open Source JavaFX Now!

JFXtras Core Logo

MultiRoundRectangle

Provides a Rectangle with individual corner rounding 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


MultiRoundRectangle { x: 20 y: 20 width: 120 height: 60 topLeftWidth: 30 topLeftHeight: 30 topRightWidth: 30 topRightHeight: 30 bottomLeftWidth: 0 bottomLeftHeight: 0 bottomRightWidth: 0 bottomRightHeight: 0 fill: Color.RED stroke: Color.BLACK }

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
x0x coordinate of the upper left corner
y0y coordinate of the upper left corner
width50Width of the Rectangle
height50Height of the Rectangle
topLeftWidth etc.0Radius of the curve to the corner from left
topLeftHeight etc.0Radius of the curve to the corner from top


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
346 Views