Translating from request.getLocation() to container coordinates [message #175625] |
Tue, 05 April 2005 17:06 |
Eclipse User |
|
|
|
Originally posted by: Angel.Roman.prismtech.com
Hi Everyone,
When the user clicks on a container figure with a creation tool my
policy receives a request who's location is set to the viewer
coordinates. What's the best way to translate the request.getLocation()
position to the container figure location?
Regards,
Angel
|
|
|
|
Re: Translating from request.getLocation() to container coordinates [message #175685 is a reply to message #175669] |
Tue, 05 April 2005 19:57 |
Eclipse User |
|
|
|
Originally posted by: Angel.Roman.prismtech.com
Pratik Shah wrote:
> containerFigure.translateToRelative(location)
>
> "Angel Roman" <Angel.Roman@prismtech.com> wrote in message
> news:d2ugq2$kpu$1@news.eclipse.org...
>
>>Hi Everyone,
>>
>>When the user clicks on a container figure with a creation tool my
>>policy receives a request who's location is set to the viewer
>>coordinates. What's the best way to translate the request.getLocation()
>>position to the container figure location?
>>
>>Regards,
>>Angel
>
>
>
Thanks for the answer. It led me to the function I needed which is
translateFromParent().
|
|
|
Powered by
FUDForum. Page generated in 0.03280 seconds