@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		// Draw the soft connections (first, so they're under the nodes).
		ViralSpread.ShowConnections connectionType = ViralSpread.getConnectionType();
		if (connectionType == ViralSpread.ShowConnections.SOFT ||
				connectionType == ViralSpread.ShowConnections.HARD_SOFT)
			Statistics.drawSoftConnections(g);
		// Draw the nodes.
		people.draw(g);
		// Draw the hard connections (last, so they're over the nodes).
		if (connectionType == ViralSpread.ShowConnections.HARD ||
				connectionType == ViralSpread.ShowConnections.HARD_SOFT)
			Statistics.drawHardConnections(g);
		// Draw the graphs.
		parent.repaintGraphs();
	}