taken from field
Defines the y coordinate of the translation that is added to this Node
's
transform for the purpose of layout. The value should be computed as the
offset required to adjust the position of the node from its current
layoutBounds minY
position (which might not be 0) to the desired location.
For example, if textnode
should be positioned at finalY
textnode.setLayoutY(finalY - textnode.getLayoutBounds().getMinY());
Failure to subtract layoutBounds minY
may result in misplacement
of the node. The relocate(x, y)
method will automatically do the
correct computation and should generally be used over setting layoutY directly.
The node's final translation will be computed as layoutY
+ translateY
,
where layoutY
establishes the node's stable position
and translateY
optionally makes dynamic adjustments to that
position.
If the node is managed and has a javafx.scene.layout.Region
as its parent, then the region will set layoutY
according to its
own layout policy. If the node is unmanaged or parented by a Group
,
then the application may set layoutY
directly to position it.
relocate(double, double), layoutBoundsProperty()
Diagram: Node