The
IlvJMouseCoordinateViewer bean uses preferences to format coordinates and
altitude information whenever the mouse moves over the map.
The
IlvJAutomaticScaleBar also listens to this property in order to adapt
the map distance unit to the preferences of the application.
When creating measurements (or an
IlvMapOrthodromyPath), a specific
IlvDistanceAttribute
property
is attached to contain the measurement length. This property displays
itself taking into account the preferred distance unit found in the
preferences.
The
IlvCoordinatePanelFactory needs to retrieve a coordinate formatter to know
how to display the coordinates selected on the view, which can also
edited by the user. You should usually do this by retrieving the coordinate
formatter of the current preferences:
IlvDisplayPreferences prefs =
IlvDisplayPreferencesProperty.GetDisplayPreferences(manager);
IlvCoordinateFormatter formatter= prefs.getCoordinateFormatter();
JPanel coordPicker=new
IlvCoordinatePanelFactory.CoordPointInputPanel(view,formatter);