[udig-devel] Adding images or icons on a layer and detect them
Frederic Renard
FRD at sodiplan.be
Mon May 5 07:19:19 PDT 2008
Hi all,
I'm new to RCP and uDIG.
I want to add images or icons on a layer (dynamicaly), and when the
mouse fly over this image (or icon) I want to display informations about
this icon.
I already created a extention to
net.refractions.udig.mapgraphics.mapgraphic plugin who received data
dynamicaly and draw a circle at a position.
I add a backgroundtool to net.refractions.udig.project.ui.tool. This
backgroundtool is responsible to get mouse position , check if this is
a particular position (exactely icon position) , and if it is, display
a message.
But my backgroundtool 'overwrite' the initial uDig backgroundtools
(net.refractions.udig.tools.internal.ScrollZoom ,
net.refractions.udig.tools.internal.CursorPosition and
net.refractions.udig.tools.internal.PanMiddleMouse), .. and don't work.
My questions are :
- Is it possible to add a background tool to existing ones ? ( and if
the response is 'yes': how? )
- is it the right method to dynamicaly extract mouse position and doing
some actions ?
Best regards,
Frederick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20080505/5c6578f1/attachment-0001.html
More information about the udig-devel
mailing list