- public void show(AltosState state, int crc_errors) {
- height.show(state, crc_errors);
- speed.show(state, crc_errors);
- if (state.gps != null) {
- bearing.show(state, crc_errors);
- range.show(state, crc_errors);
- elevation.show(state, crc_errors);
- lat.show(state, crc_errors);
- lon.show(state, crc_errors);
+ public void font_size_changed(int font_size) {
+ lat.font_size_changed(font_size);
+ lon.font_size_changed(font_size);
+ height.font_size_changed(font_size);
+ speed.font_size_changed(font_size);
+ bearing.font_size_changed(font_size);
+ range.font_size_changed(font_size);
+ distance.font_size_changed(font_size);
+ elevation.font_size_changed(font_size);
+ main.font_size_changed(font_size);
+ apogee.font_size_changed(font_size);
+ }
+
+ public void units_changed(boolean imperial_units) {
+ lat.units_changed(imperial_units);
+ lon.units_changed(imperial_units);
+ height.units_changed(imperial_units);
+ speed.units_changed(imperial_units);
+ bearing.units_changed(imperial_units);
+ range.units_changed(imperial_units);
+ distance.units_changed(imperial_units);
+ elevation.units_changed(imperial_units);
+ main.units_changed(imperial_units);
+ apogee.units_changed(imperial_units);
+ }
+
+ public void show(AltosState state, AltosListenerState listener_state) {
+ if (!isShowing()) {
+ last_state = state;
+ last_listener_state = listener_state;
+ return;
+ }
+
+ height.show(state, listener_state);
+ speed.show(state, listener_state);
+ if (state.gps != null && state.gps.connected) {
+ bearing.show(state, listener_state);
+ range.show(state, listener_state);
+ distance.show(state, listener_state);
+ elevation.show(state, listener_state);
+ lat.show(state, listener_state);
+ lon.show(state, listener_state);