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 |
|---|
| x | 0 | x coordinate of the upper left corner |
| y | 0 | y coordinate of the upper left corner |
| width | 50 | Width of the Rectangle |
| height | 50 | Height of the Rectangle |
| topLeftWidth etc. | 0 | Radius of the curve to the corner from left |
| topLeftHeight etc. | 0 | Radius 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