What is the relationship between clipping and repainting | Eklavya Online

What is the relationship between clipping and repainting

When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.