ecologylab.appframework
Class Environment.The

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.appframework.Environment.The
Enclosing interface:
Environment

public static class Environment.The
extends Debug

Holds a reference to the singleton global instance of Environment, and simple methods for getting and setting this reference.


Constructor Summary
Environment.The()
           
Environment.The(Environment e)
           
 
Method Summary
static boolean checkFor(java.lang.String className)
           
 java.lang.String frame()
           
 Environment get()
           
 boolean hasAgile2D()
           
 boolean hasGL()
           
 boolean hasGoodJava()
          Check to see if we're running on what we consider to be a decent, usable version of Java.
 boolean hasJTidy()
           
 boolean hasMultivalent()
           
 boolean hasPDFBox()
           
 boolean hasQuicktime()
           
 boolean hasServlet()
           
 boolean hasXML()
           
 boolean javaIsBeta()
           
 float javaVersion()
           
 Scope preferencesRegistry()
          The registry of Preferences for this Environment.
 void set(Environment e)
           
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Environment.The

public Environment.The()

Environment.The

public Environment.The(Environment e)
Method Detail

set

public void set(Environment e)

get

public Environment get()

javaVersion

public float javaVersion()
Returns:
The version of Java we're using.

hasGoodJava

public boolean hasGoodJava()
Check to see if we're running on what we consider to be a decent, usable version of Java. For 1.5, this means rel 4 or more; for 1.4, it means 1.42_04 or more.

Returns:
true if the Java we're running on is good; false if its crap.

javaIsBeta

public boolean javaIsBeta()

hasQuicktime

public boolean hasQuicktime()

hasAgile2D

public boolean hasAgile2D()

hasMultivalent

public boolean hasMultivalent()

hasPDFBox

public boolean hasPDFBox()

hasJTidy

public boolean hasJTidy()

hasGL

public boolean hasGL()

hasXML

public boolean hasXML()

hasServlet

public boolean hasServlet()

checkFor

public static boolean checkFor(java.lang.String className)

frame

public java.lang.String frame()

preferencesRegistry

public Scope preferencesRegistry()
The registry of Preferences for this Environment.

Returns:
registry of Preferences for this Environment.