The NE coast can experience winds from prety much any direction. But, if you're really *unlucky* you catch winds fro the northeast. That usually means nasty weather, and you'll be riding straight into those winds. Also, you'll find that the coast of Maine isn't flat, so prepare for some hills.
That said, in June the most likely wind direction will come from three directions: SW, W, and NW. Don't worry about the wind and just enjoy the ride. If you pick the right route it can be a nice trip.