In this paper, we consider the superconducting wiggler magnet under construction for the High Gain Harmonic Generation experiment (HGHG) at the Accelerator Test Facility (ATF) at BNL. This wiggler consists of an energy modulation section, a dispersion magnet and a radiator section. We present an analysis of the dispersion magnet and of the end effects in the other wiggler sections. The purpose of the dispersion magnet is to convert energy modulation of the electron beam into spatial bunching. For the dispersion magnet, we discuss the physical requirements, analyze the magnetic design, determine the focussing properties, and consider the effect of departures from ideal behavior on the FEL gain. In the modulator and radiator wigglers we analyze the effects due to the ends of the wiggler and discuss their correction. In addition, the localized field produced by a trim coil for horizontal beam steering is investigated.