diff options
| author | Anthony Towns <aj@erisian.com.au> | 2010-09-15 06:51:05 +1000 |
|---|---|---|
| committer | Anthony Towns <aj@erisian.com.au> | 2010-09-15 06:51:05 +1000 |
| commit | 61590b8729831cb138b2ba6b88802c208d114753 (patch) | |
| tree | 38bf7eaa2ab16a7f7bb69f400fe7142d3d033716 /ao-tools/altosui/AltosUI.java | |
| parent | 3d64f5a6511529ca53699190f4d54de1ba62a9bd (diff) | |
Add graphing.
Diffstat (limited to 'ao-tools/altosui/AltosUI.java')
| -rw-r--r-- | ao-tools/altosui/AltosUI.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java index edee146d..ad02f2ef 100644 --- a/ao-tools/altosui/AltosUI.java +++ b/ao-tools/altosui/AltosUI.java @@ -667,6 +667,13 @@ public class AltosUI extends JFrame { new AltosCSVUI(AltosUI.this); } + /* Load a flight log CSV file and display a pretty graph. + */ + + private void GraphData() { + new AltosGraphUI(AltosUI.this); + } + /* Create the AltosUI menus */ private void createMenu() { @@ -713,6 +720,14 @@ public class AltosUI extends JFrame { }); menu.add(item); + item = new JMenuItem("Graph Data",KeyEvent.VK_F); + item.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + GraphData(); + } + }); + menu.add(item); + item = new JMenuItem("Quit",KeyEvent.VK_Q); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK)); @@ -895,4 +910,4 @@ public class AltosUI extends JFrame { altosui.setVisible(true); } } -}
\ No newline at end of file +} |
