|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。