软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.font |
提供有关字体的类和接口。
|
java.awt.image |
提供创建和修改图像的类。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.nimbus |
提供用户界面对象建立跨平台的灵气的外观和感觉。
|
Modifier and Type | Method and Description |
---|---|
Graphics2D |
SplashScreen.createGraphics()
创建一个图形上下文(如
Graphics2D 对象)为初始屏幕覆盖图像,你可以画在屏幕。
|
abstract Graphics2D |
GraphicsEnvironment.createGraphics(BufferedImage img)
返回指定的
BufferedImage 渲染成一
Graphics2D 对象。
|
Modifier and Type | Method and Description |
---|---|
void |
ShapeGraphicAttribute.draw(Graphics2D graphics, float x, float y)
使得这
GraphicAttribute 在指定位置。
|
void |
ImageGraphicAttribute.draw(Graphics2D graphics, float x, float y)
使得这
GraphicAttribute 在指定位置。
|
abstract void |
GraphicAttribute.draw(Graphics2D graphics, float x, float y)
使得这
GraphicAttribute 在指定位置。
|
void |
TextLayout.draw(Graphics2D g2, float x, float y)
这
TextLayout 呈现在指定的
Graphics2D 上下文指定位置。
|
Modifier and Type | Method and Description |
---|---|
abstract Graphics2D |
VolatileImage.createGraphics()
创建一个
Graphics2D ,可画成这
VolatileImage 。
|
Graphics2D |
BufferedImage.createGraphics()
创建一个
Graphics2D ,可画成这
BufferedImage 。
|
Modifier and Type | Method and Description |
---|---|
void |
Painter.paint(Graphics2D g, T object, int width, int height)
对于给定的
Graphics2D 对象。
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractRegionPainter.configureGraphics(Graphics2D g)
配置了Graphics2D。
|
protected abstract void |
AbstractRegionPainter.doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)
实际执行喷漆操作。
|
void |
AbstractRegionPainter.paint(Graphics2D g, JComponent c, int w, int h)
对于给定的
Graphics2D 对象。
|
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.