private void translate(Point p, Component c) {
		Point cLoc = c.getLocationOnScreen();
		Point myLoc = getLocationOnScreen();
		p.x = p.x + cLoc.x - myLoc.x;
		p.y = p.y + cLoc.y - myLoc.y;
	}
Translates the given point so that it is relative to the given component
Ghidra/Framework/Docking/src/main/java/docking/DockableComponent.java