public static class Rectangle2D.Float extends Rectangle2D implements Serializable
Float
class defines a rectangle specified in float
coordinates.Rectangle2D.Double, Rectangle2D.Float
Modifier and Type | Field | Description |
---|---|---|
float |
height |
The height of this
Rectangle2D . |
float |
width |
The width of this
Rectangle2D . |
float |
x |
The X coordinate of this
Rectangle2D . |
float |
y |
The Y coordinate of this
Rectangle2D . |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor | Description |
---|---|
Float() |
Constructs a new
Rectangle2D , initialized to
location (0.0, 0.0) and size (0.0, 0.0). |
Float(float x,
float y,
float w,
float h) |
Constructs and initializes a
Rectangle2D
from the specified float coordinates. |
Modifier and Type | Method | Description |
---|---|---|
Rectangle2D |
|