Re: [OpenMap Users] Setting resolution for lat,lon display

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 28 Nov 2007 12:45:42 -0500

Hi Chris,

You can't do it in the properties file, but you can set the
MapMouseMode.df object to be a DecimalFormat object that suits your
needs. So, theoretically, you could create a simple class that
extends OMComponent that looks like:

public class MMMDecimalFormatChanger extends OMComponent {

        public MMDecimalFormatChanger() {
        }

        public void findAndInit(Object someObj) {
                if (someObj instanceof CoordMouseMode) {
                        ((CoordMouseMode)someObj).df = new DecimalFormat("0.#######");
                }
        }
}

then, add that MMMDecimalFormatChanger object to the MapHandler. You
can do that in the properties file by adding an entry for it in the
openmap.components property.

Hope this helps,

Don



On Nov 28, 2007, at 10:25 AM, Chris Hopkins wrote:

> Hi all
>
> Is there a configurable way to change the resolution of the lat/lon
> values displayed by the information delegator? Wed like to have
> more decimal places than is currently displayed.
>
> Thanks,
> Chris
>
>
>
>
>
> THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS
> ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED,
> CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you
> are not the intended recipient, your use of this message for any
> purpose is strictly prohibited. If you have received this
> communication in error, please delete the message and notify the
> sender so that we may correct our records.
>
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Nov 28 2007 - 12:46:43 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT