public LineComponent[] getLines() {
		int n = getNumberOfInstances(LineComponent.class);
		LineComponent[] l = new LineComponent[n];
		n = 0;
		synchronized (layerBasket) {
			for (Layered c : layerBasket) {
				if (c instanceof LineComponent)
					l[n++] = (LineComponent) c;
			}
		}
		return l;
	}