If the node is resizable, will set its layout bounds to the specified width and height. If the node is not resizable, the resize step is skipped.
Once the node has been resized (if resizable) then sets the node's layoutX and layoutY translation properties in order to relocate it to x,y in the parent's coordinate space.
This method should generally only be called by parent nodes from their layoutChildren() methods. All Parent classes will automatically resize resizable children, so resizing done directly by the application will be overridden by the node's parent, unless the child is unmanaged.
Parents are responsible for ensuring the width and height values fall within the resizable node's preferred range. The autosize() and relocate() methods may be used if the parent just needs to resize the node to its preferred size and reposition it.
x | the target x coordinate location | |
y | the target y coordinate location | |
width | the target layout bounds width | |
height | the target layout bounds height |
isResizable(), getContentBias(), autosize(), minWidth(double), minHeight(double), prefWidth(double), prefHeight(double), maxWidth(double), maxHeight(double)
Diagram: Node