GraphicsConfigTemplate class is used to obtain a valid
GraphicsConfiguration. A user instantiates one of these
objects and then sets all non-default attributes as desired. The
GraphicsDevice#getBestConfiguration method found in the
GraphicsDevice class is then called with this
GraphicsConfigTemplate. A valid
GraphicsConfiguration is returned that meets or exceeds
what was requested in the GraphicsConfigTemplate.
GraphicsDevice, GraphicsConfiguration
| Modifier and Type | Field and Description |
|---|---|
| public static final int | PREFERRED
Value used for "Enum" (Integer) type. |
| public static final int | REQUIRED
Value used for "Enum" (Integer) type. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.6 for interoperability. |
| public static final int | UNNECESSARY
Value used for "Enum" (Integer) type. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract GraphicsConfiguration | Returns: aGraphicsConfiguration object that is
the best configuration possible.the array of gc)GraphicsConfiguration
objects to choose from.Returns the "best" configuration possible that passes the
criteria defined in the |
| public abstract boolean | Returns: true if this
GraphicsConfiguration object can be used to create
surfaces that support the indicated features;
false if the GraphicsConfiguration can
not be used to create a drawing surface usable by this Java(tm)
API.the gc)GraphicsConfiguration object to testReturns a |
| PREFERRED | back to summary |
|---|---|
| public static final int PREFERRED Value used for "Enum" (Integer) type. States that this
feature is desired for the | |
| REQUIRED | back to summary |
|---|---|
| public static final int REQUIRED Value used for "Enum" (Integer) type. States that this
feature is required for the | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.6 for interoperability. | |
| UNNECESSARY | back to summary |
|---|---|
| public static final int UNNECESSARY Value used for "Enum" (Integer) type. States that this
feature is not necessary for the selection of the
| |
| GraphicsConfigTemplate | back to summary |
|---|---|
| public GraphicsConfigTemplate() This class is an abstract class so only subclasses can be instantiated. | |
| getBestConfiguration | back to summary |
|---|---|
| public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc) Returns the "best" configuration possible that passes the
criteria defined in the
| |
| isGraphicsConfigSupported | back to summary |
|---|---|
| public abstract boolean isGraphicsConfigSupported(GraphicsConfiguration gc) Returns a
| |