@Override
	public void mouseClicked(MouseEvent e) {
		if (!isHandlingMouseEvents) {
			return;
		}

		GraphViewer<V, E> viewer = getGraphViewer(e);
		VisualGraphViewUpdater<V, E> updater = viewer.getViewUpdater();

		Double currentScale = GraphViewerUtils.getGraphScale(viewer);
		if (currentScale.intValue() == 1) {
			updater.fitGraphToViewerNow(viewer);
		}
		else {
			updater.setGraphScale(1.0);
		}
		updater.moveVertexToCenterWithoutAnimation(selectedVertex);

		e.consume();
		resetState();
	}
A handler to zoom nodes when double-clicked.  If the vertex is zoomed out, then we will zoom
in and center.  If the vertex is zoomed to full size, then we will zoom out and center.

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