private void installTooltipProvider() {

		VertexTooltipProvider<SampleVertex, SampleEdge> tooltipProvider =
			new VertexTooltipProvider<>() {

				@Override
				public JComponent getTooltip(SampleVertex v) {
					JToolTip tip = new JToolTip();
					tip.setTipText(getTooltipText(v, v.getName()));
					return tip;
				}

				@Override
				public JComponent getTooltip(SampleVertex v, SampleEdge e) {
					boolean isStart = e.getStart() == v;
					String prefix;
					if (isStart) {
						prefix = "From: " + v.getName();
					}
					else {
						prefix = "To: " + v.getName();
					}

					String text = getTooltipText(v, prefix);
					JToolTip tip = new JToolTip();
					tip.setTipText(text);
					return tip;
				}

				@Override
				public String getTooltipText(SampleVertex v, MouseEvent e) {
					return getTooltipText(v, v.getName());
				}

				private String getTooltipText(SampleVertex v, String title) {
					return "<html>" + title;// + "<br><hr><br>" + v.getText();
				}
			};
		view.setTooltipProvider(tooltipProvider);
	}
A {@link ComponentProvider} that is the UI component of the {@link SampleGraphPlugin}.  This
shows a graph of the plugins in the system.
Ghidra/Extensions/sample/src/main/java/ghidra/examples/graph/SampleGraphProvider.java