JAL-1807 test
[jalviewjs.git] / bin / jalview / schemes / RNAHelicesColour.js
index 5023c90..c7d3af2 100644 (file)
@@ -1,68 +1,68 @@
-Clazz.declarePackage ("jalview.schemes");\r
-Clazz.load (["jalview.schemes.ResidueColourScheme", "java.util.Hashtable"], "jalview.schemes.RNAHelicesColour", ["jalview.schemes.ResidueProperties", "jalview.util.ColorUtils", "java.awt.Color"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.helixcolorhash = null;\r
-this.positionsToHelix = null;\r
-this.numHelix = 0;\r
-this.annotation = null;\r
-this.lastrefresh = -1;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.schemes, "RNAHelicesColour", jalview.schemes.ResidueColourScheme);\r
-Clazz.prepareFields (c$, function () {\r
-this.helixcolorhash =  new java.util.Hashtable ();\r
-this.positionsToHelix =  new java.util.Hashtable ();\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (annotation) {\r
-Clazz.superConstructor (this, jalview.schemes.RNAHelicesColour, [jalview.schemes.ResidueProperties.nucleotideIndex]);\r
-this.annotation = annotation;\r
-this.refresh ();\r
-}, "jalview.datamodel.AlignmentAnnotation");\r
-Clazz.makeConstructor (c$, \r
-function (alignment) {\r
-Clazz.superConstructor (this, jalview.schemes.RNAHelicesColour, [jalview.schemes.ResidueProperties.nucleotideIndex]);\r
-this.alignmentChanged (alignment, null);\r
-}, "jalview.datamodel.AnnotatedCollectionI");\r
-Clazz.overrideMethod (c$, "alignmentChanged", \r
-function (alignment, hiddenReps) {\r
-var annotations = alignment.getAlignmentAnnotation ();\r
-for (var i = 0; i < annotations.length; i++) {\r
-if (annotations[i].getRNAStruc () != null) {\r
-this.annotation = annotations[i];\r
-break;\r
-}}\r
-this.refresh ();\r
-}, "jalview.datamodel.AnnotatedCollectionI,java.util.Map");\r
-Clazz.defineMethod (c$, "refresh", \r
-function () {\r
-if (this.annotation != null && ((this.annotation._rnasecstr == null || this.lastrefresh != this.annotation._rnasecstr.hashCode ()) && this.annotation.isValidStruc ())) {\r
-this.annotation.getRNAStruc ();\r
-this.lastrefresh = this.annotation._rnasecstr.hashCode ();\r
-this.numHelix = 0;\r
-this.positionsToHelix =  new java.util.Hashtable ();\r
-for (var x = 0; x < this.annotation._rnasecstr.length; x++) {\r
-this.positionsToHelix.put (new Integer (this.annotation._rnasecstr[x].getBegin ()), this.annotation._rnasecstr[x].getFeatureGroup ());\r
-this.positionsToHelix.put (new Integer (this.annotation._rnasecstr[x].getEnd ()), this.annotation._rnasecstr[x].getFeatureGroup ());\r
-if (Integer.parseInt (this.annotation._rnasecstr[x].getFeatureGroup ()) > this.numHelix) {\r
-this.numHelix = Integer.parseInt (this.annotation._rnasecstr[x].getFeatureGroup ());\r
-}}\r
-for (var j = 0; j <= this.numHelix; j++) {\r
-if (!this.helixcolorhash.containsKey (Integer.toString (j))) {\r
-this.helixcolorhash.put (Integer.toString (j), jalview.util.ColorUtils.generateRandomColor (java.awt.Color.white));\r
-}}\r
-}});\r
-Clazz.defineMethod (c$, "findColour", \r
-function (c) {\r
-return jalview.schemes.ResidueProperties.purinepyrimidine[jalview.schemes.ResidueProperties.purinepyrimidineIndex[c.charCodeAt (0)]];\r
-}, "~S");\r
-Clazz.defineMethod (c$, "findColour", \r
-function (c, j, seq) {\r
-this.refresh ();\r
-var currentColour = java.awt.Color.white;\r
-var currentHelix = null;\r
-currentHelix = this.positionsToHelix.get (new Integer (j));\r
-if (currentHelix != null) {\r
-currentColour = this.helixcolorhash.get (currentHelix);\r
-}return currentColour;\r
-}, "~S,~N,jalview.datamodel.SequenceI");\r
-});\r
+Clazz.declarePackage ("jalview.schemes");
+Clazz.load (["jalview.schemes.ResidueColourScheme", "java.util.Hashtable"], "jalview.schemes.RNAHelicesColour", ["jalview.schemes.ResidueProperties", "jalview.util.ColorUtils", "java.awt.Color"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.helixcolorhash = null;
+this.positionsToHelix = null;
+this.numHelix = 0;
+this.annotation = null;
+this.lastrefresh = -1;
+Clazz.instantialize (this, arguments);
+}, jalview.schemes, "RNAHelicesColour", jalview.schemes.ResidueColourScheme);
+Clazz.prepareFields (c$, function () {
+this.helixcolorhash =  new java.util.Hashtable ();
+this.positionsToHelix =  new java.util.Hashtable ();
+});
+Clazz.makeConstructor (c$, 
+function (annotation) {
+Clazz.superConstructor (this, jalview.schemes.RNAHelicesColour, [jalview.schemes.ResidueProperties.nucleotideIndex]);
+this.annotation = annotation;
+this.refresh ();
+}, "jalview.datamodel.AlignmentAnnotation");
+Clazz.makeConstructor (c$, 
+function (alignment) {
+Clazz.superConstructor (this, jalview.schemes.RNAHelicesColour, [jalview.schemes.ResidueProperties.nucleotideIndex]);
+this.alignmentChanged (alignment, null);
+}, "jalview.datamodel.AnnotatedCollectionI");
+Clazz.overrideMethod (c$, "alignmentChanged", 
+function (alignment, hiddenReps) {
+var annotations = alignment.getAlignmentAnnotation ();
+for (var i = 0; i < annotations.length; i++) {
+if (annotations[i].getRNAStruc () != null) {
+this.annotation = annotations[i];
+break;
+}}
+this.refresh ();
+}, "jalview.datamodel.AnnotatedCollectionI,java.util.Map");
+Clazz.defineMethod (c$, "refresh", 
+function () {
+if (this.annotation != null && ((this.annotation._rnasecstr == null || this.lastrefresh != this.annotation._rnasecstr.hashCode ()) && this.annotation.isValidStruc ())) {
+this.annotation.getRNAStruc ();
+this.lastrefresh = this.annotation._rnasecstr.hashCode ();
+this.numHelix = 0;
+this.positionsToHelix =  new java.util.Hashtable ();
+for (var x = 0; x < this.annotation._rnasecstr.length; x++) {
+this.positionsToHelix.put (new Integer (this.annotation._rnasecstr[x].getBegin ()), this.annotation._rnasecstr[x].getFeatureGroup ());
+this.positionsToHelix.put (new Integer (this.annotation._rnasecstr[x].getEnd ()), this.annotation._rnasecstr[x].getFeatureGroup ());
+if (Integer.parseInt (this.annotation._rnasecstr[x].getFeatureGroup ()) > this.numHelix) {
+this.numHelix = Integer.parseInt (this.annotation._rnasecstr[x].getFeatureGroup ());
+}}
+for (var j = 0; j <= this.numHelix; j++) {
+if (!this.helixcolorhash.containsKey (Integer.toString (j))) {
+this.helixcolorhash.put (Integer.toString (j), jalview.util.ColorUtils.generateRandomColor (java.awt.Color.white));
+}}
+}});
+Clazz.defineMethod (c$, "findColour", 
+function (c) {
+return jalview.schemes.ResidueProperties.purinepyrimidine[jalview.schemes.ResidueProperties.purinepyrimidineIndex[c.charCodeAt (0)]];
+}, "~S");
+Clazz.defineMethod (c$, "findColour", 
+function (c, j, seq) {
+this.refresh ();
+var currentColour = java.awt.Color.white;
+var currentHelix = null;
+currentHelix = this.positionsToHelix.get (new Integer (j));
+if (currentHelix != null) {
+currentColour = this.helixcolorhash.get (currentHelix);
+}return currentColour;
+}, "~S,~N,jalview.datamodel.SequenceI");
+});