graduated feature schemes (with visual indication of thresholding)
[jalview.git] / src / jalview / gui / FeatureRenderer.java
index 95d940d..6abe899 100755 (executable)
@@ -1033,7 +1033,12 @@ public class FeatureRenderer
     tmp.add(new JLabel("Colour: ", JLabel.RIGHT));
     tmp.add(colour);
     colour.setPreferredSize(new Dimension(150, 15));
-
+    colour.setFont(new java.awt.Font("Verdana", Font.PLAIN, 9));
+    colour.setForeground(Color.black);
+    colour.setHorizontalAlignment(SwingConstants.CENTER);
+    colour.setVerticalAlignment(SwingConstants.CENTER);
+    colour.setHorizontalTextPosition(SwingConstants.CENTER);
+    colour.setVerticalTextPosition(SwingConstants.CENTER);
     bigPanel.add(panel, BorderLayout.NORTH);
 
     panel = new JPanel();
@@ -1217,11 +1222,12 @@ public class FeatureRenderer
     colour.setIcon(null);
     colour.setToolTipText(null);
     colour.setText("");
+    
     if (col2 instanceof Color) {
       colour.setBackground((Color)col2);
     } else {
       colour.setBackground(bigPanel.getBackground());
-      colour.setForeground(bigPanel.getForeground());
+      colour.setForeground(Color.black);
       FeatureSettings.renderGraduatedColor(colour, (GraduatedColor) col2);
       //colour.setForeground(colour.getBackground());
     }