edu.udo.cs.yale.datatable
Class GnuPlotDataTableHandler
java.lang.Object
edu.udo.cs.yale.datatable.GnuPlotDataTableHandler
- All Implemented Interfaces:
- DataTableListener
public class GnuPlotDataTableHandler
- extends java.lang.Object
- implements DataTableListener
This class can be used to create GnuPlot files from data tables.
- Version:
- $Id: GnuPlotDataTableHandler.java,v 1.3 2006/08/03 14:39:33 ingomierswa Exp $
- Author:
- Ingo Mierswa
Method Summary |
java.awt.Image |
createGNUPlot(int x,
int y,
int[] z,
java.lang.String linetype,
java.lang.String additionalCommands)
|
private static java.awt.Image |
createMessageImage(java.lang.String message)
|
void |
dataTableUpdated(DataTable table)
|
private void |
write2DGNUPlotData(java.io.PrintStream out,
int x,
int y)
|
private void |
write3DGNUPlotData(java.io.PrintStream out,
int x,
int y,
int z)
|
void |
writeGNUPlot(java.io.PrintStream out,
int x,
int y,
int[] z,
java.lang.String linetype,
java.lang.String additionalCommands,
java.lang.String terminal)
|
private void |
writeGNUPlotHeader(java.io.PrintStream out,
java.lang.String xAxis,
java.lang.String yAxis,
java.lang.String zAxis,
java.lang.String additionalCommands,
java.lang.String terminal)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROW_COMPARATOR
private static final java.util.Comparator<double[]> ROW_COMPARATOR
table
private DataTable table
GnuPlotDataTableHandler
public GnuPlotDataTableHandler(DataTable table)
dataTableUpdated
public void dataTableUpdated(DataTable table)
- Specified by:
dataTableUpdated
in interface DataTableListener
writeGNUPlot
public void writeGNUPlot(java.io.PrintStream out,
int x,
int y,
int[] z,
java.lang.String linetype,
java.lang.String additionalCommands,
java.lang.String terminal)
writeGNUPlotHeader
private void writeGNUPlotHeader(java.io.PrintStream out,
java.lang.String xAxis,
java.lang.String yAxis,
java.lang.String zAxis,
java.lang.String additionalCommands,
java.lang.String terminal)
write2DGNUPlotData
private void write2DGNUPlotData(java.io.PrintStream out,
int x,
int y)
write3DGNUPlotData
private void write3DGNUPlotData(java.io.PrintStream out,
int x,
int y,
int z)
createGNUPlot
public java.awt.Image createGNUPlot(int x,
int y,
int[] z,
java.lang.String linetype,
java.lang.String additionalCommands)
createMessageImage
private static java.awt.Image createMessageImage(java.lang.String message)
Copyright © 2001-2006