screen coordinate

Kevin Rushforth kevin.rushforth at oracle.com
Sat Jun 16 06:41:13 PDT 2012


Exactly. Just looking at the layout{X,Y} will miss any transforms on the 
node or its ancestors.

-- Kevin


Dr. Michael Paus wrote:
> I haven't tried it myself but I think you will have to use the nodes 
> localToScene transform
> to get its location in the scenes coordinate system first.
>
> Am 16.06.2012 10:26, schrieb Tom Eugelink:
>> 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