private void render(Graphics2D g){
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		this.setBackground(Color.black);
		Rectangle r = this.getBounds();
		int lastText = (int) (r.getHeight() - margin);
		if (scale != 0.0F) {
			float size = 0.0F;
			Tool lastTool = null;
			for (int i = 0; i < this.c.points.size(); i++) {
				if (c.tools[i] != null) {
					Tool t = c.tools[i];
					size = Float.valueOf(t.getSize());
					size *= 1000;
					lastTool = t;
					g.setColor(t.getColor());
					g.setFont(font);
					float s = Float.valueOf(t.getSize()) * 1000;
					int width = (int) r.getWidth();
					String text = "Tool no." + t.getIndex() + " - size : "
					    + String.valueOf(s) + format;
					int y = lastText;
					Rectangle2D rect = g.getFontMetrics().getStringBounds(text, g);
					int x = (int) width - (int) margin - rect.getBounds().width;
					g.drawString(text, x, y);
					lastText -= (rect.getBounds().height + margin);
				} else if (c.points.get(i) != null) {
					Point p = c.points.get(i);
					if (p != null) {
						int x = p.getX();
						int y = p.getY();
						x *= scale;
						y *= scale;
						g.setColor(lastTool.getColor());
						float s = size;
						s *= scale;
						// g.drawArc(x, y, (int) s, (int) s, 0, 360);
						g.fillArc(x, y, (int) s, (int) s, 0, 360);
						g.setColor(Color.white);
						g.drawLine(lastX + (int)(s/2), lastY + (int)(s/2),x + (int)(s/2), y + (int)(s/2));
						lastX = x;
						lastY = y;
					}
				}
			}
		}
	}