*/
		public void paintComponent(Graphics gr) {
			Graphics2D g = (Graphics2D) gr;
			RenderingHints rh = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
			rh.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
			g.setRenderingHints(rh);
			g.scale(m_fScale, m_fScale);
			Rectangle r = g.getClipBounds();
			g.clearRect(r.x, r.y, r.width, r.height);

			if (m_bViewCliques) {
				m_nClique = 1;
				viewCliques(g, m_marginCalculator.m_root);
			}			
			for (int iNode = 0; iNode < m_BayesNet.getNrOfNodes(); iNode++) {
				drawNode(g, iNode, NORMAL);
			}
			if (!a_export.isExporting() && !a_print.isPrinting()) {
				m_Selection.draw(g);
			}
			if (m_nSelectedRect != null) {
				g.drawRect((int)(m_nSelectedRect.x/ m_fScale), 
						(int)(m_nSelectedRect.y/ m_fScale), 
						(int)(m_nSelectedRect.width/ m_fScale), 
						(int)(m_nSelectedRect.height/ m_fScale));
			}
		}