1 Clazz.declarePackage ("jalview.schemes");
2 Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.PurinePyrimidineColourScheme", ["jalview.schemes.ResidueProperties", "java.awt.Color"], function () {
3 c$ = Clazz.declareType (jalview.schemes, "PurinePyrimidineColourScheme", jalview.schemes.ResidueColourScheme);
4 Clazz.makeConstructor (c$,
6 Clazz.superConstructor (this, jalview.schemes.PurinePyrimidineColourScheme, [jalview.schemes.ResidueProperties.purinepyrimidineIndex, jalview.schemes.ResidueProperties.purinepyrimidine, 0]);
8 Clazz.defineMethod (c$, "findColour",
10 return this.colors[jalview.schemes.ResidueProperties.purinepyrimidineIndex[c.charCodeAt (0)]];
12 Clazz.defineMethod (c$, "findColour",
15 if ((this.threshold == 0) || this.aboveThreshold (c, j)) {
17 currentColour = this.colors[jalview.schemes.ResidueProperties.purinepyrimidineIndex[c.charCodeAt (0)]];
19 if (Clazz.exceptionOf (ex, Exception)) {
20 return java.awt.Color.white;
26 return java.awt.Color.white;
27 }if (this.conservationColouring) {
28 currentColour = this.applyConservation (currentColour, j);
29 }return currentColour;