Overview
A Drop-in replacement for Rectangle that will resize to fit the bounds of the container. The preferred width and height can be easily set by providing an initial value for the width and height variables, otherwise they will both default to 200.
Unlike a normal Rectangle, the Stroke will always fall within the bounds provided. This ensures that when added to a Container, the size of this ResizableRectangle will not exceed its allocated space regardless of the stroke width.
See javafx.scene.shape.Rectangle for full documentation. This class follows a delegation pattern to avoid name collisions on Rectangle and Resizable.
Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | arcHeight | Number | ![]() | ![]() | ![]() | ||
| public | arcWidth | Number | ![]() | ![]() | ![]() | ||
| public | fill | Paint | ![]() | ![]() | ![]() | ||
| public | smooth | Boolean | ![]() | ![]() | ![]() | ||
| public | stroke | Paint | ![]() | ![]() | ![]() | ||
| public | strokeDashArray | Number[] | ![]() | ![]() | ![]() | ||
| public | strokeDashOffset | Number | ![]() | ![]() | ![]() | ||
| public | strokeLineCap | StrokeLineCap | ![]() | ![]() | ![]() | ||
| public | strokeLineJoin | StrokeLineJoin | ![]() | ![]() | ![]() | ||
| public | strokeMiterLimit | Number | ![]() | ![]() | ![]() | ||
| public | strokeWidth | Number | ![]() | ![]() | ![]() | ||
| public | x | Number | ![]() | ![]() | ![]() | ||
| public | y | Number | ![]() | ![]() | ![]() |
Inherited Variables
org.jfxtras.scene.layout.DefaultLayout
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public-read protected | defaultLayoutInfo | LayoutInfoBase | ![]() | subclass | subclass |
The default layout info for this Node.
The default layout info for this Node. Usually this will be initialized by the Node subclass to a static LayoutInfo for all instances. Any values set on this will override the default Constraint values. |

