question: public Point2D translateScreenToJava2D ( Point screenPoint ) { Insets insets = getInsets ( ) ; double x = ( screenPoint . getX ( ) - insets . left ) / this . scaleX ; double y = ( screenPoint . getY ( ) - insets . top ) / this . scaleY ; return new Point2D . Double ( x , y ) ; }
target:  Translates a panel (component) location to a Java2D point.