AltosUIMap map;
AltosFlightStats stats;
AltosFlightStatsTable statsTable;
+ AltosFlightConfigTable configTable;
+ AltosFlightPyroTable pyroTable;
AltosGPS gps;
boolean has_gps;
map.font_size_changed(font_size);
if (statsTable != null)
statsTable.font_size_changed(font_size);
+ if (configTable != null)
+ configTable.font_size_changed(font_size);
+ if (pyroTable != null)
+ pyroTable.font_size_changed(font_size);
}
public void units_changed(boolean imperial_units) {
map.units_changed(imperial_units);
if (enable != null)
enable.units_changed(imperial_units);
+ if (configTable != null)
+ configTable.units_changed(imperial_units);
+ if (pyroTable != null)
+ pyroTable.units_changed(imperial_units);
}
AltosUIFlightSeries flight_series;
AltosGraphUI(AltosRecordSet set, File file) throws InterruptedException, IOException {
super(file.getName());
AltosCalData cal_data = set.cal_data();
-
+ AltosConfigData config_data = set.config_data();
pane = new JTabbedPane();
pane.add("Flight Graph", graph.panel);
pane.add("Configure Graph", enable);
pane.add("Flight Statistics", statsTable);
+ if (config_data != null) {
+ configTable = new AltosFlightConfigTable(config_data);
+ pane.add("Configuration", configTable);
+ if (config_data.npyro > 0 && config_data.npyro != AltosLib.MISSING) {
+ pyroTable = new AltosFlightPyroTable(config_data.pyros, config_data.npyro);
+ pane.add("Pyros", pyroTable);
+ }
+ }
has_gps = false;
fill_map(flight_series);