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

クラス GeoCircle

すべての実装されたインタフェース:
Shape, Serializable, Cloneable, Destination, GeoRegion, KeyContainable<Location>, Region<Location>

public class GeoCircle
extends GeoEllipse
An area defined by geographical circle.
関連項目:
直列化された形式
  • コンストラクタの詳細

    • GeoCircle

      public GeoCircle​(double x, double y, double radius) throws IllegalArgumentException
      Constructs and initializes an GeoCircle from the specified coordinates.
      パラメータ:
      x - the X coordinate of the center of the newly GeoCircle
      y - the Y coordinate of the center of the newly GeoCircle
      radius - the radius of the newly GeoCircle
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
    • GeoCircle

      public GeoCircle​(Point2D center, double radius) throws IllegalArgumentException
      Constructs and initializes an GeoCircle from the specified coordinates.
      パラメータ:
      center - the location of the center of the newly GeoCircle
      radius - the radius of the newly GeoCircle
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
  • メソッドの詳細

    • setCircle

      public void setCircle​(double x, double y, double radius) throws IllegalArgumentException
      Sets the location and size of this GeoCircle.
      パラメータ:
      x - the X coordinate of the center of the newly GeoCircle
      y - the Y coordinate of the center of the newly GeoCircle
      radius - the radius of the newly GeoCircle
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
    • setCircle

      public void setCircle​(Location center, double radius) throws IllegalArgumentException
      Sets the location and size of this GeoCircle.
      パラメータ:
      center - the location of the center of the newly GeoCircle
      radius - the radius of the newly GeoCircle
      例外:
      IllegalArgumentException - if the specified arguments are geographically illegal.
    • getRadius

      public double getRadius()
      Returns the radius of this GeoCircle.
      戻り値:
      the radius of this GeoCircle.
    • getCenter

      public Location getCenter()
      Returns the location of the center of this GeoCircle.
      戻り値:
      the location of the center of this GeoCircle.
    • getCenterX

      public double getCenterX()
      Returns the X coordinate of the center of this GeoCircle.
      オーバーライド:
      getCenterX クラス内 RectangularShape
      戻り値:
      the X coordinate of the center of this GeoCircle.
    • getCenterY

      public double getCenterY()
      Returns the Y coordinate of the center of this GeoCircle.
      オーバーライド:
      getCenterY クラス内 RectangularShape
      戻り値:
      the Y coordinate of the center of this GeoCircle.
    • toString

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

      public static void main​(String[] args) throws Exception
      例外:
      Exception