java.awt
public abstract class GraphicsConfigTemplate extends Object implements Serializable
GraphicsConfiguration
,
GraphicsDevice
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
PREFERRED
States that a feature is preferred, but not required, to select a
configuration.
|
static int |
REQUIRED
States that a feature is required to select a configuration.
|
static int |
UNNECESSARY
States that a feature is not necessary in the configuration.
|
Constructor and Description |
---|
GraphicsConfigTemplate()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract GraphicsConfiguration |
getBestConfiguration(GraphicsConfiguration[] array)
Returns the "best" match among the array of possible configurations, given
the criteria of this template.
|
abstract boolean |
isGraphicsConfigSupported(GraphicsConfiguration config)
Returns true if the given configuration supports all the features required
by this template.
|
public static final int REQUIRED
public static final int PREFERRED
public static final int UNNECESSARY
public GraphicsConfigTemplate()
public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] array)
array
- the array to choose fromNullPointerException
- if array is nullpublic abstract boolean isGraphicsConfigSupported(GraphicsConfiguration config)
config
- the configuration to testNullPointerException
- if config is null