screen coordinate

Tom Eugelink tbee at tbee.org
Sat Jun 16 03:17:07 PDT 2012


I turns out I needed to do both; iterate layoutX + scene.x + scene.window.x

Put this in a utility method in JFXtras.

Tom


On 2012-06-16 10:29, Randahl Fink Isaksen wrote:
> Since a node can have a parent which can have a parent, etc., I did this by adding the layoutX coordinates of the current node and all its parents (recursive method) and then adding the window position.
>
> R.
>
> On 16/06/12 10.26, Tom Eugelink wrote:
>> I'm trying to determine the screen coordinates of a node; apparently node.layoutX + node.scene.x + node.scene.window.x is not it. At least not all of the time. What am I missing?
>>
>> Tom



More information about the openjfx-dev mailing list