@Override public Point drawingToView(Point2D.Double p){
  return new Point((int)(p.x * scaleFactor) - translation.x,(int)(p.y * scaleFactor) - translation.y);
}

@ Override public Point drawingToView ( Point2D . Double p ) { return new Point ( ( int ) ( p . x * scaleFactor ) - translation . x , ( int ) ( p . y * scaleFactor ) - translation . y ) ; }
converts drawing coordinates to view coordinates .
