com.panayotis.gnuplot.terminal
Class SVGTerminal
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.TextFileTerminal
com.panayotis.gnuplot.terminal.SVGTerminal
- All Implemented Interfaces:
- GNUPlotTerminal, Serializable, Cloneable, Map<String,String>
public class SVGTerminal
- extends TextFileTerminal
This Terminal uses SVG graphics to display data on screen. It relies on the
open source project SVGSalamander (http://svgsalamander.dev.java.net/)
- Author:
- teras
- See Also:
- Serialized Form
|
Constructor Summary |
SVGTerminal()
Creates a new instance of SVGTerminal |
SVGTerminal(String filename)
Creates a new instance of SVGTerminal and store output to a specific file |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
SVGTerminal
public SVGTerminal()
- Creates a new instance of SVGTerminal
SVGTerminal
public SVGTerminal(String filename)
- Creates a new instance of SVGTerminal and store output to a specific file
- Parameters:
filename -
processOutput
public String processOutput(InputStream stdout)
- Process output of this terminal. Typically this is used to overcome a bug
in SVGSalamander
- Specified by:
processOutput in interface GNUPlotTerminal- Overrides:
processOutput in class TextFileTerminal
- Parameters:
stdout - The gnuplot output stream
- Returns:
- Return the error as a String, if an error occured.
getPanel
public JPanel getPanel()
throws ClassNotFoundException
- Retrieve a JPanel whith the provided SVG drawn on it.
- Returns:
- The JPanel with the SVG drawing
- Throws:
ClassNotFoundException - If the SVGSalamander library could
not be found, or if any other error occured.
Copyright © 2013. All Rights Reserved.