case Accident:
// Get the map element below the mouse
RoadNetworkElement elementBelowMouse2 = roadNetwork.PointHitTest(transformedPoint);
if ((elementBelowMouse2 != null) && (elementBelowMouse2 instanceof Edge) && (e.getButton() == MouseEvent.BUTTON1)) {
currentTrafficLayer.AddTrafficElement(new Accident((Edge) elementBelowMouse2, transformedPoint));
}
repaint();
break;