java.lang.Object | |||
↳ | java.awt.geom.RectangularShape | ||
↳ | java.awt.geom.Arc2D | ||
↳ | java.awt.geom.Arc2D.Double |
This class defines an arc specified in double
precision.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
extent | The angular extent of the arc in degrees. | ||||||||||
height | The overall height of the full ellipse of which this arc is a partial section (not considering the angular extents). | ||||||||||
start | The starting angle of the arc in degrees. | ||||||||||
width | The overall width of the full ellipse of which this arc is a partial section (not considering the angular extents). | ||||||||||
x | The X coordinate of the upper-left corner of the framing rectangle of the arc. | ||||||||||
y | The Y coordinate of the upper-left corner of the framing rectangle of the arc. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0).
| |||||||||||
Constructs a new arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0), and
the specified closure type.
| |||||||||||
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
| |||||||||||
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the angular extent of the arc.
| |||||||||||
Returns the starting angle of the arc.
| |||||||||||
Returns the height of the framing rectangle
in
double precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape . | |||||||||||
Returns the width of the framing rectangle in
double precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape . | |||||||||||
Returns the X coordinate of the upper-left corner of
the framing rectangle in
double precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape . | |||||||||||
Returns the Y coordinate of the upper-left corner of
the framing rectangle in
double precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape . | |||||||||||
Determines whether the
RectangularShape is empty. | |||||||||||
Sets the angular extent of this arc to the specified double
value.
| |||||||||||
Sets the starting angle of this arc to the specified double
value.
| |||||||||||
Sets the location, size, angular extents, and closure type of
this arc to the specified double values.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
Rectangle2D of the appropriate precision
to hold the parameters calculated to be the framing rectangle
of this arc. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The angular extent of the arc in degrees.
The overall height of the full ellipse of which this arc is a partial section (not considering the angular extents).
The starting angle of the arc in degrees.
The overall width of the full ellipse of which this arc is a partial section (not considering the angular extents).
The X coordinate of the upper-left corner of the framing rectangle of the arc.
The Y coordinate of the upper-left corner of the framing rectangle of the arc.
Constructs a new OPEN arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0).
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
x | The X coordinate of the upper-left corner of the arc's framing rectangle. |
---|---|
y | The Y coordinate of the upper-left corner of the arc's framing rectangle. |
w | The overall width of the full ellipse of which this arc is a partial section. |
h | The overall height of the full ellipse of which this arc is a partial section. |
start | The starting angle of the arc in degrees. |
extent | The angular extent of the arc in degrees. |
type | The closure type for the arc:
OPEN , CHORD , or PIE . |
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
Returns the angular extent of the arc.
Returns the starting angle of the arc.
Returns the height of the framing rectangle
in double
precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape
.
Returns the width of the framing rectangle in
double
precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape
.
Returns the X coordinate of the upper-left corner of
the framing rectangle in double
precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape
.
Returns the Y coordinate of the upper-left corner of
the framing rectangle in double
precision.
Note that the arc
partially inscribes
the framing rectangle of this RectangularShape
.
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 angular extent of this arc to the specified double value.
angExt | The angular extent of the arc in degrees. |
---|
Sets the starting angle of this arc to the specified double value.
angSt | The starting angle of the arc in degrees. |
---|
Sets the location, size, angular extents, and closure type of this arc to the specified double values.
x | The X coordinate of the upper-left corner of the arc. |
---|---|
y | The Y coordinate of the upper-left corner of the arc. |
w | The overall width of the full ellipse of which this arc is a partial section. |
h | The overall height of the full ellipse of which this arc is a partial section. |
angSt | The starting angle of the arc in degrees. |
angExt | The angular extent of the arc in degrees. |
closure | The closure type for the arc:
OPEN , CHORD , or PIE . |
Constructs a Rectangle2D
of the appropriate precision
to hold the parameters calculated to be the framing rectangle
of this arc.
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. |
Rectangle2D
that is the framing rectangle
of this arc.