java.lang.Object | |||
↳ | java.awt.geom.RectangularShape | ||
↳ | java.awt.geom.RoundRectangle2D | ||
↳ | java.awt.geom.RoundRectangle2D.Float |
The Float
class defines a rectangle with rounded
corners all specified in float
coordinates.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
archeight | The height of the arc that rounds off the corners. | ||||||||||
arcwidth | The width of the arc that rounds off the corners. | ||||||||||
height | The height of this RoundRectangle2D . |
||||||||||
width | The width of this RoundRectangle2D . |
||||||||||
x | The X coordinate of this RoundRectangle2D . |
||||||||||
y | The Y coordinate of this RoundRectangle2D . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
RoundRectangle2D , initialized to
location (0.0, 0.0), size (0.0, 0.0), and corner arcs
of radius 0.0. | |||||||||||
Constructs and initializes a
RoundRectangle2D
from the specified float coordinates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the height of the arc that rounds off the corners.
| |||||||||||
Gets the width of the arc that rounds off the corners.
| |||||||||||
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, size, and corner radii of this
RoundRectangle2D to the specified
float values. | |||||||||||
Sets this
RoundRectangle2D to be the same as the
specified RoundRectangle2D . | |||||||||||
Sets the location, size, and corner radii of this
RoundRectangle2D to the specified
double values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.geom.RoundRectangle2D
| |||||||||||
From class
java.awt.geom.RectangularShape
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.awt.Shape
|
The height of the arc that rounds off the corners.
The width of the arc that rounds off the corners.
The height of this RoundRectangle2D
.
The width of this RoundRectangle2D
.
The X coordinate of this RoundRectangle2D
.
The Y coordinate of this RoundRectangle2D
.
Constructs a new RoundRectangle2D
, initialized to
location (0.0, 0.0), size (0.0, 0.0), and corner arcs
of radius 0.0.
Constructs and initializes a RoundRectangle2D
from the specified float
coordinates.
x | the X coordinate of the newly
constructed RoundRectangle2D |
---|---|
y | the Y coordinate of the newly
constructed RoundRectangle2D |
w | the width to which to set the newly
constructed RoundRectangle2D |
h | the height to which to set the newly
constructed RoundRectangle2D |
arcw | the width of the arc to use to round off the
corners of the newly constructed
RoundRectangle2D |
arch | the height of the arc to use to round off the
corners of the newly constructed
RoundRectangle2D |
Gets the height of the arc that rounds off the corners.
RoundRectangle2D
.Gets the width of the arc that rounds off the corners.
RoundRectangle2D
.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, size, and corner radii of this
RoundRectangle2D
to the specified
float
values.
x | the X coordinate to which to set the
location of this RoundRectangle2D |
---|---|
y | the Y coordinate to which to set the
location of this RoundRectangle2D |
w | the width to which to set this
RoundRectangle2D |
h | the height to which to set this
RoundRectangle2D |
arcw | the width to which to set the arc of this
RoundRectangle2D |
arch | the height to which to set the arc of this
RoundRectangle2D |
Sets this RoundRectangle2D
to be the same as the
specified RoundRectangle2D
.
rr | the specified RoundRectangle2D |
---|
Sets the location, size, and corner radii of this
RoundRectangle2D
to the specified
double
values.
x | the X coordinate to which to set the
location of this RoundRectangle2D |
---|---|
y | the Y coordinate to which to set the
location of this RoundRectangle2D |
w | the width to which to set this
RoundRectangle2D |
h | the height to which to set this
RoundRectangle2D |
arcw | the width to which to set the arc of this
RoundRectangle2D |
arch | the height to which to set the arc of this
RoundRectangle2D |