java.lang.Object | |||
↳ | java.awt.geom.RectangularShape | ||
↳ | java.awt.geom.Ellipse2D | ||
↳ | java.awt.geom.Ellipse2D.Double |
The Double
class defines an ellipse specified
in double
precision.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
height | The overall height of the Ellipse2D . |
||||||||||
width | The overall width of this Ellipse2D . |
||||||||||
x | The X coordinate of the upper-left corner of the
framing rectangle of this Ellipse2D . |
||||||||||
y | The Y coordinate of the upper-left corner of the
framing rectangle of this Ellipse2D . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
Ellipse2D , initialized to
location (0, 0) and size (0, 0). | |||||||||||
Constructs and initializes an
Ellipse2D from the
specified coordinates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the height of the framing rectangle
in
double precision. | |||||||||||
Returns the width of the framing rectangle in
double precision. | |||||||||||
Returns the X coordinate of the upper-left corner of
the framing rectangle in
double precision. | |||||||||||
Returns the Y coordinate of the upper-left corner of
the framing rectangle in
double precision. | |||||||||||
Determines whether the
RectangularShape is empty. | |||||||||||
Sets the location and size of the framing rectangle of this
Shape to the specified rectangular values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.geom.Ellipse2D
| |||||||||||
From class
java.awt.geom.RectangularShape
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.awt.Shape
|
The overall height of the Ellipse2D
.
The overall width of this Ellipse2D
.
The X coordinate of the upper-left corner of the
framing rectangle of this Ellipse2D
.
The Y coordinate of the upper-left corner of the
framing rectangle of this Ellipse2D
.
Constructs a new Ellipse2D
, initialized to
location (0, 0) and size (0, 0).
Constructs and initializes an Ellipse2D
from the
specified coordinates.
x | the X coordinate of the upper-left corner of the framing rectangle |
---|---|
y | the Y coordinate of the upper-left corner of the framing rectangle |
w | the width of the framing rectangle |
h | the height of the framing rectangle |
Returns the height of the framing rectangle
in double
precision.
Returns the width of the framing rectangle in
double
precision.
Returns the X coordinate of the upper-left corner of
the framing rectangle in double
precision.
Returns the Y coordinate of the upper-left corner of
the framing rectangle in double
precision.
Determines whether the RectangularShape
is empty.
When the RectangularShape
is empty, it encloses no
area.
true
if the RectangularShape
is empty;
false
otherwise.Sets the location and size of the framing rectangle of this
Shape
to the specified rectangular values.
x | the X coordinate of the upper-left corner of the specified rectangular shape |
---|---|
y | the Y coordinate of the upper-left corner of the specified rectangular shape |
w | the width of the specified rectangular shape |
h | the height of the specified rectangular shape |