Well you could extend the HBox and add a method to iterate
over the Children and calculate their value based on the index from
within the method and then just pass the value back. It is not
Easier but would allow you make the call to position the child in
the way you want.
If you really want to get fancy you could override the
addChild or addChildAt method and have it call your method that
calcs the position and sets the starting X and Y as it adds the