@Override
	public Component getTableCellRendererComponent(GTableCellRenderingData data) {

		JLabel renderer = (JLabel) super.getTableCellRendererComponent(data);

		Object value = data.getValue();
		JTable table = data.getTable();
		boolean isSelected = data.isSelected();

		if (value == null) {
			return renderer;
		}

		// this class is only meant to handle PreviewTableCellData objects
		if (!(value instanceof PreviewTableCellData)) {
			Msg.error(this,
				"Renderer is not being used on " + PreviewTableCellData.class.getSimpleName());
			return renderer;
		}

		PreviewTableCellData previewData = (PreviewTableCellData) value;
		String preview = previewData.getDisplayString();
		boolean isOffcut = previewData.isOffcut();
		String tooltipText = previewData.getHTMLDisplayString();

		Color foreground = getForeground(table, isSelected, isOffcut);

		renderer.setText(preview);
		renderer.setFont(getFixedWidthFont());
		renderer.setForeground(foreground);
		renderer.setToolTipText(tooltipText);

		return renderer;
	}
A custom renderer used to display what is at the {@link ProgramLocation} similarly to
how it is displayed in the Listing window..  This class is meant to be
used directly with {@link PreviewTableCellData} column data.
Ghidra/Features/Base/src/main/java/ghidra/util/table/PreviewDataTableCellRenderer.java