private void addPointMousePaintable(MouseEvent e, Color color) {
		Point p = e.getPoint();
		Point gp = GraphViewerUtils.translatePointFromViewSpaceToGraphSpace(p, viewer);

		RenderContext<?, ?> rc = viewer.getRenderContext();
		MultiLayerTransformer multiLayerTransformer = rc.getMultiLayerTransformer();
		MutableTransformer layoutXformer = multiLayerTransformer.getTransformer(Layer.LAYOUT);
		AffineTransform layoutXform = layoutXformer.getTransform();
		double tx = layoutXform.getTranslateX();
		double ty = layoutXform.getTranslateY();

		MouseClickedPaintableShape ps = new MouseClickedPaintableShape(gp, tx, ty, color);
		paintable.addShape(ps, viewer);
		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