@Override
		public void paint(Graphics g) {
			AffineTransform tx = new AffineTransform();

			Point oldTranslation = getTranslation();

			tx.translate(translateX, translateY);
			Graphics2D g2 = (Graphics2D) g;
			g2.setTransform(tx);
			super.paint(g);

			if (resetTranslation) {
				translateX = translateY = 0;
				resetTranslation = false;

				firePropertyChange(TRANSLATION_RESET_PROPERTY, oldTranslation, getTranslation());
			}
		}
Get the X-Y distance the image has moved
@return the X-Y distances the image has moved
Ghidra/Framework/Docking/src/main/java/docking/widgets/imagepanel/ImagePanel.java