code: public void setDimensions(int maxCols, int minCols, int maxRows, int minRows) {
      this.maxCols = maxCols;
      this.minCols = minCols;
      this.maxRows = maxRows;
      this.minRows = minRows;
    }
docs: Sets max/min row/col values
  
  @param maxCols maximum allowed columns
  @param minCols minimum allowed columns
  @param maxRows maximum allowed rows
  @param minRows minimum allowed rows