My program enables rotating and shifting (by mouse movement) of displayed image. I achieve this by using AffineTransform, first I do translating, then rotating. But if I rotate 90 degrees, then vertical mouse-movements result in horizontally movement of image. How to separate the rotation from translation, so vertical mouse-movement results in corresponding shift of image?
Try coding it first. When/if you get stuck, post your code so we can see what you tried.