类的用途
java.awt.GraphicsConfiguration
使用 GraphicsConfiguration 的包
包
描述
包含用于创建用户界面以及绘制图形和图像的所有类。
提供用于创建和修改图像的类。
为 Java 打印服务 API 提供主要类和接口。
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
-
GraphicsConfiguration 在 java.awt 中的用法
java.awt 中返回 GraphicsConfiguration 的方法修饰符和类型方法描述abstract GraphicsConfigurationGraphicsConfigTemplate.getBestConfiguration(GraphicsConfiguration[] gc) 返回可能通过GraphicsConfigTemplate中定义的标准的“最佳”配置。GraphicsDevice.getBestConfiguration(GraphicsConfigTemplate gct) 返回可能通过GraphicsConfigTemplate中定义的标准的“最佳”配置。abstract GraphicsConfiguration[]GraphicsDevice.getConfigurations()返回与此GraphicsDevice关联的所有GraphicsConfiguration对象。abstract GraphicsConfigurationGraphicsDevice.getDefaultConfiguration()返回与此GraphicsDevice关联的默认GraphicsConfiguration。abstract GraphicsConfigurationGraphics2D.getDeviceConfiguration()返回与此Graphics2D关联的设备配置。Component.getGraphicsConfiguration()获取与此Component关联的GraphicsConfiguration。java.awt 中的方法,参数类型为 GraphicsConfiguration修饰符和类型方法描述abstract GraphicsConfigurationGraphicsConfigTemplate.getBestConfiguration(GraphicsConfiguration[] gc) 返回可能通过GraphicsConfigTemplate中定义的标准的“最佳”配置。Image.getCapabilities(GraphicsConfiguration gc) 返回一个 ImageCapabilities 对象,可以查询此 Image 在指定 GraphicsConfiguration 上的功能。Toolkit.getScreenInsets(GraphicsConfiguration gc) 获取屏幕的insets。abstract booleanGraphicsConfigTemplate.isGraphicsConfigSupported(GraphicsConfiguration gc) 返回一个boolean指示指定的GraphicsConfiguration是否可用于创建支持指定功能的绘图表面。java.awt 中的构造函数,参数类型为 GraphicsConfiguration修饰符构造方法描述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。使用指定的GraphicsConfiguration构造一个新的、最初不可见的Frame。Frame(String title, GraphicsConfiguration gc) 构造一个新的、最初不可见的具有指定标题和GraphicsConfiguration的Frame对象。Window(Window owner, GraphicsConfiguration gc) 使用屏幕设备的指定所有者Window和GraphicsConfiguration构造一个新的、最初不可见的窗口。 -
GraphicsConfiguration 在 java.awt.image 中的用法
java.awt.image 中的方法,参数类型为 GraphicsConfiguration修饰符和类型方法描述abstract intVolatileImage.validate(GraphicsConfiguration gc) 如果表面在上次validate调用后丢失,则尝试恢复图像的绘图表面。 -
GraphicsConfiguration 在 javax.print 中的用法
javax.print 中的方法,参数类型为 GraphicsConfiguration修饰符和类型方法描述static PrintServiceServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes) 向用户显示用于选择打印服务(打印机)的对话框。 -
GraphicsConfiguration 在 javax.swing 中的用法
javax.swing 中的构造函数,参数类型为 GraphicsConfiguration修饰符构造方法描述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的对话框。在屏幕设备的指定GraphicsConfiguration中创建一个Frame和一个空白标题。JFrame(String title, GraphicsConfiguration gc) 创建具有指定标题和屏幕设备的指定GraphicsConfiguration的JFrame。使用屏幕设备的指定GraphicsConfiguration创建一个窗口。JWindow(Window owner, GraphicsConfiguration gc) 使用指定的所有者窗口和屏幕设备的GraphicsConfiguration创建一个窗口。