private void generatePercentComparisonLines(
			TreeMap<Float, Point2D.Float> marketToStockPairing) {
		Point2D.Float dailyComparisonInitial = marketToStockPairing
				.firstEntry().getValue();
		boolean first = true;
		for (Entry<Float, Point2D.Float> ent : marketToStockPairing.entrySet()) {
			if (first) {
				first = false;
				continue;
			}
			Point2D.Float dailyComparisonFinal = ent.getValue();

			int individualDelta = (int) (calculateDifferenceIndividual(
					dailyComparisonInitial, dailyComparisonFinal) * 1000);

			int marketDelta = (int) (calculateDifferenceMarket(
					dailyComparisonInitial, dailyComparisonFinal) * 1000);

			int individualToMarketDelta = (int) ((individualDelta - marketDelta));

			// System.out.println(
			// "percent change comparison:   "+individualToMarketDelta);

			Point2D.Float startPoint = timePathPoints.get(ent.getKey());
			if(startPoint==null)
				continue;
			float scalingMultiple = 2.5f;
			float individualX = startPoint.x;
			float individualY = startPoint.y;

			float changeX = individualX;
			float changeY = individualY - marketDelta * scalingMultiple;

			Line2D.Float comparisonLineMarket = new Line2D.Float(individualX,
					individualY, changeX, changeY);

			float changeYindividual = individualY - individualDelta
					* scalingMultiple;

			Line2D.Float comparisonLineIndividual = new Line2D.Float(
					individualX, individualY, changeX, changeYindividual);

			float changeYMarketToIndividual = individualY
					- individualToMarketDelta * scalingMultiple;

			Line2D.Float comparisonLineIndividualToMarket = new Line2D.Float(
					individualX, individualY, changeX,
					changeYMarketToIndividual);
			// if (individualToMarketDelta >
			// PERCENT_CHANGE_COMPARISON_RANGE_ABS)
			// individualToMarketDelta = PERCENT_CHANGE_COMPARISON_RANGE_ABS;
			// if (individualToMarketDelta <
			// -PERCENT_CHANGE_COMPARISON_RANGE_ABS)
			// individualToMarketDelta = -PERCENT_CHANGE_COMPARISON_RANGE_ABS;
			// Color relativeColor = COLOR_MAP.get(individualToMarketDelta);
			if (marketDelta < 0)
				PERCENT_CHANGE_COMPARISON_LINES.put(comparisonLineMarket,
						FAINT_RED_BLUE);
			else
				PERCENT_CHANGE_COMPARISON_LINES.put(comparisonLineMarket,
						FAINT_GREEN_BLUE);
			if (individualDelta < 0)
				PERCENT_CHANGE_COMPARISON_LINES.put(comparisonLineIndividual,
						FAINT_RED);
			else
				PERCENT_CHANGE_COMPARISON_LINES.put(comparisonLineIndividual,
						FAINT_GREEN);

			if (individualToMarketDelta > 0)
				PERCENT_CHANGE_COMPARISON_LINES.put(
						comparisonLineIndividualToMarket, Color.green);
			else
				PERCENT_CHANGE_COMPARISON_LINES.put(
						comparisonLineIndividualToMarket, Color.red);
			dailyComparisonInitial = dailyComparisonFinal;

		}
	}