private void taskCancelled() {
		// release the latch and tell the layout algorithm to cancel.
		taskDone.countDown();
		viewer.getVisualizationModel().getLayoutAlgorithm().cancel();
	}
Callback if the user cancels the layout
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/SetLayoutTask.java