com.panayotis.gnuplot.terminal
Class ImageTerminal
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
com.panayotis.gnuplot.PropertiesHolder
com.panayotis.gnuplot.terminal.ExpandableTerminal
com.panayotis.gnuplot.terminal.FileTerminal
com.panayotis.gnuplot.terminal.ImageTerminal
- All Implemented Interfaces:
- GNUPlotTerminal, Serializable, Cloneable, Map<String,String>
public class ImageTerminal
- extends FileTerminal
This terminal is able to process gnuplot output as an image.
The image produced can be used by any Java object which is able to handle
BufferedImage
- Author:
- teras
- See Also:
- Serialized Form
|
Constructor Summary |
ImageTerminal()
Create a new image terminal, and use PNG as it's backend |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
ImageTerminal
public ImageTerminal()
- Create a new image terminal, and use PNG as it's backend
processOutput
public String processOutput(InputStream stdout)
- Read the produced image from gnuplot standard output
- Specified by:
processOutput in interface GNUPlotTerminal- Overrides:
processOutput in class ExpandableTerminal
- Parameters:
stdout - The gnuplot output stream
- Returns:
- The error definition, if any
getImage
public BufferedImage getImage()
- Get a handler of the produced image by this terminal
- Returns:
- the plot image
Copyright © 2013. All Rights Reserved.