@Override
	public void mouseReleased(MouseEvent e) {

		down = null;
		dragEnd = null;
		if (dragShape != null) {
			dragShape.shapeFinished();
			dragShape = null;
		}

		if (dragLineShape != null) {
			dragLineShape.shapeFinished();
			dragLineShape = null;
		}

		viewer.repaint();
	}
A simple plugin that allows clients to be notified of mouse events before any of the other
mouse plugins.

@param <V> the vertex type
@param <E> the edge type
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/event/mouse/VisualGraphMouseTrackingGraphMousePlugin.java