com.rubecula.darwin.visualization
Class VisualizationProperties

java.lang.Object
  extended by java.util.ResourceBundle
      extended by java.util.PropertyResourceBundle
          extended by com.rubecula.util.UsefulProperties
              extended by com.rubecula.darwin.core.DarwinProperties
                  extended by com.rubecula.darwin.visualization.VisualizationProperties

public class VisualizationProperties
extends DarwinProperties

Author:
Robin

Field Summary
static String P_PAINTER_TITLE
           
static String P_TITLE_APPLICATION
           
 
Fields inherited from class com.rubecula.darwin.core.DarwinProperties
P_EXPRESSIONS_ENABLED, P_GENERATION_INTERVAL, P_GENERATIONS, P_MORTALITY_DEFAULT, P_POPULATION_IDEAL_DEFAULT, P_POPULATION_RATIO_SEED
 
Fields inherited from class com.rubecula.util.UsefulProperties
P_VERSION
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
VisualizationProperties(String propertiesUrl)
           
VisualizationProperties(URL propertiesUrl)
           
 
Method Summary
static UsefulProperties valueOf(Applet applet, String propertiesUrlParamName, String propertiesUrlDefault)
          Factory method to yield an UsefulProperties object based on data from an Applet.
 
Methods inherited from class com.rubecula.util.UsefulProperties
getBoolean, getBoolean, getDouble, getDouble, getInteger, getInteger, getString
 
Methods inherited from class java.util.PropertyResourceBundle
getKeys, handleGetObject
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_PAINTER_TITLE

public static final String P_PAINTER_TITLE
See Also:
Constant Field Values

P_TITLE_APPLICATION

public static final String P_TITLE_APPLICATION
See Also:
Constant Field Values
Constructor Detail

VisualizationProperties

public VisualizationProperties(String propertiesUrl)
                        throws MalformedURLException,
                               IOException
Throws:
MalformedURLException
IOException

VisualizationProperties

public VisualizationProperties(URL propertiesUrl)
                        throws MalformedURLException,
                               IOException
Throws:
MalformedURLException
IOException
Method Detail

valueOf

public static final UsefulProperties valueOf(Applet applet,
                                             String propertiesUrlParamName,
                                             String propertiesUrlDefault)
                                      throws MalformedURLException,
                                             IOException
Factory method to yield an UsefulProperties object based on data from an Applet.

Parameters:
applet - the applet
propertiesUrlParamName - the name of the applet parameter (specified in HTML) which specifies (as a URL) where to find the properties file.
propertiesUrlDefault - the URL to use if there is no applet parameter value specified.
Returns:
a new instance of UsefulProperties
Throws:
MalformedURLException
IOException