com.panayotis.gnuplot.terminal
Class SVGTerminal

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
                      extended by com.panayotis.gnuplot.terminal.TextFileTerminal
                          extended by com.panayotis.gnuplot.terminal.SVGTerminal
All Implemented Interfaces:
GNUPlotTerminal, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.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/)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.panayotis.gnuplot.terminal.TextFileTerminal
output
 
Fields inherited from class com.panayotis.gnuplot.PropertiesHolder
NL
 
Constructor Summary
SVGTerminal()
          Creates a new instance of SVGTerminal
SVGTerminal(java.lang.String filename)
          Creates a new instance of SVGTerminal and store output to a specific file
 
Method Summary
 javax.swing.JPanel getPanel()
          Retrieve a JPanel whith the provided SVG drawn on it.
 java.lang.String processOutput(java.io.InputStream stdout)
          Process output of this terminal.
 
Methods inherited from class com.panayotis.gnuplot.terminal.TextFileTerminal
getTextOutput
 
Methods inherited from class com.panayotis.gnuplot.terminal.FileTerminal
getOutputFile
 
Methods inherited from class com.panayotis.gnuplot.terminal.ExpandableTerminal
getType
 
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

SVGTerminal

public SVGTerminal()
Creates a new instance of SVGTerminal


SVGTerminal

public SVGTerminal(java.lang.String filename)
Creates a new instance of SVGTerminal and store output to a specific file

Parameters:
filename -
Method Detail

processOutput

public java.lang.String processOutput(java.io.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 javax.swing.JPanel getPanel()
                            throws java.lang.ClassNotFoundException
Retrieve a JPanel whith the provided SVG drawn on it.

Returns:
The JPanel with the SVG drawing
Throws:
java.lang.ClassNotFoundException - If the SVGSalamander library could not be found, or if any other error occured.