To only rotate one object you can:
1. apply rotation to the Graphics2D object
2. draw your "rotated" shape
3. rotate the graphics2D object in the opposite direction
(you may want to consider is there is significant cumulative
error if you do this repeatedly.)
4. draw the other shape.
Or you can draw the unrotated shape first, before applying the rotation.
Or you could use the AffineTransform method createTransformedShape to
create the rotated shape directly, without having to apply transformations to
Graphics2D.