@Override
  public Component getTableCellRendererComponent(
      final JTable table,
      final Object value,
      final boolean selected,
      final boolean focused,
      final int row,
      final int column) {
    buildAndSetToolTip(table, row);

    setFont(!isBoldFont(table, row) ? NORMAL_FONT : BOLD_FONT);

    if (value instanceof Double) {
      final double d = (Double) value;

      setIcon(
          new BackgroundIcon(
              d == -1 ? NON_ACCESSIBLE_TEXT : String.format("%.2f", d),
              SwingConstants.CENTER,
              Colors.GRAY32,
              d == -1 ? NON_ACCESSIBLE_COLOR : calcColor((Double) value),
              table.getSelectionBackground(),
              selected,
              0 - 1,
              0,
              table.getColumnModel().getColumn(column).getWidth() - 1,
              table.getRowHeight() - 1));
    }

    return this;
  }
Calculates a match color based on the value. Uses the same color palette as the C++ plugin
code.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/treenodepanels/tables/renderers/SimilarityConfidenceCellRenderer.java