- java.lang.Object
- 
- java.awt.geom.RectangularShape
- 
- java.awt.geom.Ellipse2D
- 
- java.awt.geom.Ellipse2D.Float
 
 
 
- 
- すべての実装されたインタフェース:
- Shape,- Serializable,- Cloneable
 - 含まれているクラス:
- Ellipse2D
 
 
 public static class Ellipse2D.Float extends Ellipse2D implements Serializable Floatクラスは、float精度で指定された楕円を定義します。- 導入されたバージョン:
- 1.2
- 関連項目:
- 直列化された形式
 
- 
- 
ネストされたクラスのサマリー- 
クラス java.awt.geom.Ellipse2Dから継承されたネストされたクラス/インタフェースEllipse2D.Double, Ellipse2D.Float
 
- 
 - 
メソッドのサマリーすべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 Rectangle2DgetBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。doublegetHeight()表示枠矩形の高さをdouble精度で返します。doublegetWidth()表示枠矩形の幅をdouble精度で返します。doublegetX()表示枠矩形の左上隅のX座標をdouble精度で返します。doublegetY()表示枠矩形の左上隅のY座標をdouble精度で返します。booleanisEmpty()RectangularShapeが空であるかどうかを判定します。voidsetFrame(double x, double y, double w, double h)このShapeの表示枠矩形の位置とサイズを、指定された矩形値に設定します。voidsetFrame(float x, float y, float w, float 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
 
- 
 
- 
- 
- 
メソッドの詳細- 
getXpublic double getX() 表示枠矩形の左上隅のX座標をdouble精度で返します。- 定義:
- getX、クラス:- RectangularShape
- 戻り値:
- 表示枠矩形の左上隅のX座標。
- 導入されたバージョン:
- 1.2
 
 - 
getYpublic double getY() 表示枠矩形の左上隅のY座標をdouble精度で返します。- 定義:
- getY、クラス:- RectangularShape
- 戻り値:
- 表示枠矩形の左上隅のY座標。
- 導入されたバージョン:
- 1.2
 
 - 
getWidthpublic double getWidth() 表示枠矩形の幅をdouble精度で返します。- 定義:
- getWidth、クラス:- RectangularShape
- 戻り値:
- 表示枠矩形の幅。
- 導入されたバージョン:
- 1.2
 
 - 
getHeightpublic double getHeight() 表示枠矩形の高さをdouble精度で返します。- 定義:
- getHeight、クラス:- RectangularShape
- 戻り値:
- 表示枠矩形の高さ。
- 導入されたバージョン:
- 1.2
 
 - 
isEmptypublic boolean isEmpty() RectangularShapeが空であるかどうかを判定します。RectangularShapeが空の場合は、領域はありません。- 定義:
- isEmpty、クラス:- RectangularShape
- 戻り値:
- RectangularShapeが空である場合は- true、そうでない場合は- false。
- 導入されたバージョン:
- 1.2
 
 - 
setFramepublic void setFrame(float x, float y, float w, float h)このShapeの表示枠矩形の位置とサイズを、指定された矩形値に設定します。- パラメータ:
- x- 指定された矩形形状の左上隅のX座標
- y- 指定された矩形形状の左上隅のY座標
- w- 指定された矩形形状の幅
- h- 指定された矩形形状の高さ
- 導入されたバージョン:
- 1.2
 
 - 
setFramepublic void setFrame(double x, double y, double w, double h)このShapeの表示枠矩形の位置とサイズを、指定された矩形値に設定します。- 定義:
- setFrame、クラス:- RectangularShape
- パラメータ:
- x- 指定された矩形形状の左上隅のX座標
- y- 指定された矩形形状の左上隅のY座標
- w- 指定された矩形形状の幅
- h- 指定された矩形形状の高さ
- 導入されたバージョン:
- 1.2
- 関連項目:
- RectangularShape.getFrame()
 
 - 
getBounds2Dpublic Rectangle2D getBounds2D() 高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。 返されたRectangle2Dが、Shapeを囲む最小のバウンディング・ボックスであるという保証はありません。Shapeが、示されたRectangle2D内に完全に含まれているだけです。 戻り値を、倍精度値を使用して寸法を格納するRectangle2Dのインスタンスにすることができるため、このメソッドによって返されたバウンディング・ボックスは通常、getBoundsメソッドによって返されたものより厳密であり、オーバーフローの問題のために失敗することはありません。内側の定義によって、 shapeの定義する輪郭上の点が、返されたboundsオブジェクトに含まれていると見なされない状況が発生する場合があります。ただし、これは、これらの点が元のshapeにも含まれていないと見なされる場合のみです。pointがcontains(point)メソッドに従ってshapeの内側にある場合は、boundsのcontains(point)メソッドに従って、返されたRectangle2D境界オブジェクトの内側にある必要があります。 具体的には、次のようになります。shape.contains(p)には次が必要:bounds.contains(p)pointがshapeの内側にない場合は、引き続きboundsオブジェクトに含まれている可能性があります。bounds.contains(p)は次を示さない:shape.contains(p)- 定義:
- getBounds2D、インタフェース:- Shape
- 戻り値:
- Shapeの高精度のバウンディング・ボックスである- Rectangle2Dのインスタンス。
- 導入されたバージョン:
- 1.2
- 関連項目:
- Shape.getBounds()
 
 
- 
 
-