Lines Matching refs:top
278 if (isColumnEmpty(current.left - 1, current.top, current.bottom, occupied)) {
286 if (isColumnEmpty(current.right + 1, current.top, current.bottom, occupied)) {
293 if (current.top > 0) {
294 if (isRowEmpty(current.top - 1, current.left, current.right, occupied)) {
295 current.top--;
297 current.top++;
313 cell.cellY = current.top;
315 cell.spanY = current.bottom - current.top + 1;
327 private static boolean isColumnEmpty(int x, int top, int bottom, boolean[][] occupied) {
328 for (int y = top; y <= bottom; y++) {