|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.awt.GraphicsConfigTemplate
public abstract class GraphicsConfigTemplate
GraphicsConfigTemplate 类用于获得有效的 GraphicsConfiguration。用户实例化其中的一个对象,然后根据需要设置所有非默认的属性。然后,使用此 GraphicsConfigTemplate 调用可在 GraphicsDevice 类中找到的 GraphicsDevice.getBestConfiguration(java.awt.GraphicsConfigTemplate) 方法。返回一个有效的 GraphicsConfiguration,它可满足或超过 GraphicsConfigTemplate 中的要求。
GraphicsDevice,
GraphicsConfiguration,
序列化表格| 字段摘要 | |
|---|---|
static int |
PREFERRED
用于“枚举”(整数)类型的值。 |
static int |
REQUIRED
用于“枚举”(整数)类型的值。 |
static int |
UNNECESSARY
用于“枚举”(整数)类型的值。 |
| 构造方法摘要 | |
|---|---|
GraphicsConfigTemplate()
此类是一个抽象类,因此只有子类才可以实例化。 |
|
| 方法摘要 | |
|---|---|
abstract GraphicsConfiguration |
getBestConfiguration(GraphicsConfiguration[] gc)
返回通过了 GraphicsConfigTemplate 中定义的标准的可能“最佳”配置。 |
abstract boolean |
isGraphicsConfigSupported(GraphicsConfiguration gc)
返回一个 boolean,它指示指定的 GraphicsConfiguration 是否可用于创建支持指定功能的绘图面。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int REQUIRED
GraphicsConfiguration 对象是必需的。如果此功能不可用,则不要选择 GraphicsConfiguration 对象。
public static final int PREFERRED
GraphicsConfiguration 对象所期望的。尽管这两个选项都被视为有效的匹配,但具有此功能的选项要优先于不包含此功能的选项。
public static final int UNNECESSARY
GraphicsConfiguration 对象不是必需的。没有此功能的选项要优先于包含此功能的选项,因为没有使用该功能。
| 构造方法详细信息 |
|---|
public GraphicsConfigTemplate()
| 方法详细信息 |
|---|
public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)
GraphicsConfigTemplate 中定义的标准的可能“最佳”配置。
gc - 要从其选择的 GraphicsConfiguration 对象的数组。
GraphicsConfiguration 对象。GraphicsConfigurationpublic abstract boolean isGraphicsConfigSupported(GraphicsConfiguration gc)
boolean,它指示指定的 GraphicsConfiguration 是否可用于创建支持指定功能的绘图面。
gc - 要测试的 GraphicsConfiguration 对象
GraphicsConfiguration 对象可用于创建支持指定功能的画面,则返回 true;如果 GraphicsConfiguration 不能用于创建此 Java(tm) API 可用的绘图面,则返回 false。
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。