summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosGraph.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-11-24 21:00:52 -0800
committerKeith Packard <keithp@keithp.com>2010-11-24 21:00:52 -0800
commit51c7741040d95c5deece939dae5e4136cc04afc4 (patch)
tree96631ee5aa9fd0c8c45f019ff154cc4fc8ca85d0 /ao-tools/altosui/AltosGraph.java
parentd1dbe3b69e6f95ef8ecd4cf959863b922ab47c66 (diff)
parent4e47c44d335276cf0dc5ed3a0756e50c98c1b9b9 (diff)
Merge branch 'buttonbox'
Conflicts: doc/telemetrum-doc.xsl Pull the buttbox version of the docs in as it had been updated. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosGraph.java')
-rw-r--r--ao-tools/altosui/AltosGraph.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/ao-tools/altosui/AltosGraph.java b/ao-tools/altosui/AltosGraph.java
deleted file mode 100644
index fa3b87c1..00000000
--- a/ao-tools/altosui/AltosGraph.java
+++ /dev/null
@@ -1,27 +0,0 @@
-
-// Copyright (c) 2010 Anthony Towns
-// GPL v2 or later
-
-package altosui;
-
-import java.io.*;
-
-import org.jfree.chart.JFreeChart;
-import org.jfree.chart.ChartUtilities;
-
-import altosui.AltosDataPoint;
-
-abstract class AltosGraph {
- public String filename;
- public abstract void addData(AltosDataPoint d);
- public abstract JFreeChart createChart();
- public void toPNG() throws java.io.IOException { toPNG(300, 500); }
- public void toPNG(int width, int height)
- throws java.io.IOException
- {
- File pngout = new File(filename);
- JFreeChart chart = createChart();
- ChartUtilities.saveChartAsPNG(pngout, chart, width, height);
- System.out.println("Created " + filename);
- }
-}