public static class Ellipse2D.Float extends Ellipse2D implements Serializable
Float
class defines an ellipse specified
in float
precision.Ellipse2D.Double, Ellipse2D.Float
Modifier and Type | Field | Description |
---|---|---|
float |
height |
The overall height of this
Ellipse2D . |
float |
width |
The overall width of this
Ellipse2D . |
float |
x |
The X coordinate of the upper-left corner of the
framing rectangle of this
Ellipse2D . |
float |
y |
The Y coordinate of the upper-left corner of the
framing rectangle of this
Ellipse2D . |
Constructor | Description |
---|---|
Float() |
Constructs a new
Ellipse2D , initialized to
location (0, 0) and size (0, 0). |
Float(float x,
float y,
float w,
float h) |
Constructs and initializes an
Ellipse2D from the
specified coordinates. |
Modifier and Type | Method | Description |
---|---|---|
Rectangle2D |
getBounds2D() |
Returns a high precision and more accurate bounding box of
the
Shape than the getBounds method. |
double |
getHeight() |
Returns the height of the framing rectangle
in
double precision. |
double |
getWidth() |
Returns the width of the framing rectangle in
double precision. |
double |
getX() |
Returns the X coordinate of the upper-left corner of
the framing rectangle in
double precision. |
double |
getY() |
Returns the Y coordinate of the upper-left corner of
the framing rectangle in
double precision. |
boolean |
isEmpty() |
Determines whether the
RectangularShape is empty. |
void |
setFrame(double x,
double y,
double w,
double h) |
Sets the location and size of the framing rectangle of this
Shape to the specified rectangular values. |
void |
setFrame(float x,
float y,
float w,
float h) |
Sets the location and size of the framing rectangle of this
Shape to the specified rectangular values. |
contains, contains, equals, getPathIterator, hashCode, intersects
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal