@Override 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);
}

@ Override 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 ) ; }
translates a panel ( component ) location to a java2d point .
