consensus held in residueColour
[jalview.git] / src / jalview / schemes / Blosum62ColourScheme.java
index 6c83920..2e18c6a 100755 (executable)
@@ -27,23 +27,14 @@ import jalview.datamodel.*;
 public class Blosum62ColourScheme extends ResidueColourScheme\r
 {\r
 \r
-  // need to keep an eye on the changing visible consensus sequence\r
-  AlignViewport av;\r
-\r
-  public Blosum62ColourScheme(AlignViewport av)\r
+  public Blosum62ColourScheme()\r
   {\r
     super();\r
-    this.av = av;\r
   }\r
 \r
-  public Color findColour(String s, int j, Vector aa)\r
+  public Color findColour(String s, int j)\r
   {\r
-    Hashtable hash;\r
-\r
-    if (aa != null)\r
-      hash = (Hashtable)aa.elementAt(j);\r
-    else\r
-      return Color.white;\r
+    Hashtable hash = (Hashtable)consensus.elementAt(j);\r
 \r
     if (!jalview.util.Comparison.isGap((s.charAt(0))))\r
     {\r
@@ -73,7 +64,7 @@ public class Blosum62ColourScheme extends ResidueColourScheme
 \r
   public boolean canThreshold()\r
   {\r
-    return false;\r
+    return true;\r
   }\r
 \r
 }\r