Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » what are the steps to track mouse event in GEF?
what are the steps to track mouse event in GEF? [message #226718] Tue, 21 November 2006 07:04 Go to next message
Eclipse UserFriend
Originally posted by: vikas.khengare.unaat-e.com

Hi

What are the steps to track mouse events using EditPolicy -->
Request --> Command way?

I want to track mouse click event on Figure & want to change color of Figure
when mouse will click.

Can some one tell me how to do that ?

--
With best regards

Vikas R. Khengare
Unnat-e Infotech
Empowering Progress
Re: what are the steps to track mouse event in GEF? [message #226748 is a reply to message #226718] Tue, 21 November 2006 15:22 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Vikas,

Within your edit policy you could install a MouseListener on the figure.
This listener should allow you to catch mouse click events.

Hope this helps.

Cheers,
Alex
Re: what are the steps to track mouse event in GEF? [message #226761 is a reply to message #226748] Wed, 22 November 2006 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: vikas.khengare.unaat-e.com

Hi Alex,


Thanks for your reply.


Yes, We can do that way also by attaching mouse listener to figure also.

Is there any way to handle this events by creating registering EditPolicy,
creating Request and Command?

Thanks once again.


--
With best regards

Vikas R. Khengare
Unnat-e Infotech
Empowering Progress
"Alex Boyko" <aboyko@ca.ibm.com> wrote in message
news:968880ba8304c5a96a5142c566d40385$1@www.eclipse.org...
> Hi Vikas,
>
> Within your edit policy you could install a MouseListener on the figure.
> This listener should allow you to catch mouse click events.
>
> Hope this helps.
>
> Cheers,
> Alex
>
Previous Topic:Custom GEF Layout - a million $ question
Next Topic:Draw2D PolylineConnection
Goto Forum:
  


Current Time: Wed Apr 24 23:54:21 GMT 2024

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

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

Back to the top