Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » mouse coordinates
mouse coordinates [message #165288] Thu, 13 December 2007 12:39 Go to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

hello,

how can I receive the mouse coordinates in the diagram ??

Thx in advance,
Ali
Re: mouse coordinates [message #165296 is a reply to message #165288] Thu, 13 December 2007 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ali,

To give you a proper response, I think you'll have to tell me where
you're trying retrieve the mouse coordinates.
But if you're somewhere with access to a DragTracker, it has a method
getLocation() which returns the mouse coordinates.

-Carson

Ali Akar wrote:
> hello,
>
> how can I receive the mouse coordinates in the diagram ??
>
> Thx in advance,
> Ali
Re: mouse coordinates [message #165313 is a reply to message #165296] Thu, 13 December 2007 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

Hi Carson,

when the cursor is inside a figure, I want to calculate the distance
between the actual cursor position and the bounds of the figure.

Ali




Carson Li a écrit :
> Hi Ali,
>
> To give you a proper response, I think you'll have to tell me where
> you're trying retrieve the mouse coordinates.
> But if you're somewhere with access to a DragTracker, it has a method
> getLocation() which returns the mouse coordinates.
>
> -Carson
>
> Ali Akar wrote:
>> hello,
>>
>> how can I receive the mouse coordinates in the diagram ??
>>
>> Thx in advance,
>> Ali
Re: mouse coordinates [message #165337 is a reply to message #165313] Fri, 14 December 2007 03:56 Go to previous message
Eclipse UserFriend
Hi Ali,

org.eclipse.draw2d.MouseMotionListener may help.

Best regards,
Boris

Ali Akar wrote:
> Hi Carson,
>
> when the cursor is inside a figure, I want to calculate the distance
> between the actual cursor position and the bounds of the figure.
>
> Ali
>
>
>
>
> Carson Li a écrit :
>> Hi Ali,
>>
>> To give you a proper response, I think you'll have to tell me where
>> you're trying retrieve the mouse coordinates.
>> But if you're somewhere with access to a DragTracker, it has a method
>> getLocation() which returns the mouse coordinates.
>>
>> -Carson
>>
>> Ali Akar wrote:
>>> hello,
>>>
>>> how can I receive the mouse coordinates in the diagram ??
>>>
>>> Thx in advance,
>>> Ali
Previous Topic:Removing Tools from the Palette under RCP project
Next Topic:GenStandardPropertyTab questions
Goto Forum:
  


Current Time: Fri Apr 25 20:34:36 EDT 2025

Powered by FUDForum. Page generated in 1.06322 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top