summaryrefslogtreecommitdiff
path: root/altosuilib/AltosCSVUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-25 17:26:49 -0700
committerKeith Packard <keithp@keithp.com>2017-05-25 17:26:49 -0700
commite6eb659b0e984515a33b3ddabfe8325742a952da (patch)
tree20d1f82d9c3f03833b15201e030770bdfc8ec7c8 /altosuilib/AltosCSVUI.java
parentf26cfe417c6977cf1e7e75a4f050e25f64d41859 (diff)
altosuilib: Adapt to AltosFlightSeries data processing plan
Replace use of list of AltosState with AltosFlightSeries to improve data analysis. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosCSVUI.java')
-rw-r--r--altosuilib/AltosCSVUI.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/altosuilib/AltosCSVUI.java b/altosuilib/AltosCSVUI.java
index 1b769740..49d6ea68 100644
--- a/altosuilib/AltosCSVUI.java
+++ b/altosuilib/AltosCSVUI.java
@@ -31,7 +31,8 @@ public class AltosCSVUI
JFileChooser csv_chooser;
JPanel accessory;
JComboBox<String> combo_box;
- Iterable<AltosState> states;
+ AltosFlightSeries series;
+ AltosCalData cal_data;
AltosWriter writer;
static String[] combo_box_items = { "Comma Separated Values (.CSV)", "Googleearth Data (.KML)" };
@@ -55,8 +56,9 @@ public class AltosCSVUI
set_default_file();
}
- public AltosCSVUI(JFrame frame, AltosStateIterable states, File source_file) {
- this.states = states;
+ public AltosCSVUI(JFrame frame, AltosFlightSeries series, AltosCalData cal_data, File source_file) {
+ this.series = series;
+ this.cal_data = cal_data;
csv_chooser = new JFileChooser(source_file);
accessory = new JPanel();
@@ -91,7 +93,7 @@ public class AltosCSVUI
writer = new AltosCSV(file);
else
writer = new AltosKML(file);
- writer.write(states);
+ writer.write(series);
writer.close();
} catch (FileNotFoundException ee) {
JOptionPane.showMessageDialog(frame,