Visualization of the nature of protein folding by a study of a distance constraint approach in two-dimensional models