パッケージ org.piax.common.subspace
クラス GeoCircle
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Ellipse2D
org.piax.common.subspace.GeoEllipse
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.
- 関連項目:
- 直列化された形式
-
ネストされたクラスの概要
-
コンストラクタの概要
-
メソッドの概要
修飾子とタイプ メソッド 説明 LocationgetCenter()Returns the location of the center of thisGeoCircle.doublegetCenterX()Returns the X coordinate of the center of thisGeoCircle.doublegetCenterY()Returns the Y coordinate of the center of thisGeoCircle.doublegetRadius()Returns the radius of thisGeoCircle.static voidmain(String[] args)voidsetCircle(double x, double y, double radius)Sets the location and size of thisGeoCircle.voidsetCircle(Location center, double radius)Sets the location and size of thisGeoCircle.StringtoString()Returns theStringrepresentation of thisGeoCircle.クラスから継承されたメソッド org.piax.common.subspace.GeoEllipse
contains, contains, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, setFrameクラスから継承されたメソッド java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
-
コンストラクタの詳細
-
GeoCircle
Constructs and initializes anGeoCirclefrom the specified coordinates.- パラメータ:
x- the X coordinate of the center of the newlyGeoCircley- the Y coordinate of the center of the newlyGeoCircleradius- the radius of the newlyGeoCircle- 例外:
IllegalArgumentException- if the specified arguments are geographically illegal.
-
GeoCircle
Constructs and initializes anGeoCirclefrom the specified coordinates.- パラメータ:
center- the location of the center of the newlyGeoCircleradius- the radius of the newlyGeoCircle- 例外:
IllegalArgumentException- if the specified arguments are geographically illegal.
-
-
メソッドの詳細
-
setCircle
Sets the location and size of thisGeoCircle.- パラメータ:
x- the X coordinate of the center of the newlyGeoCircley- the Y coordinate of the center of the newlyGeoCircleradius- the radius of the newlyGeoCircle- 例外:
IllegalArgumentException- if the specified arguments are geographically illegal.
-
setCircle
Sets the location and size of thisGeoCircle.- パラメータ:
center- the location of the center of the newlyGeoCircleradius- the radius of the newlyGeoCircle- 例外:
IllegalArgumentException- if the specified arguments are geographically illegal.
-
getRadius
public double getRadius()Returns the radius of thisGeoCircle.- 戻り値:
- the radius of this
GeoCircle.
-
getCenter
Returns the location of the center of thisGeoCircle.- 戻り値:
- the location of the center of this
GeoCircle.
-
getCenterX
public double getCenterX()Returns the X coordinate of the center of thisGeoCircle.- オーバーライド:
getCenterXクラス内RectangularShape- 戻り値:
- the X coordinate of the center of this
GeoCircle.
-
getCenterY
public double getCenterY()Returns the Y coordinate of the center of thisGeoCircle.- オーバーライド:
getCenterYクラス内RectangularShape- 戻り値:
- the Y coordinate of the center of this
GeoCircle.
-
toString
Returns theStringrepresentation of thisGeoCircle.- オーバーライド:
toStringクラス内GeoEllipse- 戻り値:
- a
Stringrepresenting thisGeoCircle.
-
main
- 例外:
Exception
-