Rectangle (RadContainer container, int startRow, int startCol, int endRow, int endCol) { int[] xs = getGridCellCoords(container, false); int[] ys = getGridCellCoords(container, true); int[] widths = getGridCellSizes(container, false); int[] heights = getGridCellSizes(container, true); return new Rectangle(xs[startCol], ys[startRow], xs[endCol] + widths[endCol] - xs[startCol], ys[endRow] + heights[endRow] - ys[startRow]); }