public Point2D localToScene (double x, double y, boolean rootScene)

Transforms a point from the local coordinate space of this Node into the coordinate space of its scene. If the Node does not have any SubScene or rootScene is set to true, the result point is in Scene coordinates of the Node returned by getScene(). Othwerwise, the subscene coordinates are used, which is equivalent to calling localToScene(double, double)

Parameters:
x    the x coordinate of the point in local coordinates
y    the y coordinate of the point in local coordinates
rootScene    whether Scene coordinates should be used even if the Node is in a SubScene

Returns:  transformed point

See also:
localToScene(double, double)

Since:  JavaFX 8u40