@Override
	protected void paintComponent(Graphics g) {
		
		int viewWidth = getWidth();
		int viewHeight = getHeight();
		Model m = model;
		
		int modelWidth = m.getWidth();
		int modelHeight= m.getHeight();
		int sizeX = viewWidth / modelWidth;
		int sizeY = viewHeight / modelHeight;
		g.setColor(Color.WHITE);
		g.fillRect(0, 0, viewWidth, viewHeight);
		/*
		 * Neu zeichnen.
		 */
		int maxX = m.getWidth();
		int maxY = m.getHeight();
		for (int y = 0; y < maxY; y++) {
			for (int x = 0; x < maxX; x++) {
				ItemList items = m.getItems(x, y);
				for (Item it: items) {
					ViewItem viewItem = MainView.itemViews.get(it.getClass());
					if (viewItem != null) {
						ImageIcon icon = viewItem.getIcon(it);
						Image image = icon.getImage();
						g.drawImage(image, x * sizeX, y * sizeY, sizeX, sizeY, null);
					}
				}
			}
			
		}

	}