@Override
	public void mousePressed(MouseEvent e) {
		if (!checkModifiers(e)) {
			return;
		}

		selectedVertex = getVertex(e);
	}
A mouse plugin to focus a vertex when clicked

@param <V> the vertex type
@param <E> the edge type
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/mouse/JgtVertexFocusingPlugin.java