import java.awt.*;\r
\r
import jalview.datamodel.*;\r
+import jalview.analysis.AAFrequency;\r
\r
public class PIDColourScheme\r
extends ResidueColourScheme\r
s = String.valueOf(res -= ('a' - 'A'));\r
}\r
\r
+ if (consensus == null\r
+ || j >= consensus.length\r
+ || consensus[j]==null)\r
+ {\r
+ return Color.white;\r
+ }\r
\r
if ( (threshold != 0) && !aboveThreshold(s, j))\r
{\r
if(consensus.length<=j)\r
return Color.white;\r
\r
- if ( (Integer.parseInt(consensus[j].get("maxCount").toString()) != -1) &&\r
+ if ( (Integer.parseInt(consensus[j].get(AAFrequency.MAXCOUNT).toString()) != -1) &&\r
consensus[j].contains(s))\r
{\r
sc = ( (Float) consensus[j].get(ignoreGaps)).floatValue();\r