Indicates whether this node is a type which can be resized by its parent. If this method returns true, then the parent will resize the node (ideally within its size range) by calling node.resize(width,height) during the layout pass. All Regions, Controls, and WebView are resizable classes which depend on their parents resizing them during layout once all sizing and CSS styling information has been applied.
If this method returns false, then the parent cannot resize it during layout (resize() is a no-op) and it should return its layoutBounds for minimum, preferred, and maximum sizes. Group, Text, and all Shapes are not resizable and hence depend on the application to establish their sizing by setting appropriate properties (e.g. width/height for Rectangle, text on Text, and so on). Non-resizable nodes may still be relocated during layout.
Returns the SwingNode's maximum height for use in layout calculations.
This value corresponds to the maximum height of the Swing component.
width | the width that should be used if maximum height depends on it |
Returns the SwingNode's maximum width for use in layout calculations.
This value corresponds to the maximum width of the Swing component.
height | the height that should be used if maximum width depends on it |
Returns the SwingNode's minimum height for use in layout calculations.
This value corresponds to the minimum height of the Swing component.
width | the width that should be used if minimum height depends on it |
Returns the SwingNode's minimum width for use in layout calculations.
This value corresponds to the minimum width of the Swing component.
height | the height that should be used if minimum width depends on it |
Returns the SwingNode's preferred height for use in layout calculations.
This value corresponds to the preferred height of the Swing component.
width | the width that should be used if preferred height depends on it |
Returns the SwingNode's preferred width for use in layout calculations.
This value corresponds to the preferred width of the Swing component.
height | the height that should be used if preferred width depends on it |
Invoked by the SwingNode's parent during layout to set the SwingNode's
width and height. Applications should not invoke this method directly.
If an application needs to directly set the size of the SwingNode, it should
set the Swing component's minimum/preferred/maximum size constraints which will
be propagated correspondingly to the SwingNode and it's parent will honor those
settings during layout.
width | the target layout bounds width | |
height | the target layout bounds height |
Diagram: Swing