diff options
author | Keith Packard <keithp@keithp.com> | 2010-11-24 14:57:57 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-11-24 15:09:05 -0800 |
commit | 3fbefb3eea981d34a09496cf8abf0119de2e35bf (patch) | |
tree | 6e7956ca5c9336c7c61ebdcede5336a4c0191c37 /ao-tools/altosui/AltosGraph.java | |
parent | 7a50837ea0d92db3f469f197ec8210aee22aa143 (diff) |
Move altosui to the top level, placing libaltos inside it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosGraph.java')
-rw-r--r-- | ao-tools/altosui/AltosGraph.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ao-tools/altosui/AltosGraph.java b/ao-tools/altosui/AltosGraph.java deleted file mode 100644 index 58c27979..00000000 --- a/ao-tools/altosui/AltosGraph.java +++ /dev/null @@ -1,25 +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; - -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); - } -} |