// Measure of "information content" added by using color, very crude
//boolean useColor = (metaData.getUniqueCount() < 10 || metaData.getUniqueRatio() <= 0.5) &&
// !(attKey.equals("NAME") || attKey.equals("DATA FILE") || attKey.equals("DATA TYPE"));
boolean useColor = true;
if (useColor) {
ColorTable ct = colorTables.get(attKey);
if (ct == null) {
ColorPalette palette = ColorUtilities.getNextPalette();
ct = new PaletteColorTable(palette);
colorTables.put(attKey, ct);
}
c = ct.get(attValue);
} else {
c = ColorUtilities.randomDesaturatedColor(0.5f);
colorMap.put(key, c);
}
}