halo.userinterface.gui.session
Class Config

java.lang.Object
  extended by halo.userinterface.gui.session.Config

public class Config
extends java.lang.Object

Provides a set of final parameters describing paths and file names and saves user decisions for the display of certain dialogs

Author:
Stefanie Kaufmann

Field Summary
static java.lang.String CONFIGDIR
           
static java.lang.String CONFIGFILE
           
static java.lang.String CONFIGPATH
           
static java.lang.String CORRELATIONCOEFFICIENT
           
static java.lang.String LOESSREGRESSION
           
 
Constructor Summary
Config()
           
 
Method Summary
static void generateConfigFile()
          Generates a file that saves information about the display of the information dialog on program start, exit dialog on program exit, and path of the session file based on previously loaded values
static void generateConfigFile(boolean hint, boolean exit, java.lang.String file)
          Generates a file that saves information about the display of the information dialog on program start, exit dialog on program exit, and path of the session file
static boolean getDisplayExit()
          Returns true if exit dialog should be displayed
static boolean getDisplayHint()
          Returns true if question mark dialog should be displayed
static java.lang.String getPathToR()
          Returns the path of the R bin folder
static java.lang.String getSessionFile()
          Returns the path of the session file
static java.lang.String getUserbrowser()
          Returns the user browser
static void loadConfigFile()
          Loads a config file
static void setDisplayExit(boolean exit)
          Sets the information if exit dialog should be displayed
static void setDisplayHint(boolean hint)
          Sets the information if question mark dialog should be displayed
static void setPathToR(java.lang.String pathToR)
          Sets the path to the bin folder of the R installation
static void setSessionFile(java.lang.String file)
          Sets the path of the session file
static void setUserbrowser(java.lang.String userbrowser)
          Sets the user browser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGDIR

public static final java.lang.String CONFIGDIR

CONFIGPATH

public static final java.lang.String CONFIGPATH

CORRELATIONCOEFFICIENT

public static final java.lang.String CORRELATIONCOEFFICIENT

LOESSREGRESSION

public static final java.lang.String LOESSREGRESSION

CONFIGFILE

public static final java.lang.String CONFIGFILE
Constructor Detail

Config

public Config()
Method Detail

generateConfigFile

public static void generateConfigFile(boolean hint,
                                      boolean exit,
                                      java.lang.String file)
Generates a file that saves information about the display of the information dialog on program start, exit dialog on program exit, and path of the session file

Parameters:
hint - TRUE if dialog about question mark should be displayed again
exit - TRUE if dialog about saving on exit should be displayed again
file - Path of the file that contains the saved session

generateConfigFile

public static void generateConfigFile()
Generates a file that saves information about the display of the information dialog on program start, exit dialog on program exit, and path of the session file based on previously loaded values


loadConfigFile

public static void loadConfigFile()
Loads a config file


setDisplayHint

public static void setDisplayHint(boolean hint)
Sets the information if question mark dialog should be displayed

Parameters:
hint - TRUE if question mark dialog should be displayed

setDisplayExit

public static void setDisplayExit(boolean exit)
Sets the information if exit dialog should be displayed

Parameters:
exit - TRUE if exit dialog should be displayed

setPathToR

public static void setPathToR(java.lang.String pathToR)
Sets the path to the bin folder of the R installation

Parameters:
pathToR - The absolute path of the R bin folder

setSessionFile

public static void setSessionFile(java.lang.String file)
Sets the path of the session file

Parameters:
file - Path of the session file

setUserbrowser

public static void setUserbrowser(java.lang.String userbrowser)
Sets the user browser

Parameters:
userbrowser - User-defined browser

getDisplayHint

public static boolean getDisplayHint()
Returns true if question mark dialog should be displayed

Returns:
TRUE if question mark dialog should be displayed

getDisplayExit

public static boolean getDisplayExit()
Returns true if exit dialog should be displayed

Returns:
TRUE if exit dialog should be displayed

getSessionFile

public static java.lang.String getSessionFile()
Returns the path of the session file

Returns:
Path of the session file

getUserbrowser

public static java.lang.String getUserbrowser()
Returns the user browser

Returns:
User defined browser

getPathToR

public static java.lang.String getPathToR()
Returns the path of the R bin folder

Returns:
The path of the R bin folder