public class Rectangle extends Object
| Constructor | Description |
|---|---|
Rectangle() |
| Modifier and Type | Method | Description |
|---|---|---|
Rectangle |
coordinates(Coordinates coordinates) |
|
boolean |
equals(Object o) |
|
Coordinates |
getCoordinates() |
Gets or sets the coordinates.
|
Point |
getPosition() |
Gets the coordinates of the upper-left corner of the rectangular area.
|
Size |
getSize() |
Gets or sets the size of the rectangle.
|
int |
hashCode() |
|
Rectangle |
position(Point position) |
|
void |
setCoordinates(Coordinates coordinates) |
|
void |
setPosition(Point position) |
|
void |
setSize(Size size) |
|
Rectangle |
size(Size size) |
|
String |
toString() |
public Point getPosition()
public void setPosition(Point position)
public Size getSize()
public void setSize(Size size)
public Rectangle coordinates(Coordinates coordinates)
public Coordinates getCoordinates()
public void setCoordinates(Coordinates coordinates)
Copyright © 2025. All rights reserved.