Not sure exactly what you want but there are lots of options for you.
The tool can simply open a Dialog with no style parameters. I think
that was it.
You can do little bubble popup like the warning messages in the Edit
tools use the MessageBubble class
MessageBubble bubble=new MessageBubble(e.getPoint().x, e.getPoint().y,
errorMessage, //$NON-NLS-1$
PreferenceUtil.instance().getMessageDisplayDelay());
Jesse
On 7-Feb-09, at 3:26 AM, Sameera Abeysinghe wrote:
>The selection tool has to be a mouse listener, else it wouldn't
>select, so you just do in the mouserelease method whatever needed to
>popup a dialog and fill it with the data of the feature.
Yes,
Using the mouse listener I can get the selected point
But
How can I get this popup dialog (if you can give what the class I
must use?)
And after getting this I need to have some kind of a selection
method in the dialog (list of check boxes?)
After that depending on the selection only the information has to be
shown on the map
Please note that I am really new to this uDig
Thank You
Sameera
On Fri, Feb 6, 2009 at 5:09 AM, andrea antonello <[email protected]
> wrote:
> my requirement
>
> I select a point on the map and some pop up or some thing has to
come up
> asking for what have to be displayed
>
> Ex. roads, buildings, homes, etc
>
> user can select one or more
>
> after selecting by the user that the map has to display the
information
> associated with that point
>
> I know how to create custom tool to select the point but what next?
That is also the more difficult part.
If you are able to select the point, you also are able to get the
selected feature.
The selection tool has to be a mouse listener, else it wouldn't
select, so you just do in the mouserelease method whatever needed to
popup a dialog and fill it with the data of the feature.
Does this sound ok to you?
andrea
>
> Is there some thing like pop ups available on uDig probably the
selection
> will be with check boxes
>
> is this possible
>
> hope I have explain this correctly
>
> Thank You
>
> Sameera
>
> --
> Sameera Abeysinghe
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
--
Sameera Abeysinghe
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel