diff options
author | Keith Packard <keithp@keithp.com> | 2010-11-19 17:14:17 +0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-11-19 17:15:35 +0800 |
commit | 8f72f08839346fb225238420324f0edcd070e531 (patch) | |
tree | b6460e8d11ef9b8c7ed0586110d43d059b0ceeae /ao-tools/altosui/AltosGraphUI.java | |
parent | 24ffcf86c43290ce0f70fb4ee0984b3debdb8a5f (diff) |
altosui: Unify datafile selection to AltosDataChooser
Instead of having several separate intefaces, use a single dialog for
selecting data files for graph/export/replay.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosGraphUI.java')
-rw-r--r-- | ao-tools/altosui/AltosGraphUI.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ao-tools/altosui/AltosGraphUI.java b/ao-tools/altosui/AltosGraphUI.java index 908aa3b4..cd158651 100644 --- a/ao-tools/altosui/AltosGraphUI.java +++ b/ao-tools/altosui/AltosGraphUI.java @@ -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) { |