|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.barbecue.env.EnvironmentFactory
public class EnvironmentFactory
Factory class for getting hold of the current operating environment.
| Constructor Summary | |
|---|---|
protected |
EnvironmentFactory()
Cannot construct directly |
| Method Summary | |
|---|---|
static Environment |
getEnvironment()
Returns the current operating environment. |
static void |
setDefaultEnvironment(Environment newEnv)
Sets the default environment for the factory. |
static void |
setDefaultMode()
Sets the factory to use the default (discovered) environment. |
static void |
setHeadlessMode()
Forces the factory to assume headless mode, regardless of whether this is actually true or not. |
static void |
setNonAWTMode()
Forces the factory to use the environment that does not access the AWT. |
static void |
setNonAWTMode(int resolution)
Forces the factory to use the environment that does not access the AWT. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EnvironmentFactory()
| Method Detail |
|---|
public static Environment getEnvironment()
public static void setHeadlessMode()
public static void setNonAWTMode()
public static void setNonAWTMode(int resolution)
resolution - The desired (or current) screen/output resolutionpublic static void setDefaultMode()
public static void setDefaultEnvironment(Environment newEnv)
newEnv - The new default environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||