public class GeoCircle extends GeoEllipse
Ellipse2D.Double, Ellipse2D.Float| コンストラクタと説明 |
|---|
GeoCircle(double x,
double y,
double radius)
Constructs and initializes an
GeoCircle from the
specified coordinates. |
GeoCircle(Point2D center,
double radius)
Constructs and initializes an
GeoCircle from the
specified coordinates. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Location |
getCenter()
Returns the location of the center of this
GeoCircle. |
double |
getCenterX()
Returns the X coordinate of the center of this
GeoCircle. |
double |
getCenterY()
Returns the Y coordinate of the center of this
GeoCircle. |
double |
getRadius()
Returns the radius of this
GeoCircle. |
static void |
main(String[] args) |
void |
setCircle(double x,
double y,
double radius)
Sets the location and size of this
GeoCircle. |
void |
setCircle(Location center,
double radius)
Sets the location and size of this
GeoCircle. |
String |
toString()
Returns the
String representation of this
GeoCircle. |
contains, contains, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, setFramecontains, equals, getPathIterator, hashCode, intersectsclone, contains, contains, getBounds, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic GeoCircle(double x,
double y,
double radius)
throws IllegalArgumentException
GeoCircle from the
specified coordinates.x - the X coordinate of the center
of the newly GeoCircley - the Y coordinate of the center
of the newly GeoCircleradius - the radius of the newly GeoCircleIllegalArgumentException - if the specified arguments are geographically illegal.public GeoCircle(Point2D center, double radius) throws IllegalArgumentException
GeoCircle from the
specified coordinates.center - the location of the center
of the newly GeoCircleradius - the radius of the newly GeoCircleIllegalArgumentException - if the specified arguments are geographically illegal.public void setCircle(double x,
double y,
double radius)
throws IllegalArgumentException
GeoCircle.x - the X coordinate of the center
of the newly GeoCircley - the Y coordinate of the center
of the newly GeoCircleradius - the radius of the newly GeoCircleIllegalArgumentException - if the specified arguments are geographically illegal.public void setCircle(Location center, double radius) throws IllegalArgumentException
GeoCircle.center - the location of the center
of the newly GeoCircleradius - the radius of the newly GeoCircleIllegalArgumentException - if the specified arguments are geographically illegal.public double getRadius()
GeoCircle.GeoCircle.public Location getCenter()
GeoCircle.GeoCircle.public double getCenterX()
GeoCircle.getCenterX クラス内 RectangularShapeGeoCircle.public double getCenterY()
GeoCircle.getCenterY クラス内 RectangularShapeGeoCircle.public String toString()
String representation of this
GeoCircle.toString クラス内 GeoEllipseString representing this GeoCircle.Copyright © 2017. All rights reserved.