private void drawEdges(Graphics2D g2, List<Edge> edges, boolean drawBorder, int zoomLevelToDrawName, BasicStroke roadStroke, BasicStroke borderStroke, Color roadColor, Color borderColor)
	{
		for (Edge edge : edges)
		{
			double x1 = edge.getFromNode().getxCoord();
			double y1 = edge.getFromNode().getyCoord();
			double x2 = edge.getToNode().getxCoord();
			double y2 = edge.getToNode().getyCoord();

			if (drawBorder)
			{
				g2.setColor(borderColor);
				g2.setStroke(borderStroke);
				g2.drawLine((int) (((x1 - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((y1 - yVArea) / ylength) * componentHeight), (int) (((x2 - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((y2 - yVArea) / ylength) * componentHeight));
			}

			g2.setColor(roadColor);
			if (searchedRoad.equals(edge.getRoadName()))
			{
				g2.setColor(Color.blue);
			}
			g2.setStroke(roadStroke);
			g2.drawLine((int) (((x1 - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((y1 - yVArea) / ylength) * componentHeight), (int) (((x2 - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((y2 - yVArea) / ylength) * componentHeight));

			if (zoomLevelToDrawName > 0 && xlength <= (quadTreeToDraw.getQuadTreeLength() / zoomLevelToDrawName))
			{
				if (!roadNamesDisplayed.contains(edge.getRoadName()))
				{
					drawRotatedString(g2, edge);
					roadNamesDisplayed.add(edge.getRoadName());
				}

			}
		}
	}