com.panayotis.gnuplot.terminal
Class ExpandableTerminal
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
com.panayotis.gnuplot.PropertiesHolder
com.panayotis.gnuplot.terminal.ExpandableTerminal
- All Implemented Interfaces:
- GNUPlotTerminal, Serializable, Cloneable, Map<String,String>
- Direct Known Subclasses:
- CustomTerminal, FileTerminal
public abstract class ExpandableTerminal
- extends PropertiesHolder
- implements GNUPlotTerminal
This is the base class of all special terminals found in JavaPlot. It provides
support for terminal types and consumes unwanted gnuplot output.
- Author:
- teras
- See Also:
- Serialized Form
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
ExpandableTerminal
public ExpandableTerminal(String type)
- Create a new Terminal with a given type
- Parameters:
type - The terminal to use
getType
public String getType()
- Get the type of this terminal
- Specified by:
getType in interface GNUPlotTerminal
- Returns:
- String representation of this terminal type
processOutput
public String processOutput(InputStream stdout)
- This method only consumes gnuplot stdout input stream. It is performed to
prevent a possible thread lockup.
- Specified by:
processOutput in interface GNUPlotTerminal
- Parameters:
stdout - The output of GNUPlot. It will be consumed.
- Returns:
- The definition of the error, if something went wrong. If everything is OK, it is necessary to return null.
Copyright © 2013. All Rights Reserved.