public abstract class GraphicsConfigTemplate extends Object implements Serializable
GraphicsConfigTemplate类用于获取有效的GraphicsConfiguration 。 
       用户实例化其中一个对象,然后根据需要设置所有非默认属性。 
       在GraphicsDevice类中找到的GraphicsDevice.getBestConfiguration(java.awt.GraphicsConfigTemplate)方法然后用这个GraphicsConfigTemplate 。 
       有效GraphicsConfiguration返回满足或超过什么的要求GraphicsConfigTemplate 。 
      GraphicsDevice , GraphicsConfiguration , Serialized Form 
       | Modifier and Type | Field and Description | 
|---|---|
| static int | PREFERRED
              用于“Enum”(整数)类型的值。 
             | 
| static int | REQUIRED
              用于“Enum”(整数)类型的值。 
             | 
| static int | UNNECESSARY
              用于“Enum”(整数)类型的值。 
             | 
| Constructor and Description | 
|---|
| GraphicsConfigTemplate()
              这个类是一个抽象类,所以只有子类可以被实例化。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract GraphicsConfiguration | getBestConfiguration(GraphicsConfiguration[] gc)
              返回通过GraphicsConfigTemplate中定义的条件的“最佳” 
              GraphicsConfigTemplate。 | 
| abstract boolean | isGraphicsConfigSupported(GraphicsConfiguration gc)
              返回一个 
              boolean指示是否可以使用指定的GraphicsConfiguration来创建支持指定功能的绘图面。 | 
public static final int REQUIRED
GraphicsConfiguration对象需要的。 
           如果此功能不可用,请勿选择GraphicsConfiguration对象。 
          public static final int PREFERRED
GraphicsConfiguration对象需要此功能的GraphicsConfiguration 。 
           使用此功能的选择优先于不包含此功能的选项,尽管这两种选择都可以被认为是有效的匹配。 
          public static final int UNNECESSARY
GraphicsConfiguration对象。 
           没有此功能的选择优先于包含此功能的选项,因为它不被使用。 
          public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)
GraphicsConfigTemplate 。 
          gc - 可选择的 
            GraphicsConfiguration对象数组。 
           GraphicsConfiguration对象是可能的最佳配置。 
           GraphicsConfiguration 
           public abstract boolean isGraphicsConfigSupported(GraphicsConfiguration gc)
boolean指示是否可以使用指定的 
           GraphicsConfiguration来创建支持指定功能的绘图面。 
          gc - 要测试的 
            GraphicsConfiguration对象 
           true如果此GraphicsConfiguration对象可用于创建支持指示的特征的曲面; 
            false如果GraphicsConfiguration无法用于创建此Java(tm)API可用的绘图表面。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.