1 Clazz.declarePackage ("jalview.schemes");
\r
2 Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.RNAInteractionColourScheme", ["jalview.schemes.ResidueProperties", "java.awt.Color"], function () {
\r
3 c$ = Clazz.declareType (jalview.schemes, "RNAInteractionColourScheme", jalview.schemes.ResidueColourScheme);
\r
4 Clazz.defineMethod (c$, "findColour",
\r
6 return this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[c.charCodeAt (0)]];
\r
8 Clazz.defineMethod (c$, "findColour",
\r
9 function (c, j, seq) {
\r
11 if ((this.threshold == 0) || this.aboveThreshold (c, j)) {
\r
13 currentColour = this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[c.charCodeAt (0)]];
\r
15 if (Clazz.exceptionOf (ex, Exception)) {
\r
16 return java.awt.Color.white;
\r
22 return java.awt.Color.white;
\r
23 }if (this.conservationColouring) {
\r
24 currentColour = this.applyConservation (currentColour, j);
\r
25 }return currentColour;
\r
26 }, "~S,~N,jalview.datamodel.SequenceI");
\r