com.panayotis.gnuplot.terminal
Interface GNUPlotTerminal

All Known Implementing Classes:
CustomTerminal, DefaultTerminal, ExpandableTerminal, FileTerminal, ImageTerminal, PostscriptTerminal, SVGTerminal, TextFileTerminal

public interface GNUPlotTerminal

This interface represents any GNUPlot terminal. "Terminal" by the definition of GNUPlot is any device which will present the drawn plots.


Method Summary
 java.lang.String getOutputFile()
          Get the output filename.
 java.lang.String getType()
          Get the terminal type / terminal name.
 java.lang.String processOutput(java.io.InputStream stdout)
          This method is executed bu GNUPlot, when the plot has been performed.
 

Method Detail

getType

java.lang.String getType()
Get the terminal type / terminal name. A list of available terminal names can be found through gnuplot if you issue the command "set term".

Returns:
the terminal type

getOutputFile

java.lang.String getOutputFile()
Get the output filename. Use "" if not output file is desired or needed.

Returns:
The output filename

processOutput

java.lang.String processOutput(java.io.InputStream stdout)
This method is executed bu GNUPlot, when the plot has been performed. It actually transfers GNUPlot output to this method, if parsing is required.

Note that if no output filename is given, then it is necessary to "consume" this stream, or else a thread lockup might happen.

Parameters:
stdout - The output stream of GNUPlot. Note that since it is required to read from this stream, it is given as InputStream.
Returns:
The definition of the error, if something went wrong. If everything is OK, it is necessary to return null.