repaint();
}
// Start creating the flow
else {
newElement = new Flow();
((Flow) newElement).setStart((Edge) elementBelowMouse);
((Flow) newElement).setFrom(new Point2D.Float((float) elementBelowMouse.getBounds().getCenterX(), (float) elementBelowMouse.getBounds().getCenterY()));
creatingNewElement = true;
}