/** Paint this model to the graphics context `g' */ void paint(Graphics g) { if (realXYZ == null || np <= 0) return; getZOrder(); for (int iz = 0; iz < np; iz++) drawAtom(g, iz); }