Class Size
public class Size
extends Object
代表一个尺寸类。
-
Constructor Summary
Constructors
Size(double width,
double height)
-
Method Summary
final double
final double
final void
final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Size
public Size(double width,
double height)
使用指定的宽度和高度构造Size类的新实例。
- Parameters:
width
- 尺寸的宽度。
height
- 尺寸的高度。
-
Method Details
-
getWidth
public final double getWidth()
返回此大小的宽度。
-
setWidth
public final void setWidth(double value)
设置此尺寸的宽度。
-
getHeight
public final double getHeight()
返回此尺寸的高度。
-
setHeight
public final void setHeight(double value)
设置此尺寸的高度。