|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.panayotis.gnuplot.GNUPlot
com.panayotis.gnuplot.JavaPlot
public class JavaPlot
A friendly wrapper of GNUPlot, able to set common plot parameters. If easy of use is required, it is recommended to use this class instead of GNUPlot. *
This object is not serializable, use GNUPlotParameters instead.
| Nested Class Summary | |
|---|---|
static class |
JavaPlot.Key
|
| Constructor Summary | |
|---|---|
JavaPlot()
Create a new instance of JavaPlot, with the default parameters |
|
JavaPlot(boolean isGraph3D)
Create a new instance of JavaPlot, using the default parameters. |
|
JavaPlot(GNUPlotParameters par)
Create a new JavaPlot object with given parameters |
|
JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term)
Create a new JavaPlot object with given parameters, gnuplot path and terminal |
|
JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term,
boolean isGraph3D)
Create a new JavaPlot object with given parameters, gnuplot path terminal ans isGraph3D |
|
JavaPlot(java.lang.String gnuplotpath)
Create a new JavaPlot object with a given gnuplot path |
|
JavaPlot(java.lang.String gnuplotpath,
boolean isGraph3D)
Create a new instance of gnuplot, with a given path for gnuplot. |
|
| Method Summary | |
|---|---|
void |
addPlot(DataSet set)
|
void |
addPlot(double[][] points)
|
void |
addPlot(float[][] points)
|
void |
addPlot(int[][] points)
|
void |
addPlot(long[][] points)
|
void |
addPlot(java.lang.String function)
|
void |
setKey(JavaPlot.Key position)
|
void |
setTitle(java.lang.String title)
Set the graph Title |
| Methods inherited from class com.panayotis.gnuplot.GNUPlot |
|---|
addGraph, addPlot, getAxis, getCommands, getDebugger, getGNUPlotPath, getLayout, getPage, getParameters, getPlots, getPostInit, getPreInit, getTerminal, newGraph, newGraph3D, plot, set, setGNUPlotPath, setMultiTitle, setParameters, setPersist, setTerminal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaPlot()
throws GNUPlotException
GNUPlotException - If the gnuplot executable is not found, this exception is thrown. Typically at
this case there is need to use a constructor which defines the gnuplot path.GNUPlot.GNUPlot()
public JavaPlot(boolean isGraph3D)
throws GNUPlotException
isGraph3D - true if the default plot is Graph3D
GNUPlotException - If the gnuplot executable is not found, this exception is thrown. Typically at
this case there is need to use a constructor which defines the gnuplot path.GNUPlot.GNUPlot(boolean)
public JavaPlot(java.lang.String gnuplotpath)
throws GNUPlotException
gnuplotpath -
GNUPlotException - If the gnuplot executable is not found, this exception is thrown. It means that the
provided path for gnuplot is not valid.GNUPlot.GNUPlot(String)
public JavaPlot(java.lang.String gnuplotpath,
boolean isGraph3D)
throws GNUPlotException
gnuplotpath - The pathname of the gnuplot executable. If this parameter is set to null, use the default path.isGraph3D - true if the default plot is Graph3D
GNUPlotException - If the gnuplot executable is not found, this exception is thrown. It means that the
provided path for gnuplot is not valid.GNUPlot.GNUPlot(String,boolean)
public JavaPlot(GNUPlotParameters par)
throws GNUPlotException
par -
GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters)
public JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term)
throws GNUPlotException
par - gnuplotpath - term -
GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters,String,GNUPlotTerminal)
public JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term,
boolean isGraph3D)
throws GNUPlotException
par - gnuplotpath - term - isGraph3D -
GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters,String,GNUPlotTerminal,boolean)| Method Detail |
|---|
public void setTitle(java.lang.String title)
title - Title of the graphpublic void setKey(JavaPlot.Key position)
position - public void addPlot(double[][] points)
points - public void addPlot(float[][] points)
points - public void addPlot(int[][] points)
points - public void addPlot(long[][] points)
points - public void addPlot(java.lang.String function)
function - public void addPlot(DataSet set)
set -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||