12.6.1. Drawing the Ribbon's Image12.6.1.1. Case 1: Draw the image at JPanel (0,0)12.6.1.2. Case 2: Image moving right, where xImHead is less than pWidth12.6.1.3. Case 3: Image moving right, where xImHead is greater than or equal to pWidth12.6.1.4. Case 4: Image moving left, where xImHead is greater than or equal to (pWidth-width)12.6.1.5. Case 5. Image moving left, where xImHead is less than (pWidth-width)