[OpenMap Users] Change unit of measure

From: Marc Benstein <MARC.D.BENSTEIN_at_email.domain.hidden>
Date: Wed Aug 31 2011 - 16:23:57 EDT

I'm trying to change the current unit of measure throughout all
components while the application is running.

So far I had to do something like this to change the mouse units.
Object distanceMouseMode =
omOverlayMapPanel.getMapHandler().get(com.bbn.openmap.event.DistanceMouseMode.class);
((DistanceMouseMode)
distanceMouseMode).setUnit(Length.get(unit.toOpenMapUnitName()));

But I'd also like to change the EmbeddedScaleDisplayPanel units. As well
as any OMRangeRing units. Is there an easy way to do this type of unit
change throughout? I'd like to do the same for Coordinate units as well.

Thanks.

-- 
Marc Benstein
505-830-6763
--
[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 Wed Aug 31 16:33:54 2011

This archive was generated by hypermail 2.1.8 : Wed Aug 31 2011 - 16:33:54 EDT