Skip to main content



      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 02: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 10:22 Go to previous messageGo to next message
Eclipse UserFriend
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 03: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: Mon May 19 12:00:42 EDT 2025

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

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

Back to the top