}
if (value instanceof String) {
String graphName = (String) value;
return new JLabel(graphName);
}
MatchingResult matchingResult = (MatchingResult) value;
String matchedGraphName = matchingResult.getTemplate().toString();
JLabel result = new JLabel(matchedGraphName);
result.setToolTipText("Abstand: " + (1 - matchingResult.getQuality()));
if (column > 0 && matchedGraphName != null) {
result.setOpaque(true);
String graphName = (String) table.getModel().getValueAt(row, 0);
Color color;
if (graphName.substring(0, 4).equals(matchedGraphName.substring(0, 4))) {