パッケージ org.piax.common.subspace

クラス GeoEllipse

すべての実装されたインタフェース:
Shape, Serializable, Cloneable, Destination, GeoRegion, KeyContainable<Location>, Region<Location>
直系の既知のサブクラス:
GeoCircle

public class GeoEllipse
extends Ellipse2D
implements GeoRegion
関連項目:
直列化された形式
  • コンストラクタの詳細

    • GeoEllipse

      public GeoEllipse​(double x, double y, double w, double h) throws IllegalArgumentException
      Constructs and initializes an GeoEllipse from the specified coordinates.
      パラメータ:
      x - the X coordinate of the lower-left corner of the framing rectangle
      y - the Y coordinate of the lower-left corner of the framing rectangle
      w - the width of the framing rectangle
      h - the height of the framing rectangle
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
    • GeoEllipse

      public GeoEllipse​(Point2D p, double w, double h) throws IllegalArgumentException
      例外:
      IllegalArgumentException
  • メソッドの詳細

    • getX

      public double getX()
      Returns the X coordinate of the lower-left corner of the framing rectangle.
      定義:
      getX クラス内 RectangularShape
      戻り値:
      the X coordinate of the lower-left corner of the framing rectangle.
    • getY

      public double getY()
      Returns the Y coordinate of the lower-left corner of the framing rectangle.
      定義:
      getY クラス内 RectangularShape
      戻り値:
      the Y coordinate of the lower-left corner of the framing rectangle.
    • getWidth

      public double getWidth()
      定義:
      getWidth クラス内 RectangularShape
    • getHeight

      public double getHeight()
      定義:
      getHeight クラス内 RectangularShape
    • isEmpty

      public boolean isEmpty()
      定義:
      isEmpty クラス内 RectangularShape
    • setFrame

      public void setFrame​(double x, double y, double w, double h) throws IllegalArgumentException
      Sets the location and size of the framing rectangle of this GeoEllipse to the specified rectangular values.
      定義:
      setFrame クラス内 RectangularShape
      パラメータ:
      x - the X coordinate of the lower-left corner of the specified rectangular shape
      y - the Y coordinate of the lower-left corner of the specified rectangular shape
      w - the width of the specified rectangular shape
      h - the height of the specified rectangular shape
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
    • getBounds2D

      public Rectangle2D getBounds2D()
      定義:
      getBounds2D インタフェース内 Shape
    • contains

      public boolean contains​(double x, double y)
      定義:
      contains インタフェース内 Shape
      オーバーライド:
      contains クラス内 Ellipse2D
    • contains

      public boolean contains​(Location loc)
      定義:
      contains インタフェース内 KeyContainable<Location>
    • toString

      public String toString()
      Returns the String representation of this GeoEllipse.
      オーバーライド:
      toString クラス内 Object
      戻り値:
      a String representing this GeoEllipse.