public class DoubleDimension2D
extends java.awt.geom.Dimension2D
implements java.io.Serializable
构造器和说明 |
---|
DoubleDimension2D(double width,
double height)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj)
Equals
|
double |
getHeight()
Returns the height of this
Dimension in double
precision. |
double |
getWidth()
Returns the width of this
Dimension in double
precision. |
void |
setSize(double width,
double height)
Sets the size of this
Dimension object to the
specified width and height. |
public double getWidth()
Dimension
in double
precision.getWidth
在类中 java.awt.geom.Dimension2D
Dimension
.public double getHeight()
Dimension
in double
precision.getHeight
在类中 java.awt.geom.Dimension2D
Dimension
.public void setSize(double width, double height)
Dimension
object to the
specified width and height.
This method is included for completeness, to parallel the
getSize
method of
Component
.setSize
在类中 java.awt.geom.Dimension2D
width
- the new width for the Dimension
objectheight
- the new height for the Dimension
objectpublic boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object