Phase diagrams and critical behavior of a two-dimensional anisotropic Heisenberg antiferromagnet