I'm attempting to rotate a polygon around a fixed axis using the rotate method in Graphics2d. However, after each rotation, the bounding box coordinates of the polygon don't seem to be updating--only the graphical representation. How might I go about fixing this?