|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.GraphicsConfigTemplate
public abstract class GraphicsConfigTemplate
This allows filtering an array of GraphicsConfigurations for the best one based on various requirements. The resulting configuration has had all non-default attributes set as required to meet or exceed the request.
GraphicsConfiguration,
GraphicsDevice,
Serialized Form| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GraphicsConfigTemplate()
The default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REQUIRED
public static final int PREFERRED
public static final int UNNECESSARY
| Constructor Detail |
|---|
public GraphicsConfigTemplate()
| Method Detail |
|---|
public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] array)
array - the array to choose from
NullPointerException - if array is nullpublic abstract boolean isGraphicsConfigSupported(GraphicsConfiguration config)
config - the configuration to test
NullPointerException - if config is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||