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
值用“枚举”(整数)型。
|
static int |
REQUIRED
值用“枚举”(整数)型。
|
static int |
UNNECESSARY
值用“枚举”(整数)型。
|
Constructor and Description |
---|
GraphicsConfigTemplate()
这个类是一个抽象类的子类可以被实例化,只有。
|
Modifier and Type | Method and Description |
---|---|
abstract GraphicsConfiguration |
getBestConfiguration(GraphicsConfiguration[] gc)
返回“最好”的配置成为可能,通过在
GraphicsConfigTemplate 定义的标准。
|
abstract boolean |
isGraphicsConfigSupported(GraphicsConfiguration gc)
返回一个
boolean 指示是否指定
GraphicsConfiguration 可以用来创建一个绘图表面支持显示功能。
|
public static final int REQUIRED
GraphicsConfiguration
。如果该功能是不可用的,不要选择
GraphicsConfiguration
对象。
public static final int PREFERRED
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 API可用(TM)。
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.