|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.isti.jevalresp.Run
com.isti.jevalresp.RunExt
com.isti.jplotresp.PlotRun
public class PlotRun
Class PlotRun is the entry point and managing module for 'JPlotResp'.
Field Summary | |
---|---|
protected ConfigManager |
cfgObj
|
protected static java.lang.String |
CONFIG_FNAME
|
protected static java.io.File |
currentDirectory
|
protected static int |
DEF_FRAME_HEIGHT
|
protected static int |
DEF_FRAME_WIDTH
|
static boolean |
defaultAllowSystemExitFlag
Default allow system exit flag is true to allow system exit. |
static boolean |
defaultExitFrameDisposeFlag
Default exit frame dispose flag is true to dispose frame on exit. |
protected RespEntryPanel |
entryPanel
|
static java.lang.String |
javaVersionString
|
protected com.isti.util.logging.IstiLogger |
logger
|
protected javax.swing.JPanel |
mainContentPanel
|
protected javax.swing.JTabbedPane |
mainTabbedPane
|
static java.lang.String |
MIN_JAVA_VERSION
Minimum version of Java required. |
static java.lang.String |
PROGRAM_NAME
Displayed program name. |
javax.swing.JFrame |
programFrameObj
|
protected javax.swing.JButton |
quitButton
|
static java.lang.String |
REVISION_STR
Program revision string. |
static java.lang.String |
SPLASH_GRAPHIC_FNAME
Filename for splash screen graphic. |
protected static SplashWindow |
splashWindowObj
|
static java.lang.String |
VERSION_NUM_STR
Program version string. |
Constructor Summary | |
---|---|
|
PlotRun()
Constructs and executes the application. |
protected |
PlotRun(javax.swing.JFrame programFrameObj,
ConfigManager cfgObj,
com.isti.util.logging.IstiLogger logger)
Constructs and executes the application. |
Method Summary | |
---|---|
protected void |
closeAllPlots()
Close all plots. |
javax.swing.JFileChooser |
createFileChooser(int frameWidth,
int frameHeight,
boolean appendButtonFlag)
Creates a file chooser object. |
protected static IstiFocusManager |
createFocusManager()
Create the focus manager. |
protected static void |
disposeSplashWindow()
Dispose the splash window. |
protected void |
execute(java.lang.Runnable command,
java.lang.String name)
Executes the given command at some time in the future. |
protected void |
exitCleanup()
Perform cleanup operations before program termination. |
protected void |
exitProgram()
Processing to be done when the program terminates |
java.io.PrintStream |
getConsoleOut()
Get the console output. |
static ConfigManager |
getDefaultConfigManager()
Get the default config manager. |
static javax.swing.JFrame |
getDefaultFrame()
Get the default frame. |
static com.isti.util.logging.IstiLogger |
getDefaultLogger()
Get the default message logger. |
boolean |
isFrameChanged()
Returns true if the program frame position or size has changed, compared to the position loaded from the configuration file. |
protected boolean |
isSetupStreams()
Determines if the streams should be setup for the console panel. |
static void |
main(java.lang.String[] args)
Program entry point. |
protected void |
processAndOutput(boolean plotFlag)
Process parameters and generate output. |
boolean |
processAndPlot(PlotDisplayOptionPanel plotDisplayOptionPanelObj)
Processes parameters, performs requested operations and generates the output plots. |
protected void |
removeConsolePanel()
Remove the Console Panel from the tabbed pane. |
static void |
runJPlotResp(javax.swing.JFrame programFrameObj,
ConfigManager cfgObj,
com.isti.util.logging.IstiLogger logger,
boolean allowSystemExitFlag,
boolean exitFrameDisposeFlag)
Run 'JPlotResp'. |
void |
saveConfig()
Saves the configuration. |
protected void |
selectEntryPanel()
Select the entry panel on the tabbed pane. |
protected void |
setAllowSystemExit(boolean b)
Set if system exit is allowed or not. |
protected void |
setExitProgramFrameDispose(boolean b)
Set if frame is disposed on exit or not. |
protected void |
setupFocusManager(IstiFocusManager fm)
Setup the focus manager. |
protected static void |
setupLookAndFeel()
Set the current default look and feel. |
protected static void |
setupLookAndFeel(java.lang.String className)
Set the current default look and feel. |
protected void |
showFrame()
Show the frame. |
protected static void |
showSplashWindow()
Show the splash window. |
protected void |
storeFrameSettings()
Saves the position and size of the program window frame. |
Methods inherited from class com.isti.jevalresp.RunExt |
---|
checkGenerateFreqArray, doGenerateOutput, generateResponseOutputs, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput, processAndOutput |
Methods inherited from class com.isti.jevalresp.Run |
---|
addTimeToCalendar, checkWebServicesServer, clearErrorMessage, enterStartStopStageNums, generateNetResponses, generateResponses, generateWebResponses, getErrorFlag, getErrorMessage, getExitStatusValue, listToStringArray, optionsArrToString, preprocessParameters, processAndOutput, processNonSwitchParams, processSwitchParams, setErr, setErrorMessage, unitInfoStr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROGRAM_NAME
public static final java.lang.String VERSION_NUM_STR
public static final java.lang.String REVISION_STR
public static final java.lang.String SPLASH_GRAPHIC_FNAME
public static final java.lang.String MIN_JAVA_VERSION
public final javax.swing.JFrame programFrameObj
protected static SplashWindow splashWindowObj
protected static final int DEF_FRAME_WIDTH
protected static final int DEF_FRAME_HEIGHT
protected final javax.swing.JPanel mainContentPanel
protected final javax.swing.JTabbedPane mainTabbedPane
protected RespEntryPanel entryPanel
protected final javax.swing.JButton quitButton
protected static final java.io.File currentDirectory
protected static final java.lang.String CONFIG_FNAME
protected final ConfigManager cfgObj
protected final com.isti.util.logging.IstiLogger logger
public static final boolean defaultExitFrameDisposeFlag
public static final boolean defaultAllowSystemExitFlag
public static final java.lang.String javaVersionString
Constructor Detail |
---|
public PlotRun()
protected PlotRun(javax.swing.JFrame programFrameObj, ConfigManager cfgObj, com.isti.util.logging.IstiLogger logger)
programFrameObj
- the frame.cfgObj
- the config manager.logger
- the logger.Method Detail |
---|
public javax.swing.JFileChooser createFileChooser(int frameWidth, int frameHeight, boolean appendButtonFlag)
frameWidth
- the width of the file chooser window frame.frameHeight
- the height of the file chooser window frame.appendButtonFlag
- specifies that an "Append" button will be
added to the panel (that will append selections to those chosen
previously).
protected boolean isSetupStreams()
protected void processAndOutput(boolean plotFlag)
plotFlag
- a boolean where true indicates output should be plotted.protected void removeConsolePanel()
protected void closeAllPlots()
protected void selectEntryPanel()
public java.io.PrintStream getConsoleOut()
getConsoleOut
in class Run
protected void execute(java.lang.Runnable command, java.lang.String name)
command
- the runnable taskname
- the task namepublic void saveConfig()
public boolean isFrameChanged()
protected void storeFrameSettings()
public boolean processAndPlot(PlotDisplayOptionPanel plotDisplayOptionPanelObj)
plotDisplayOptionPanelObj
- plot display option panel.
protected void setExitProgramFrameDispose(boolean b)
b
- true to dispose frame on exit, false otherwise.protected void setAllowSystemExit(boolean b)
b
- true to allow system exit, false otherwise.protected static void showSplashWindow()
protected static IstiFocusManager createFocusManager()
protected void setupFocusManager(IstiFocusManager fm)
fm
- IstiFocusManagerprotected static void disposeSplashWindow()
protected void showFrame()
public static javax.swing.JFrame getDefaultFrame()
public static ConfigManager getDefaultConfigManager()
public static com.isti.util.logging.IstiLogger getDefaultLogger()
public static void main(java.lang.String[] args)
args
- program argumentspublic static void runJPlotResp(javax.swing.JFrame programFrameObj, ConfigManager cfgObj, com.isti.util.logging.IstiLogger logger, boolean allowSystemExitFlag, boolean exitFrameDisposeFlag)
programFrameObj
- the frame.cfgObj
- the config manager.logger
- the logger.allowSystemExitFlag
- true to allow system exit, false otherwise.exitFrameDisposeFlag
- true to dispose frame on exit, false otherwise.protected void exitCleanup()
protected void exitProgram()
protected static void setupLookAndFeel()
protected static void setupLookAndFeel(java.lang.String className)
className
- a string specifying the name of the class that implements
the look and feel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |