com.panayotis.gnuplot.terminal
Class FileTerminal
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
com.panayotis.gnuplot.PropertiesHolder
com.panayotis.gnuplot.terminal.ExpandableTerminal
com.panayotis.gnuplot.terminal.FileTerminal
- All Implemented Interfaces:
- GNUPlotTerminal, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
- Direct Known Subclasses:
- ImageTerminal, TextFileTerminal
public class FileTerminal
- extends ExpandableTerminal
This Terminal supports file operations.
The results of the gnuplot commands can be stored in a file, if desired.
- See Also:
- Serialized Form
|
Constructor Summary |
FileTerminal(java.lang.String type)
Creates a new instance of FileTerminal and output to stadard out |
FileTerminal(java.lang.String type,
java.lang.String filename)
Creates a new instance of FileTerminal and output to a specific file |
|
Method Summary |
java.lang.String |
getOutputFile()
Retrieve the filaname to use as an output for this terminal. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
FileTerminal
public FileTerminal(java.lang.String type)
- Creates a new instance of FileTerminal and output to stadard out
- Parameters:
type - The terminal type
FileTerminal
public FileTerminal(java.lang.String type,
java.lang.String filename)
- Creates a new instance of FileTerminal and output to a specific file
- Parameters:
type - The terminal typefilename - e filaname to use as an output for this terminal- See Also:
getOutputFile()
getOutputFile
public java.lang.String getOutputFile()
- Retrieve the filaname to use as an output for this terminal.
If the filename empty, then the output will be dumped to standard output,
and retrieved by JavaPlot
- Returns:
- If this parameter is not empty, the output filename