Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Change mouse pointer on hover over
Change mouse pointer on hover over [message #949928] Fri, 19 October 2012 12:56 Go to next message
Jonathan Jekeli is currently offline Jonathan Jekeli
Messages: 10
Registered: October 2012
Junior Member
I would like to be able to change the mouse cursor to a cross-hairs whenever it is hovering over something that can start a connection (e.g. an anchor). I know there is a getSelectionInfoForShape that is called on hovering over a certain shape, so i could call the CreateConnectionFeature.canStartConnection() on that in order to change the cursor, but how can i tell when it is no longer hovering over that shape?

Any ideas? Thanks in advance!
Re: Change mouse pointer on hover over [message #958928 is a reply to message #949928] Fri, 26 October 2012 10:22 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1592
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Jonathan,

this is currently not possible using Graphiti API. Technically one would
need a MouseMotiionListener registered on the involved Figures.

If you would like to see that possibility in a future version of Graphiti,
please open an enhancement bugzilla for this feature.

Michael
Re: Change mouse pointer on hover over [message #962887 is a reply to message #958928] Mon, 29 October 2012 11:59 Go to previous message
Jonathan Jekeli is currently offline Jonathan Jekeli
Messages: 10
Registered: October 2012
Junior Member
Thanks, I may do that.
Previous Topic:Hooking into selections
Next Topic:GraphitiInternal.getEmfService()
Goto Forum:
  


Current Time: Tue Sep 16 15:45:43 GMT 2014

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

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