public void reVisualize() {

		setSize(900, 700);
		this.addWindowListener(this);
		this.addMouseListener(this);
		this.addMouseMotionListener(this);
		this.addComponentListener(new ComponentListener() {
			public void componentResized(ComponentEvent evt) {

				frameW = evt.getComponent().getWidth();
				frameH = evt.getComponent().getHeight();
				barwidth = (frameW - 2 * SIDE_BUFFER - BAR_BUFFER * nbars)
						/ nbars;
				if (varsSet)
					setUpBars();
				setMarketPathToScale();
				recalculatePercentagesScale();
			}

			@Override
			public void componentHidden(ComponentEvent arg0) {
			}

			@Override
			public void componentMoved(ComponentEvent arg0) {
			}

			@Override
			public void componentShown(ComponentEvent arg0) {
			}
		});

		frameW = this.getWidth();
		frameH = this.getHeight();
		shadedArea1 = new Rectangle2D.Float(0, 0, 0, frameH);
		shadedArea2 = new Rectangle2D.Float(0, 0, 0, frameH);
		barwidth = (frameW - 2 * SIDE_BUFFER - BAR_BUFFER * nbars) / nbars;
		setMarketPathToScale();
		recalculatePercentagesScale();

	}