| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 GraphicsConfiguration 的软件包 | |
|---|---|
| java.awt | 包含用于创建用户界面和绘制图形图像的所有类。 | 
| java.awt.image | 提供创建和修改图像的各种类。 | 
| javax.print | 为 JavaTM Print Service API 提供了主要类和接口。 | 
| javax.swing | 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 | 
| java.awt 中 GraphicsConfiguration 的使用 | 
|---|
| 返回 GraphicsConfiguration 的 java.awt 中的方法 | |
|---|---|
 GraphicsConfiguration | 
GraphicsDevice.getBestConfiguration(GraphicsConfigTemplate gct)
返回通过了 GraphicsConfigTemplate 中定义的标准的可能“最佳”配置。 | 
abstract  GraphicsConfiguration | 
GraphicsConfigTemplate.getBestConfiguration(GraphicsConfiguration[] gc)
返回通过了 GraphicsConfigTemplate 中定义的标准的可能“最佳”配置。 | 
abstract  GraphicsConfiguration[] | 
GraphicsDevice.getConfigurations()
返回与此 GraphicsDevice 关联的所有 GraphicsConfiguration 对象。 | 
abstract  GraphicsConfiguration | 
GraphicsDevice.getDefaultConfiguration()
返回与此 GraphicsDevice 关联的默认 GraphicsConfiguration。 | 
abstract  GraphicsConfiguration | 
Graphics2D.getDeviceConfiguration()
返回与此 Graphics2D 关联的设备配置。 | 
 GraphicsConfiguration | 
Window.getGraphicsConfiguration()
此方法返回由此窗口使用的 GraphicsConfiguration。  | 
 GraphicsConfiguration | 
Component.getGraphicsConfiguration()
获取与此 Component 相关的 GraphicsConfiguration。 | 
| 参数类型为 GraphicsConfiguration 的 java.awt 中的方法 | |
|---|---|
abstract  GraphicsConfiguration | 
GraphicsConfigTemplate.getBestConfiguration(GraphicsConfiguration[] gc)
返回通过了 GraphicsConfigTemplate 中定义的标准的可能“最佳”配置。 | 
 ImageCapabilities | 
Image.getCapabilities(GraphicsConfiguration gc)
返回 ImageCapabilities 对象,查询该对象便可以了解使用指定 GraphicsConfiguration 时此 Image 的功能。  | 
 Insets | 
Toolkit.getScreenInsets(GraphicsConfiguration gc)
获得屏幕的 insets。  | 
abstract  boolean | 
GraphicsConfigTemplate.isGraphicsConfigSupported(GraphicsConfiguration gc)
返回一个 boolean,它指示指定的 GraphicsConfiguration 是否可用于创建支持指定功能的绘图面。 | 
| 参数类型为 GraphicsConfiguration 的 java.awt 中的构造方法 | |
|---|---|
Canvas(GraphicsConfiguration config)
根据给定 GraphicsConfiguration 对象构造一个新的 Canvas。  | 
|
Dialog(Dialog owner,
       String title,
       boolean modal,
       GraphicsConfiguration gc)
构造一个最初不可见的 Dialog,它带有指定的所有者 Dialog、标题、模式和 GraphicsConfiguration。 | 
|
Dialog(Frame owner,
       String title,
       boolean modal,
       GraphicsConfiguration gc)
构造一个最初不可见的 Dialog,它带有指定的所有者 Frame、标题、模式和 GraphicsConfiguration。 | 
|
Dialog(Window owner,
       String title,
       Dialog.ModalityType modalityType,
       GraphicsConfiguration gc)
构造一个最初不可见的 Dialog,它带有指定的所有者 Window、标题、模式和 GraphicsConfiguration。 | 
|
Frame(GraphicsConfiguration gc)
使用指定的 GraphicsConfiguration 构造一个最初不可见的新 Frame。 | 
|
Frame(String title,
      GraphicsConfiguration gc)
构造一个新的、初始不可见的、具有指定标题和 GraphicsConfiguration 的 Frame 对象。 | 
|
Window(Window owner,
       GraphicsConfiguration gc)
构造一个新的、最初不可见的窗口,使用指定的所有者 Window 和屏幕设备的 GraphicsConfiguration。 | 
|
| java.awt.image 中 GraphicsConfiguration 的使用 | 
|---|
| 参数类型为 GraphicsConfiguration 的 java.awt.image 中的方法 | |
|---|---|
abstract  int | 
VolatileImage.validate(GraphicsConfiguration gc)
如果上次调用 validate 后绘制表面丢失,则试图恢复图像的绘制表面。 | 
| javax.print 中 GraphicsConfiguration 的使用 | 
|---|
| 参数类型为 GraphicsConfiguration 的 javax.print 中的方法 | |
|---|---|
static PrintService | 
ServiceUI.printDialog(GraphicsConfiguration gc,
            int x,
            int y,
            PrintService[] services,
            PrintService defaultService,
            DocFlavor flavor,
            PrintRequestAttributeSet attributes)
为用户提供一个选择 PrintService(打印机)的对话框。  | 
| javax.swing 中 GraphicsConfiguration 的使用 | 
|---|
| 参数类型为 GraphicsConfiguration 的 javax.swing 中的构造方法 | |
|---|---|
JDialog(Dialog owner,
        String title,
        boolean modal,
        GraphicsConfiguration gc)
创建一个具有指定标题、所有者 Dialog、模式和 GraphicsConfiguration 的对话框。 | 
|
JDialog(Frame owner,
        String title,
        boolean modal,
        GraphicsConfiguration gc)
创建一个具有指定标题、所有者 Frame、模式和 GraphicsConfiguration 的对话框。 | 
|
JDialog(Window owner,
        String title,
        Dialog.ModalityType modalityType,
        GraphicsConfiguration gc)
创建一个具有指定标题、所有者 Window、模式和 GraphicsConfiguration 的对话框。 | 
|
JFrame(GraphicsConfiguration gc)
以屏幕设备的指定 GraphicsConfiguration 和空白标题创建一个 Frame。 | 
|
JFrame(String title,
       GraphicsConfiguration gc)
创建一个具有指定标题和指定屏幕设备的 GraphicsConfiguration 的 JFrame。 | 
|
JWindow(GraphicsConfiguration gc)
使用屏幕设备的指定 GraphicsConfiguration 创建窗口。 | 
|
JWindow(Window owner,
        GraphicsConfiguration gc)
使用屏幕设备的指定所有者窗口和 GraphicsConfiguration 创建窗口。 | 
|
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。