public final double getLayoutX ()

taken from field

Defines the x 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 minX position (which might not be 0) to the desired location.

For example, if textnode should be positioned at finalX


     textnode.setLayoutX(finalX - textnode.getLayoutBounds().getMinX());
 

Failure to subtract layoutBounds minX 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 layoutX directly.

The node's final translation will be computed as layoutX + translateX, where layoutX establishes the node's stable position and translateX optionally makes dynamic adjustments to that position.

If the node is managed and has a javafx.scene.layout.Region as its parent, then the layout region will set layoutX according to its own layout policy. If the node is unmanaged or parented by a Group, then the application may set layoutX directly to position it.

See also:
relocate(double, double), layoutBoundsProperty()