Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Graph - Mouse response
Direct Graph - Mouse response [message #247062] Wed, 28 January 2009 07:20 Go to next message
Glenn Henley is currently offline Glenn Henley
Messages: 2
Registered: July 2009
Junior Member
Hi,

I'm very new to GEF but I have done lots UI work with Swing/Java 2D.

I'd like to use the Directed Graph example as a starting point to develop
a new application, but I've having trouble adding mouse/keyboard detection
to it.

Ideally I'd like to just be able to move the squares around, or indeed
just detect any mouse event but this all fails miserably.

As a test I have managed to dump mouse listeners everywhere which then
fire then fire the commands to update the model directly. But this
obviously not how it is suppsoed to work

So what are the code changes I'd need to detect mouse events on the
directed graph1 example?
Re: Direct Graph - Mouse response [message #247067 is a reply to message #247062] Wed, 28 January 2009 11:17 Go to previous message
Glenn Henley is currently offline Glenn Henley
Messages: 2
Registered: July 2009
Junior Member
S'Okay I've nailed it!
Previous Topic:[Announce] GEF 3.5.0 I200901231850 is available
Next Topic:[Announce] GEF 3.5.0 I200901301734 is available
Goto Forum:
  


Current Time: Wed Apr 23 17:42:39 EDT 2014

Powered by FUDForum. Page generated in 0.02059 seconds