public static void positionInArea (Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment, boolean isSnapToPixel)

Utility method which positions the child within an area of this region defined by areaX, areaY, areaWidth x areaHeight, with a baseline offset relative to that area.

This function does not resize the node and uses the node's layout bounds width and height to determine how it should be positioned within the area.

If the vertical alignment is VPos.BASELINE then it will position the node so that its own baseline aligns with the passed in baselineOffset, otherwise the baseline parameter is ignored.

If snapToPixel is true for this region, then the x/y position values will be rounded to their nearest pixel boundaries.

If margin is non-null, then that space will be allocated around the child within the layout area. margin may be null.

Parameters:
child    the child being positioned within this region
areaX    the horizontal offset of the layout area relative to this region
areaY    the vertical offset of the layout area relative to this region
areaWidth    the width of the layout area
areaHeight    the height of the layout area
areaBaselineOffset    the baseline offset to be used if VPos is BASELINE
margin    the margin of space to be allocated around the child
halignment    the horizontal alignment for the child within the area
valignment    the vertical alignment for the child within the area

Since:  JavaFX 8.0