public synchronized void paint(final Color color, final int x, final int y, final int width, final int height) {
		commands.add(new PaintCommand() {
			public void paint(Graphics g) {
				g.setColor(color);
				g.fillRect(x, y, width, height);
			}
		});
	}