Class ViewPlots.Environment

java.lang.Object
  extended byViewPlots.Environment
Enclosing class:
ViewPlots

class ViewPlots.Environment
extends java.lang.Object

Environment supporting class for ViewPlots This class handles the retrieving of environment settings for both the applet (passed from html), or from the aplication (command line arguments). It simplifies the ViewPlots code to reduce the confusion the mode can add.

Author:
Daniel J. Adams

Field Summary
(package private)  java.util.Hashtable itsHash
          Hashtable to store environment info in, from argument line in application case
 
Constructor Summary
ViewPlots.Environment()
          Default constructor.
ViewPlots.Environment(java.lang.String[] theArgs)
          Application constructor Used for creating a new Environment from the parameters passed in on the command line.
 
Method Summary
 boolean getDateChange()
          Returns the date change flag.
 java.util.Vector getFilters()
          Returns the file filters.
 java.lang.String getRootDir()
          Returns the root directory.
 boolean getShowDirs()
          Returns the show directory flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itsHash

java.util.Hashtable itsHash
Hashtable to store environment info in, from argument line in application case

Constructor Detail

ViewPlots.Environment

public ViewPlots.Environment()
Default constructor. Used as an applet, does not initialize itsHash.


ViewPlots.Environment

public ViewPlots.Environment(java.lang.String[] theArgs)
Application constructor Used for creating a new Environment from the parameters passed in on the command line.

Parameters:
theArgs - The arguments from the command line to be parsed.
Method Detail

getRootDir

public java.lang.String getRootDir()
Returns the root directory. From the environment for both applets and applications.

Returns:
String The directory to use as the root directory.

getShowDirs

public boolean getShowDirs()
Returns the show directory flag. From the environment for both applets and applications. This flag determines if the directory list will be displayed or not.

Returns:
boolean true if we should show sub-directories, else false.

getDateChange

public boolean getDateChange()
Returns the date change flag. From the environment for both applets and applications. This flag determines if the back up date button will be displayed or not.

Returns:
boolean true if we should show button, else false.

getFilters

public java.util.Vector getFilters()
Returns the file filters. From the environment for both applets and applications.

Returns:
Vector A List of filters for this directory