This class defines an area on a grid. An Area is defined by the coordinates of its upper left corner (x1,y1) and lower right corner (x2,y2)
Parameters
x1
The X-coordinate of the upper left corner of the area
c
is supposed to occupy
y1
The Y-coordinate of the upper left corner of the area
c
is supposed to occupy
x2
The X-coordinate of the lower right corner of the area
c
is supposed to occupy
y2
The Y-coordinate of the lower right corner of the area
c
is supposed to occupy
Exceptions
OverlapsException
if the new component overlaps with any of the components already in the grid
Construct a new area on a grid.