Make moduleView drawSpline method more generic