|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Ellipse2D
java.awt.geom.Ellipse2D.Double
public static class Ellipse2D.Double
Double 類別以 double 精度定義橢圓。
| 巢狀類別摘要 |
|---|
| 從類別 java.awt.geom.Ellipse2D 繼承的巢狀類別/介面 |
|---|
Ellipse2D.Double, Ellipse2D.Float |
| 欄位摘要 | |
|---|---|
double |
height
此 Ellipse2D 的總高度。 |
double |
width
此 Ellipse2D 的總寬度。 |
double |
x
此 Ellipse2D 的窗體矩形左上角的 X 坐標。 |
double |
y
此 Ellipse2D 的窗體矩形左上角的 Y 坐標。 |
| 建構子摘要 | |
|---|---|
Ellipse2D.Double()
建構一個新 Ellipse2D,並將其初始化為:位置 (0, 0)、大小 (0, 0)。 |
|
Ellipse2D.Double(double x,
double y,
double w,
double h)
根據指定坐標建構和初始化 Ellipse2D。 |
|
| 方法摘要 | |
|---|---|
Rectangle2D |
getBounds2D()
返回一個高精度的、比 getBounds 方法更準確的 Shape 邊界框。 |
double |
getHeight()
以 double 精度返回窗體矩形的高度。 |
double |
getWidth()
以 double 精度返回窗體矩形的寬度。 |
double |
getX()
以 double 精度返回窗體矩形左上角的 X 坐標。 |
double |
getY()
以 double 精度返回窗體矩形左上角的 Y 坐標。 |
boolean |
isEmpty()
確定 RectangularShape 是否為空。 |
void |
setFrame(double x,
double y,
double w,
double h)
將此 Shape 窗體矩形的位置和大小設置為指定的矩形值。 |
| 從類別 java.awt.geom.Ellipse2D 繼承的方法 |
|---|
contains, contains, equals, getPathIterator, hashCode, intersects |
| 從類別 java.awt.geom.RectangularShape 繼承的方法 |
|---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| 從類別 java.lang.Object 繼承的方法 |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public double x
Ellipse2D 的窗體矩形左上角的 X 坐標。
public double y
Ellipse2D 的窗體矩形左上角的 Y 坐標。
public double width
Ellipse2D 的總寬度。
public double height
Ellipse2D 的總高度。
| 建構子詳細資訊 |
|---|
public Ellipse2D.Double()
Ellipse2D,並將其初始化為:位置 (0, 0)、大小 (0, 0)。
public Ellipse2D.Double(double x,
double y,
double w,
double h)
Ellipse2D。
x - 窗體矩形左上角的 X 坐標y - 窗體矩形左上角的 Y 坐標w - 窗體矩形的寬度h - 窗體矩形的高度| 方法詳細資訊 |
|---|
public double getX()
double 精度返回窗體矩形左上角的 X 坐標。
RectangularShape 中的 getXpublic double getY()
double 精度返回窗體矩形左上角的 Y 坐標。
RectangularShape 中的 getYpublic double getWidth()
double 精度返回窗體矩形的寬度。
RectangularShape 中的 getWidthpublic double getHeight()
double 精度返回窗體矩形的高度。
RectangularShape 中的 getHeightpublic boolean isEmpty()
RectangularShape 是否為空。當 RectangularShape 為空時,它不封閉任何區域。
RectangularShape 中的 isEmptyRectangularShape 為空,則返回 true;否則返回 false。
public void setFrame(double x,
double y,
double w,
double h)
Shape 窗體矩形的位置和大小設置為指定的矩形值。
RectangularShape 中的 setFramex - 指定矩形左上角的 X 坐標y - 指定矩形左上角的 Y 坐標w - 指定矩形的寬度h - 指定矩形的高度RectangularShape.getFrame()public Rectangle2D getBounds2D()
getBounds 方法更準確的 Shape 邊界框。注意,不保證返回的 Rectangle2D 是包圍 Shape 的最小邊界框,只保證 Shape 完全位於指示的 Rectangle2D 中。此方法返回的邊界框通常比 getBounds 方法返回的更緊密,而且永遠不會因為溢位問題而出錯,因為返回值可以是一個使用雙精度值存儲尺寸的 Rectangle2D 實例。
Shape 中的 getBounds2DRectangle2D 實例,它是 Shape 的高精度邊界框。Shape.getBounds()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。