all can threshold
[jalview.git] / src / jalview / schemes / PIDColourScheme.java
index 916887e..eadf09b 100755 (executable)
@@ -16,8 +16,13 @@ public class PIDColourScheme extends ResidueColourScheme {
     }\r
 \r
 \r
+\r
   public Color findColour(String s, int j) {\r
-      Color     c    = Color.white;\r
+\r
+    if( threshold!=0 && !aboveThreshold(s,j))\r
+      return Color.white;\r
+\r
+    Color     c    = Color.white;\r
       Hashtable hash =  (Hashtable)consensus.elementAt(j);\r
 \r
       double sc = 0;\r