linkView.getClosestPointLength(point)

Return the length of the connection up to the point that lies closest to point.