telegps: Add statistics tab to graph UI
authorKeith Packard <keithp@keithp.com>
Tue, 10 Jun 2014 18:36:03 +0000 (11:36 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Jun 2014 18:36:03 +0000 (11:36 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
telegps/TeleGPSGraphUI.java

index 84c80815d82875630778c2548e8505c70c992d53..b7fc4caae911d39b18e4a2e8ebb68a1e793c43ac 100644 (file)
@@ -42,6 +42,7 @@ public class TeleGPSGraphUI extends AltosUIFrame
        AltosState              state;
        AltosFlightStats        stats;
        AltosGraphDataSet       graphDataSet;
        AltosState              state;
        AltosFlightStats        stats;
        AltosGraphDataSet       graphDataSet;
+       AltosFlightStatsTable   statsTable;
 
        void fill_map(AltosStateIterable states) {
                for (AltosState state : states) {
 
        void fill_map(AltosStateIterable states) {
                for (AltosState state : states) {
@@ -66,10 +67,13 @@ public class TeleGPSGraphUI extends AltosUIFrame
                stats = new AltosFlightStats(states);
                graphDataSet = new AltosGraphDataSet(states);
                graph = new AltosGraph(enable, stats, graphDataSet);
                stats = new AltosFlightStats(states);
                graphDataSet = new AltosGraphDataSet(states);
                graph = new AltosGraph(enable, stats, graphDataSet);
+               statsTable = new AltosFlightStatsTable(stats);
+
                map = new AltosSiteMap();
 
                pane.add("Flight Graph", graph.panel);
                pane.add("Configure Graph", enable);
                map = new AltosSiteMap();
 
                pane.add("Flight Graph", graph.panel);
                pane.add("Configure Graph", enable);
+               pane.add("Statistics", statsTable);
                fill_map(states);
                pane.add("Map", map);
 
                fill_map(states);
                pane.add("Map", map);