软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
Modifier and Type | Method and Description |
---|---|
void |
Graphics.drawPolygon(Polygon p)
绘制一个由指定的
Polygon 对象定义多边形的轮廓。
|
void |
Graphics.fillPolygon(Polygon p)
填充指定的多边形对象定义的多边形,用图形上下文的当前颜色填充。
|
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.