- cur.setFont(Altos.label_font);
- max.setFont(Altos.label_font);
- lat.font_size_changed(font_size);
- lon.font_size_changed(font_size);
- main.font_size_changed(font_size);
- apogee.font_size_changed(font_size);
- height.font_size_changed(font_size);
- speed.font_size_changed(font_size);
- accel.font_size_changed(font_size);
- orient.font_size_changed(font_size);
- }
-
- public void units_changed(boolean imperial_units) {
- lat.units_changed(imperial_units);
- lon.units_changed(imperial_units);
- main.units_changed(imperial_units);
- apogee.units_changed(imperial_units);
- height.units_changed(imperial_units);
- speed.units_changed(imperial_units);
- accel.units_changed(imperial_units);
- orient.units_changed(imperial_units);
- }
-
- public void show(AltosState state, AltosListenerState listener_state) {
- if (state.gps != null && state.gps.connected) {
- lat.show(state, listener_state);
- lon.show(state, listener_state);
- } else {
- lat.hide();
- lon.hide();
- }
- height.show(state, listener_state);
- if (state.main_voltage != AltosLib.MISSING)
- main.show(state, listener_state);
- else
- main.hide();
- if (state.apogee_voltage != AltosLib.MISSING)
- apogee.show(state, listener_state);
- else
- apogee.hide();
- speed.show(state, listener_state);
- accel.show(state, listener_state);
- if (state.orient() != AltosLib.MISSING)
- orient.show(state, listener_state);
- else
- orient.hide();