scrolling - how do i get the right position withi a figure [message #200052] |
Thu, 20 October 2005 14:53 |
Eclipse User |
|
|
|
Originally posted by: philipp_sessner.yahoo.de
Hi,
in my editor i need to get the mouseposition within an figure - so i use
((CreateRequest)request).getLocation() in my createAddCommand() method
of my layoutPolicy. Everythig is fine till i have to scroll because my
figure, i`m adding to, is getting to big. i do not need the position for
placing the figure in it's parent. i need it to find the closest point
out of a bunch of points in the figure.
i don`t know how i have to translate my mouse coordinates to get the
right position in the figure, because i don`t know how much i scrolled
and where to get that information.
can someone help me?
thanks
|
|
|
|
Re: scrolling - how do i get the right position withi a figure [message #200117 is a reply to message #200061] |
Thu, 20 October 2005 17:18 |
Eclipse User |
|
|
|
Originally posted by: philipp_sessner.yahoo.de
i don`t know how i could missed that - thanksa lot, now i got all i need.
Philipp
Randy Hudson schrieb:
> Try calling getConstraintFor(addRequest)
>
> "Philipp Seßner" <philipp_sessner@yahoo.de> wrote in message
> news:dj8b0t$9i$1@news.eclipse.org...
>
>>Hi,
>>
>>in my editor i need to get the mouseposition within an figure - so i use
>>((CreateRequest)request).getLocation() in my createAddCommand() method of
>>my layoutPolicy. Everythig is fine till i have to scroll because my
>>figure, i`m adding to, is getting to big. i do not need the position for
>>placing the figure in it's parent. i need it to find the closest point out
>>of a bunch of points in the figure.
>>
>>i don`t know how i have to translate my mouse coordinates to get the right
>>position in the figure, because i don`t know how much i scrolled and where
>>to get that information.
>>
>>can someone help me?
>>
>>thanks
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04091 seconds