if (outline[x + 1] == null) { outline[x + 1] = outline[x] = new Outline(); outline[x].append(x + 1, y); outline[x].append(x, y); } else { outline[x] = outline[x + 1]; // line from top-right to top-left outline[x + 1] = null; outline[x].append(x, y); outline[x + 1] = outline[x]; outline[x] = oAfterLowerRightCorner; outline[x].append(x, y); outline[x + 1].prepend(x + 1, y); } else { outline[x].append(x, y + 1); if (outline[x + 1] == null) { outline[x] = outline[x + 1] = new Outline(); outline[x].append(x, y); outline[x].append(x + 1, y); } else { outline[x] = outline[x + 1]; outline[x] = oAfterLowerRightCorner; outline[x].prepend(x, y); outline[x + 1].append(x + 1, y); } else { outline[x + 1] = outline[x];
if (outline[x + 1] == null) { outline[x + 1] = outline[x] = new Outline(); outline[x].append(x + 1, y); outline[x].append(x, y); } else { outline[x] = outline[x + 1]; // line from top-right to top-left outline[x + 1] = null; outline[x].append(x, y); outline[x + 1] = outline[x]; outline[x] = oAfterLowerRightCorner; outline[x].append(x, y); outline[x + 1].prepend(x + 1, y); } else { outline[x].append(x, y + 1); if (outline[x + 1] == null) { outline[x] = outline[x + 1] = new Outline(); outline[x].append(x, y); outline[x].append(x + 1, y); } else { outline[x] = outline[x + 1]; outline[x] = oAfterLowerRightCorner; outline[x].prepend(x, y); outline[x + 1].append(x + 1, y); } else { outline[x + 1] = outline[x];