+ Color newColor;
+ color = fr.featureColours.get((String) table.getModel().getValueAt(
+ row, 0));
+ if (color instanceof GraduatedColor)
+ {
+ newColor = ((GraduatedColor) color).getMaxColor();
+ Color minCol = ((GraduatedColor) color).getMinColor();;
+ setBackground(newColor);
+ setToolTipText("RGB value: Max (" + newColor.getRed() + ", "
+ + newColor.getGreen() + ", " + newColor.getBlue()
+ + ")\nMin (" + minCol.getRed() + ", " + minCol.getGreen()
+ + ", " + minCol.getBlue() + ")");
+ }
+ else
+ {
+ newColor = (Color) color;
+ setBackground(newColor);
+ setToolTipText("RGB value: " + newColor.getRed() + ", "
+ + newColor.getGreen() + ", " + newColor.getBlue());
+ }