|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.core.gnuplot.AbstractScriptlet
adams.core.gnuplot.AbstractPlotScriptlet
adams.core.gnuplot.SimplePlot
public class SimplePlot
For simple plots, like line plots.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-data-file <adams.core.io.PlaceholderFile> (property: dataFile) The data file to use as basis for the plot. default: .
-cols <java.lang.String> (property: columns) The columns to use in the plot. default: 1:2
-plot-type <lines|points|linespoints|impulses|dots|steps|fsteps|histeps|errorbars|xerrorbars|yerrorbars|xyerrorbars|errorlines|xerrorlines|yerrorlines|xyerrorlines|boxes|filledcurves|boxerrorbars|boxxyerrorbars|financebars|candlesticks|vectors> (property: plotType) The plot type to use. default: LINES
-plot-name <java.lang.String> (property: plotName) The name to use for the plot in the key; gnuplot default is used if empty; use 'notitle' to suppress title. default:
| Nested Class Summary | |
|---|---|
static class |
SimplePlot.PlotType
Enumeration of available plot types. |
| Field Summary | |
|---|---|
protected boolean |
m_FirstPlot
whether the plot is the first plot. |
protected String |
m_PlotName
the name of the plot. |
protected SimplePlot.PlotType |
m_PlotType
the plot type to use. |
static String |
NOTITLE
the 'notitle' keyword. |
| Fields inherited from class adams.core.gnuplot.AbstractPlotScriptlet |
|---|
m_Columns |
| Fields inherited from class adams.core.gnuplot.AbstractScriptlet |
|---|
COMMENT, m_DataFile, m_LastError |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
SimplePlot()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doGenerate()
Generates the actual script code. |
String |
firstPlotTipText()
Returns the tip text for this property. |
boolean |
getFirstPlot()
Returns whether the plot is the first plot (because of "plot" or "replot" instruction). |
String |
getPlotName()
Returns the name of the plot. |
SimplePlot.PlotType |
getPlotType()
Returns the plot type in use. |
String |
globalInfo()
Returns a string describing the object. |
String |
plotNameTipText()
Returns the tip text for this property. |
String |
plotTypeTipText()
Returns the tip text for this property. |
void |
setFirstPlot(boolean value)
Sets whether the plot is the first plot or not (because of "plot" or "replot" instruction). |
void |
setPlotName(String value)
Sets the name of the plot. |
void |
setPlotType(SimplePlot.PlotType value)
Sets the plot type to use. |
| Methods inherited from class adams.core.gnuplot.AbstractPlotScriptlet |
|---|
columnsTipText, getColumns, setColumns |
| Methods inherited from class adams.core.gnuplot.AbstractScriptlet |
|---|
check, dataFileTipText, generate, getDataFile, getLastError, hasLastError, reset, setDataFile |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NOTITLE
protected SimplePlot.PlotType m_PlotType
protected String m_PlotName
protected boolean m_FirstPlot
| Constructor Detail |
|---|
public SimplePlot()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractPlotScriptletpublic void setPlotType(SimplePlot.PlotType value)
value - the typepublic SimplePlot.PlotType getPlotType()
public String plotTypeTipText()
public void setPlotName(String value)
value - the namepublic String getPlotName()
public String plotNameTipText()
public void setFirstPlot(boolean value)
value - if it is the first plot then use truepublic boolean getFirstPlot()
public String firstPlotTipText()
protected String doGenerate()
doGenerate in class AbstractScriptlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||