class BasicMonthViewUI extends MonthViewUI {

    protected Rectangle getMonthBoundsAtLocation(int x, int y) {
        if (!calendarGrid.contains(x, y))
            return null;
        int calendarRow = (y - calendarGrid.y) / fullCalendarHeight;
        int calendarColumn = (x - calendarGrid.x) / fullCalendarWidth;
        return new Rectangle(calendarGrid.x + calendarColumn * fullCalendarWidth,
                        calendarGrid.y + calendarRow * fullCalendarHeight, calendarWidth, calendarHeight);
    }

}