java.awt.geom
public static class Ellipse2D.Float extends Ellipse2D
float
primitives.
Field Summary | |
---|---|
float | height
The height of the ellipse. |
float | width
The width of the ellipse. |
float | x
The upper-left x coordinate of the bounding-box |
float | y
The upper-left y coordinate of the bounding-box |
Constructor Summary | |
---|---|
Float()
Creates a new Ellipse2D with an upper-left coordinate of (0,0)
and a zero size. | |
Float(float x, float y, float w, float h)
Creates a new Ellipse2D within a given rectangle
using floating-point precision. |
Method Summary | |
---|---|
Rectangle2D | getBounds2D()
Returns the bounding-box of the ellipse. |
double | getHeight()
Returns the height of the ellipse. |
double | getWidth()
Returns the width of the ellipse. |
double | getX()
Returns x coordinate of the upper-left corner of
the ellipse's bounding-box. |
double | getY()
Returns y coordinate of the upper-left corner of
the ellipse's bounding-box. |
boolean | isEmpty()
Returns true if the ellipse encloses no area, and
false otherwise.
|
void | setFrame(float x, float y, float w, float h)
Sets the geometry of the ellipse's bounding box.
|
void | setFrame(double x, double y, double w, double h)
Sets the geometry of the ellipse's bounding box.
|
Parameters: x - x coordinate of the upper-left of the bounding rectangle y - y coordinate of the upper-left of the bounding rectangle w - width of the ellipse h - height of the ellipse
Returns: The bounding box.
Returns: The height of the ellipse.
Returns: The width of the ellipse.
Returns: The x coordinate.
Returns: The y coordinate.
true
if the ellipse encloses no area, and
false
otherwise.
Returns: A boolean.
Parameters: x - x coordinate of the upper-left of the bounding rectangle y - y coordinate of the upper-left of the bounding rectangle w - width of the ellipse h - height of the ellipse
Parameters: x - x coordinate of the upper-left of the bounding rectangle y - y coordinate of the upper-left of the bounding rectangle w - width of the ellipse h - height of the ellipse