软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.geom |
定义在二维几何相关的对象执行操作提供java 2D类。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
Modifier and Type | Class and Description |
---|---|
class |
Dimension
的
Dimension 类封装了一个组件的宽度和高度(整数精度)在一个单一的对象。
|
Modifier and Type | Method and Description |
---|---|
void |
Arc2D.setArc(Point2D loc, Dimension2D size, double angSt, double angExt, int closure)
将此圆弧的位置、大小、角度范围和关闭类型设置为指定的值。
|
void |
RectangularShape.setFrame(Point2D loc, Dimension2D size)
|
void |
Dimension2D.setSize(Dimension2D d)
设置要符合指定的大小,这
Dimension2D 对象的大小。
|
Modifier and Type | Class and Description |
---|---|
class |
DimensionUIResource |
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.