com.panayotis.gnuplot.terminal
Class FileTerminal

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by com.panayotis.gnuplot.PropertiesHolder
              extended by com.panayotis.gnuplot.terminal.ExpandableTerminal
                  extended by 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

Field Summary
 
Fields inherited from class com.panayotis.gnuplot.PropertiesHolder
NL
 
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 com.panayotis.gnuplot.terminal.ExpandableTerminal
getType, processOutput
 
Methods inherited from class com.panayotis.gnuplot.PropertiesHolder
appendProperties, set, set, unset
 
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
 

Constructor Detail

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 type
filename - e filaname to use as an output for this terminal
See Also:
getOutputFile()
Method Detail

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