void paintLayeredComponents(Graphics g, int layer) {
		if (layerBasket.isEmpty())
			return;
		synchronized (layerBasket) {
			for (Layered c : layerBasket) {
				if (c != null && c.getLayer() == layer)
					c.paint(g);
			}
		}
	}