RE: [OpenMap Users] Status bar with Lat/Long value

From: Chris Hopkins <chopkins@cra.com>
Date: Tue Nov 12 2002 - 11:23:00 EST

Hi there -

Check out the com.bbn.openmap.InformationDelegator class. That's the class
which displays the lat/lon at the bottom of the OpenMap default app as well
as the layer activity indicators. Also, look at
com.bbn.openmap.gui.OpenMapFrame. Especially, the findAndInit method. In
that method, you can see how the frame for the default app is actually built
(using a BorderLayout and placing GUI components in the north, south,
center).

The lat/lon is displayed on the status bar via a
com.bbn.openmap.event.CoordMouseMode object it looks like (don't ask me
where that is instantiated). But, if you look at that class, it has a
findAndInit which finds the InformationDelegator and in the
fireMouseLocation method, you can see it building the lat/lon string and
sending it to the InformationDelegator via the requestInfoLine method call.

Also, this is looking at 4.5.3 sources but I can't imagine it has changed
much, if at all.

  - Chris

> -----Original Message-----
> From: Tri Tran [mailto:tri.tran@sonacom.com.au]
> Sent: Monday, November 11, 2002 11:56 PM
> To: openmap-users-digest@bbn.com
> Subject: [OpenMap Users] Status bar with Lat/Long value
>
>
> I'm playing with the code of ExampleApplication.java and
> can't figure out
> how to get the mouse's Lat/Long position to display on status bar.
>
> In the com/bbn/openmap/app/OpenMap.java there is no code
> mention about the
> status bar nor the tool bar tool set ?!?!?!
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message
> "unsubscribe openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Nov 12 11:24:28 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT