docs: Document altosui "Graph Data" button
[fw/altos] / ao-tools / altosui / AltosGraphUI.java
index 908aa3b45baeab54a2900a4a7304f239bbc53e26..cd158651402d2634e4763015c1d36214b7899fb4 100644 (file)
@@ -151,18 +151,15 @@ public class AltosGraphUI extends JFrame
         }
     }
 
-    public AltosGraphUI(JFrame frame)
-    {
-        super("Altos Graph");
+       public AltosGraphUI(AltosRecordIterable records) {
+               super("Altos Graph");
 
-        AltosGraphDataChooser chooser;
-        chooser = new AltosGraphDataChooser(frame);
-        Iterable<AltosDataPoint> reader = chooser.runDialog();
-        if (reader == null)
-            return;
+               Iterable<AltosDataPoint> reader = new AltosDataPointReader (records);
+               if (reader == null)
+                       return;
         
-        init(reader, 0);
-    }
+               init(reader, 0);
+       }
 
     public AltosGraphUI(Iterable<AltosDataPoint> data, int which) 
     {