SceneLayout

This interface is NOT USED, it is only here for Documentation.

This document describes how position and sizes of Nodes are calculated.

The Scene's Scene.root Node always takes up the entire area of the Stage. So when a window is resized, so is the root node.

All other nodes' size and positions are determined by their parent node, in Node.layoutChildren. The child node gives hints to its parent via these six 6 methods :

These may be overruled by explicitly setting any of the 6 variables :

In most cases they are all null (setting explicit sizes is generally a bad idea).

These values are only hints, and the parent may sometimes ignore them. For example, if we have one tall and one short node in a HBox with HBox.fillHeight = `true, both will be assigned the same height. The minHeight and prefHeight of the short child is ignored.