I have a JPanel
with an vector image that the user can zoom and pan on. Overlaying this image is a (transparent) JComponent
, which I allow the user to annotate the underlying image. This works great at full scale, but If I zoom in, using AffineTransform
, the overlaying coordinates are affected also. So, If a user draws a box on the image the box is scaled also.
Any suggestions on how to decouple this behaviour? So that the JComponent
is not affected by the JPanel
's AffineTransform
?