Try calling getConstraintFor(addRequest)
"Philipp Seßner" <philipp_sessner@xxxxxxxx> wrote in message
news:dj8b0t$9i$1@xxxxxxxxxxxxxxxxxxx
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