Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / schemes / ScoreColourScheme.js
index 5027bdf..f097a40 100644 (file)
@@ -1,43 +1,43 @@
-Clazz.declarePackage ("jalview.schemes");\r
-Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.ScoreColourScheme", ["jalview.schemes.ResidueProperties", "jalview.util.Comparison", "java.awt.Color"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.min = 0;\r
-this.max = 0;\r
-this.scores = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.schemes, "ScoreColourScheme", jalview.schemes.ResidueColourScheme);\r
-Clazz.makeConstructor (c$, \r
-function (symbolIndex, scores, min, max) {\r
-Clazz.superConstructor (this, jalview.schemes.ScoreColourScheme, [symbolIndex]);\r
-this.scores = scores;\r
-this.min = min;\r
-this.max = max;\r
-var i;\r
-var iSize = scores.length;\r
-this.colors =  new Array (scores.length);\r
-for (i = 0; i < iSize; i++) {\r
-var red = (scores[i] - min) / (max - min);\r
-if (red > 1.0) {\r
-red = 1.0;\r
-}if (red < 0.0) {\r
-red = 0.0;\r
-}this.colors[i] = this.makeColour (red);\r
-}\r
-}, "~A,~A,~N,~N");\r
-Clazz.defineMethod (c$, "findColour", \r
-function (c, j, seq) {\r
-if (this.threshold > 0) {\r
-if (!this.aboveThreshold (c, j)) {\r
-return java.awt.Color.white;\r
-}}if (jalview.util.Comparison.isGap (c)) {\r
-return java.awt.Color.white;\r
-}var currentColour = this.colors[jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt (0)]];\r
-if (this.conservationColouring) {\r
-currentColour = this.applyConservation (currentColour, j);\r
-}return currentColour;\r
-}, "~S,~N,jalview.datamodel.SequenceI");\r
-Clazz.defineMethod (c$, "makeColour", \r
-function (c) {\r
-return  new java.awt.Color (c, 0.0, 1.0 - c);\r
-}, "~N");\r
-});\r
+Clazz.declarePackage ("jalview.schemes");
+Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.ScoreColourScheme", ["jalview.schemes.ResidueProperties", "jalview.util.Comparison", "java.awt.Color"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.min = 0;
+this.max = 0;
+this.scores = null;
+Clazz.instantialize (this, arguments);
+}, jalview.schemes, "ScoreColourScheme", jalview.schemes.ResidueColourScheme);
+Clazz.makeConstructor (c$, 
+function (symbolIndex, scores, min, max) {
+Clazz.superConstructor (this, jalview.schemes.ScoreColourScheme, [symbolIndex]);
+this.scores = scores;
+this.min = min;
+this.max = max;
+var i;
+var iSize = scores.length;
+this.colors =  new Array (scores.length);
+for (i = 0; i < iSize; i++) {
+var red = (scores[i] - min) / (max - min);
+if (red > 1.0) {
+red = 1.0;
+}if (red < 0.0) {
+red = 0.0;
+}this.colors[i] = this.makeColour (red);
+}
+}, "~A,~A,~N,~N");
+Clazz.defineMethod (c$, "findColour", 
+function (c, j, seq) {
+if (this.threshold > 0) {
+if (!this.aboveThreshold (c, j)) {
+return java.awt.Color.white;
+}}if (jalview.util.Comparison.isGap (c)) {
+return java.awt.Color.white;
+}var currentColour = this.colors[jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt (0)]];
+if (this.conservationColouring) {
+currentColour = this.applyConservation (currentColour, j);
+}return currentColour;
+}, "~S,~N,jalview.datamodel.SequenceI");
+Clazz.defineMethod (c$, "makeColour", 
+function (c) {
+return  new java.awt.Color (c, 0.0, 1.0 - c);
+}, "~N");
+});