|
||||||||||
| 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.Initialize
public class Initialize
Initializes the plotting.
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: .
-terminal <java.lang.String> (property: terminal) The terminal to use: e.g., 'x11', 'gif', 'png', 'svg'; for any terminal type apart from 'x11', an output file needs to be supplied. default: x11
-output <adams.core.io.PlaceholderFile> (property: outputFile) The output file to use if terminal other than 'x11' is used. default: .
-title <java.lang.String> (property: title) The title to use for the plot. default:
-x-label <java.lang.String> (property: XLabel) The title for the X axis; gets ignored if empty. default:
-y-label <java.lang.String> (property: YLabel) The title for the Y axis; gets ignored if empty. default:
-z-label <java.lang.String> (property: ZLabel) The title for the Z axis; gets ignored if empty. default:
| Field Summary | |
|---|---|
protected PlaceholderFile |
m_OutputFile
the output file if not 'x11' as terminal. |
protected String |
m_Terminal
the terminal to use. |
protected String |
m_Title
the plot title. |
protected String |
m_XLabel
the title of the X axis. |
protected String |
m_YLabel
the title of the Y axis. |
protected String |
m_ZLabel
the title of the Z axis. |
static String |
TERMINAL_X11
the 'x11' terminal. |
| 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 | |
|---|---|
Initialize()
|
|
| Method Summary | |
|---|---|
String |
check()
Hook method for performing checks. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doGenerate()
Generates the actual script code. |
PlaceholderFile |
getOutputFile()
Returns the output file in use (if not x11 as terminal). |
String |
getTerminal()
Returns the terminal to use. |
String |
getTitle()
Returns the title to use. |
String |
getXLabel()
Returns the title for the X axis. |
String |
getYLabel()
Returns the title for the Y axis. |
String |
getZLabel()
Returns the title for the Z axis. |
String |
globalInfo()
Returns a string describing the object. |
String |
outputFileTipText()
Returns the tip text for this property. |
void |
setOutputFile(PlaceholderFile value)
Sets the output file to use (if not x11 as terminal). |
void |
setTerminal(String value)
Sets the terminal to use. |
void |
setTitle(String value)
Sets the title to use. |
void |
setXLabel(String value)
Sets the title for the X axis. |
void |
setYLabel(String value)
Sets the title for the Y axis. |
void |
setZLabel(String value)
Sets the title for the Z axis. |
String |
terminalTipText()
Returns the tip text for this property. |
String |
titleTipText()
Returns the tip text for this property. |
String |
XLabelTipText()
Returns the tip text for this property. |
String |
YLabelTipText()
Returns the tip text for this property. |
String |
ZLabelTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.core.gnuplot.AbstractScriptlet |
|---|
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 TERMINAL_X11
protected String m_Terminal
protected PlaceholderFile m_OutputFile
protected String m_Title
protected String m_XLabel
protected String m_YLabel
protected String m_ZLabel
| Constructor Detail |
|---|
public Initialize()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractScriptletpublic void setTerminal(String value)
value - the terminal typepublic String getTerminal()
public String terminalTipText()
public void setOutputFile(PlaceholderFile value)
value - the output filepublic PlaceholderFile getOutputFile()
public String outputFileTipText()
public void setTitle(String value)
value - the title typepublic String getTitle()
public String titleTipText()
public void setXLabel(String value)
value - the titlepublic String getXLabel()
public String XLabelTipText()
public void setYLabel(String value)
value - the titlepublic String getYLabel()
public String YLabelTipText()
public void setZLabel(String value)
value - the titlepublic String getZLabel()
public String ZLabelTipText()
public String check()
check in class AbstractScriptletprotected String doGenerate()
doGenerate in class AbstractScriptlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||