screen coordinate
Tom Eugelink
tbee at tbee.org
Sat Jun 16 07:56:09 PDT 2012
That indeed seems to have been the problem; I suspect JFXtras Ensemble does a transform somewhere, moving the node to the center, and that was exactly what was missing. The iteration over layoutX got the same result though.
Tom
On 2012-06-16 15:41, Kevin Rushforth wrote:
> 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