public class EnvironmentFactory
extends java.lang.Object
限定符 | 构造器和说明 |
---|---|
protected |
EnvironmentFactory()
Cannot construct directly
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
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