JavaTM Platform
Standard Ed. 6

java.awt.geom
クラス Ellipse2D.Float

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
 
フィールドの概要
 float height
          Ellipse2D の高さです。
 float width
          Ellipse2D の幅です。
 float x
          この Ellipse2D の表示枠矩形の左上隅の X 座標です。
 float y
          この Ellipse2D の表示枠矩形の左上隅の Y 座標です。
 
コンストラクタの概要
Ellipse2D.Float()
          新しい Ellipse2D を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。
Ellipse2D.Float(float x, float y, float w, float h)
          指定された座標から Ellipse2D を構築および初期化します。
 
メソッドの概要
 Rectangle2D getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 double getHeight()
          表示枠矩形の高さを double 精度で返します。
 double getWidth()
          表示枠矩形の幅を double 精度で返します。
 double getX()
          表示枠矩形の左上隅の X 座標を double 精度で返します。
 double getY()
          表示枠矩形の左上隅の Y 座標を double 精度で返します。
 boolean isEmpty()
          RectangularShape が空かどうかを判定します。
 void setFrame(double x, double y, double w, double h)
          この Shape の表示枠矩形の位置とサイズを、指定された矩形値に設定します。
 void setFrame(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
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

x

public float x
この Ellipse2D の表示枠矩形の左上隅の X 座標です。

導入されたバージョン:
1.2

y

public float y
この Ellipse2D の表示枠矩形の左上隅の Y 座標です。

導入されたバージョン:
1.2

width

public float width
Ellipse2D の幅です。

導入されたバージョン:
1.2

height

public float height
Ellipse2D の高さです。

導入されたバージョン:
1.2
コンストラクタの詳細

Ellipse2D.Float

public Ellipse2D.Float()
新しい Ellipse2D を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。

導入されたバージョン:
1.2

Ellipse2D.Float

public Ellipse2D.Float(float x,
                       float y,
                       float w,
                       float h)
指定された座標から Ellipse2D を構築および初期化します。

パラメータ:
x - 表示枠矩形の左上隅の X 座標
y - 表示枠矩形の左上隅の Y 座標
w - 表示枠矩形の幅
h - 表示枠矩形の高さ
導入されたバージョン:
1.2
メソッドの詳細

getX

public double getX()
表示枠矩形の左上隅の X 座標を double 精度で返します。

定義:
クラス RectangularShape 内の getX
戻り値:
表示枠矩形の左上隅の X 座標
導入されたバージョン:
1.2

getY

public double getY()
表示枠矩形の左上隅の Y 座標を double 精度で返します。

定義:
クラス RectangularShape 内の getY
戻り値:
表示枠矩形の左上隅の Y 座標
導入されたバージョン:
1.2

getWidth

public double getWidth()
表示枠矩形の幅を double 精度で返します。

定義:
クラス RectangularShape 内の getWidth
戻り値:
表示枠矩形の幅
導入されたバージョン:
1.2

getHeight

public double getHeight()
表示枠矩形の高さを double 精度で返します。

定義:
クラス RectangularShape 内の getHeight
戻り値:
表示枠矩形の高さ
導入されたバージョン:
1.2

isEmpty

public boolean isEmpty()
RectangularShape が空かどうかを判定します。空の場合は、RectangularShape に領域はありません。

定義:
クラス RectangularShape 内の isEmpty
戻り値:
RectangularShape が空である場合は true、そうでない場合は false
導入されたバージョン:
1.2

setFrame

public void setFrame(float x,
                     float y,
                     float w,
                     float h)
この Shape の表示枠矩形の位置とサイズを、指定された矩形値に設定します。

パラメータ:
x - 指定された矩形形状の左上隅の X 座標
y - 指定された矩形形状の左上隅の Y 座標
w - 指定された矩形形状の幅
h - 指定された矩形形状の高さ
導入されたバージョン:
1.2

setFrame

public void setFrame(double x,
                     double y,
                     double w,
                     double h)
この Shape の表示枠矩形の位置とサイズを、指定された矩形値に設定します。

定義:
クラス RectangularShape 内の setFrame
パラメータ:
x - 指定された矩形形状の左上隅の X 座標
y - 指定された矩形形状の左上隅の Y 座標
w - 指定された矩形形状の幅
h - 指定された矩形形状の高さ
導入されたバージョン:
1.2
関連項目:
RectangularShape.getFrame()

getBounds2D

public Rectangle2D getBounds2D()
高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。返された Rectangle2DShape を囲む最小のバウンディングボックスであるとは限りません。 示された Rectangle2D 内に Shape が完全に収まるというだけです。戻り値を、倍精度値を使用して寸法を格納する Rectangle2D のインスタンスにすることもできるため、このメソッドによって返されるバウンディングボックスは、通常、getBounds メソッドによって返されるバウンディングボックスよりもぴったりしたものになり、オーバーフローのために失敗することはありません。

定義:
インタフェース Shape 内の getBounds2D
戻り値:
Shape の高精度バウンディングボックスを表す Rectangle2D のインスタンス
導入されたバージョン:
1.2
関連項目:
Shape.getBounds()

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。