private void drawRotatedString(Graphics2D g2, Edge edge)
	{
		g2.setStroke(new BasicStroke());
		g2.setColor(Color.black);

		if (xlength <= quadTreeToDraw.getQuadTreeLength() / 300)
		{
			g2.setFont(new Font("Verdana", Font.BOLD, 14));
		} else if (xlength <= quadTreeToDraw.getQuadTreeLength() / 225)
		{
			g2.setFont(new Font("Verdana", Font.BOLD, 13));
		} else if (xlength <= quadTreeToDraw.getQuadTreeLength() / 165)
		{
			g2.setFont(new Font("Verdana", Font.BOLD, 12));
		} else
		{
			g2.setFont(new Font("Verdana", Font.BOLD, 11));
		}
		String roadName = edge.getRoadName();

		AffineTransform orig = g2.getTransform();
		double rotationFixer = getAngle(edge);
		if (rotationFixer > Math.PI / 2)
		{
			rotationFixer = rotationFixer + Math.PI;
		}
		if (rotationFixer < -Math.PI / 2)
		{
			rotationFixer = rotationFixer + Math.PI;
		}
		g2.rotate(rotationFixer, (int) (((edge.getMidX() - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((edge.getMidY() - yVArea) / ylength) * componentHeight));
		if (!roadName.contains("kørsel"))
		{
			g2.drawString(roadName, (int) (((edge.getMidX() - xVArea) / xlength) * componentWidth), (int) (componentHeight - ((edge.getMidY() - yVArea) / ylength) * componentHeight));
		}
		g2.setTransform(orig);
	}