projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add graphing.
[fw/altos]
/
ao-tools
/
altosui
/
AltosUI.java
diff --git
a/ao-tools/altosui/AltosUI.java
b/ao-tools/altosui/AltosUI.java
index edee146da748a7b7dbd3f9c64a60e52c483d9700..ad02f2ef990149ae21325a99699418fe84cf2745 100644
(file)
--- 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);
}
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() {
/* Create the AltosUI menus
*/
private void createMenu() {
@@
-713,6
+720,14
@@
public class AltosUI extends JFrame {
});
menu.add(item);
});
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));
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);
}
}
altosui.setVisible(true);
}
}
-}
\ No newline at end of file
+}