public ucar . unidata . geoloc . Station pick ( Point2D pickPt ) { if ( world2Normal == null || pickPt == null || stations . isEmpty ( ) ) return null ; world2Normal . transform ( pickPt , ptN ) ; // work in normalized coordinate space StationUI closest = ( StationUI ) stationGrid . findIntersection ( ptN ) ; setSelectedStation ( closest ) ; return getSelectedStation ( ) ; }
Find station that contains this point . If it exists make it the selected station .