private Color getForeground(JTable table, boolean isSelected, boolean isOffcut) {
		if (!isOffcut) {
			return getForeground();
		}

		// 
		// The JTable's row selection color is dark when the table has focus and a lighter gray
		// when the table does not have focus.  We want the offcut color to be light when the
		// selection is dark and we want it to be dark when the selection is light.
		//
		boolean isFocused = table.hasFocus();
		if (!isFocused) {
			return DEFAULT_OFFCUT_FOREGROUND_COLOR; // darker
		}

		return isSelected ? DEFAULT_SELECTED_OFFCUT_FOREGROUND_COLOR
				: DEFAULT_OFFCUT_FOREGROUND_COLOR;

	}
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