projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Use timeouts to recover from broken packet links.
[fw/altos]
/
ao-tools
/
altosui
/
AltosGraphUI.java
diff --git
a/ao-tools/altosui/AltosGraphUI.java
b/ao-tools/altosui/AltosGraphUI.java
index 25643c766257fcdbbd1581de265136095964a6e8..cd158651402d2634e4763015c1d36214b7899fb4 100644
(file)
--- a/
ao-tools/altosui/AltosGraphUI.java
+++ b/
ao-tools/altosui/AltosGraphUI.java
@@
-17,9
+17,6
@@
import org.jfree.chart.axis.AxisLocation;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
-import altosui.AltosDataPoint;
-import altosui.AltosGraphTime;
-
public class AltosGraphUI extends JFrame
{
static final private Color red = new Color(194,31,31);
public class AltosGraphUI extends JFrame
{
static final private Color red = new Color(194,31,31);
@@
-154,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)
{
public AltosGraphUI(Iterable<AltosDataPoint> data, int which)
{