public class GeoEllipse extends Ellipse2D implements GeoRegion
Ellipse2D.Double, Ellipse2D.Float| コンストラクタと説明 |
|---|
GeoEllipse(double x,
double y,
double w,
double h)
Constructs and initializes an
GeoEllipse from the
specified coordinates. |
GeoEllipse(Point2D p,
double w,
double h) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(Location loc) |
Rectangle2D |
getBounds2D() |
double |
getHeight() |
double |
getWidth() |
double |
getX()
Returns the X coordinate of the lower-left corner of
the framing rectangle.
|
double |
getY()
Returns the Y coordinate of the lower-left corner of
the framing rectangle.
|
boolean |
isEmpty() |
void |
setFrame(double x,
double y,
double w,
double h)
Sets the location and size of the framing rectangle of this
GeoEllipse to the specified rectangular values. |
String |
toString()
Returns the
String representation of this
GeoEllipse. |
contains, equals, getPathIterator, hashCode, intersectsclone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic GeoEllipse(double x,
double y,
double w,
double h)
throws IllegalArgumentException
GeoEllipse from the
specified coordinates.x - the X coordinate of the lower-left corner
of the framing rectangley - the Y coordinate of the lower-left corner
of the framing rectanglew - the width of the framing rectangleh - the height of the framing rectangleIllegalArgumentException - if the specified arguments are geographically illegal.public GeoEllipse(Point2D p, double w, double h) throws IllegalArgumentException
public double getX()
getX クラス内 RectangularShapepublic double getY()
getY クラス内 RectangularShapepublic double getWidth()
getWidth クラス内 RectangularShapepublic double getHeight()
getHeight クラス内 RectangularShapepublic boolean isEmpty()
isEmpty クラス内 RectangularShapepublic void setFrame(double x,
double y,
double w,
double h)
throws IllegalArgumentException
GeoEllipse to the specified rectangular values.setFrame クラス内 RectangularShapex - the X coordinate of the lower-left corner of the
specified rectangular shapey - the Y coordinate of the lower-left corner of the
specified rectangular shapew - the width of the specified rectangular shapeh - the height of the specified rectangular shapeIllegalArgumentException - if the specified arguments are geographically illegal.public Rectangle2D getBounds2D()
getBounds2D インタフェース内 Shapepublic boolean contains(double x,
double y)
public boolean contains(Location loc)
contains インタフェース内 KeyContainable<Location>Copyright © 2017. All rights reserved.