Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » mouse coordinates
mouse coordinates [message #165288] Thu, 13 December 2007 17: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 19:48 Go to previous messageGo to next message
Carson Li is currently offline Carson LiFriend
Messages: 2
Registered: July 2009
Junior Member
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 22: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 08:56 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
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: Sat Jul 13 19:06:53 GMT 2024

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

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

Back to the top