|
Re: Which method is called when the cursor passes over a figure? [message #541676 is a reply to message #541604] |
Tue, 22 June 2010 02:59  |
Eclipse User |
|
|
|
Hi Asma,
in your generated diagram plugin there's a "edit.parts" package. It contains the EditParts (controllers) of your figures. Inside of these classes is an inner class which is the actual figure (view).
getPrimaryShape() on your EditParts returns their controlled figure. On each figure you can check the available methods by opening the extended figure class and pressing [Ctrl]+[o] twice (!). Relevant methods for your case might be the addYYYListener() Methods inherited from org.eclipse.draw2d.Figure such as:
addMouseListener(), addFocusListener(), addMouseMotionListener(), or even handleMouseEntered()|Exited()|Hover().
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.04186 seconds