public void generateMagnifiedTileBar(ArrayList<Integer> selectedChapters){
		hasBeenMagnified  = true;
		this.removeAll();
		tileBar.removeAll();
		int accumulator = 0;
		for(int i = 0;i < selectedChapters.size();i++){
			chapterTiles.get(selectedChapters.get(i)).magnifyTileBar(magnification);
			chapterTiles.get(selectedChapters.get(i)).setBounds(moveX+(offSetBetweenTiles*i+accumulator)*magnification, moveY, ((selected.getChapter(selectedChapters.get(i)).getEnd()-selected.getChapter(selectedChapters.get(i)).getStart())+1)*magnification, 52);
			ArrayList<Chapter> subChapters = chapterTiles.get(selectedChapters.get(i)).getChapter().getSubChapters();
	    	for(Chapter c : subChapters){
	    		//Add the two ticks(top/bottom)
	    		JPanel topMarker = new JPanel();
	    		topMarker.setBackground(Color.GRAY);
	    		topMarker.setBounds(new Rectangle((moveX+(c.getStart()-chapterTiles.get(selectedChapters.get(i)).getChapter().getStart()+offSetBetweenTiles*i+accumulator)*magnification),moveY-markerLength,1,markerLength));
	    		this.add(topMarker);
	    		JPanel bottomMarker = new JPanel();
	    		bottomMarker.setBackground(Color.GRAY);
	    		bottomMarker.setBounds((moveX+(c.getStart()-chapterTiles.get(selectedChapters.get(i)).getChapter().getStart()+offSetBetweenTiles*i+accumulator)*magnification), 52+moveY, 1, markerLength);
	    		this.add(bottomMarker);
	    	}
			accumulator += selected.getChapter(selectedChapters.get(i)).getEnd()-selected.getChapter(selectedChapters.get(i)).getStart()+1;
			tileBar.add(chapterTiles.get(selectedChapters.get(i)));
			this.add(chapterTiles.get(selectedChapters.get(i)));
		}
		
	}