Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / datamodel / SequenceFeature.js
index f8ce548..d2f14a8 100644 (file)
-Clazz.declarePackage ("jalview.datamodel");\r
-Clazz.load (null, "jalview.datamodel.SequenceFeature", ["java.util.Hashtable", "$.Vector"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.begin = 0;\r
-this.end = 0;\r
-this.score = 0;\r
-this.type = null;\r
-this.description = null;\r
-this.otherDetails = null;\r
-this.links = null;\r
-this.featureGroup = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.datamodel, "SequenceFeature");\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (cpy) {\r
-if (cpy != null) {\r
-this.begin = cpy.begin;\r
-this.end = cpy.end;\r
-this.score = cpy.score;\r
-if (cpy.type != null) {\r
-this.type =  String.instantialize (cpy.type);\r
-}if (cpy.description != null) {\r
-this.description =  String.instantialize (cpy.description);\r
-}if (cpy.featureGroup != null) {\r
-this.featureGroup =  String.instantialize (cpy.featureGroup);\r
-}if (cpy.otherDetails != null) {\r
-try {\r
-this.otherDetails = cpy.otherDetails.clone ();\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}if (cpy.links != null && cpy.links.size () > 0) {\r
-this.links =  new java.util.Vector ();\r
-for (var i = 0, iSize = cpy.links.size (); i < iSize; i++) {\r
-this.links.addElement (cpy.links.elementAt (i));\r
-}\r
-}}}, "jalview.datamodel.SequenceFeature");\r
-Clazz.makeConstructor (c$, \r
-function (type, desc, status, begin, end, featureGroup) {\r
-this.type = type;\r
-this.description = desc;\r
-this.setValue ("status", status);\r
-this.begin = begin;\r
-this.end = end;\r
-this.featureGroup = featureGroup;\r
-}, "~S,~S,~S,~N,~N,~S");\r
-Clazz.makeConstructor (c$, \r
-function (type, desc, begin, end, score, featureGroup) {\r
-this.type = type;\r
-this.description = desc;\r
-this.begin = begin;\r
-this.end = end;\r
-this.score = score;\r
-this.featureGroup = featureGroup;\r
-}, "~S,~S,~N,~N,~N,~S");\r
-Clazz.defineMethod (c$, "equals", \r
-function (sf) {\r
-if (this.begin != sf.begin || this.end != sf.end || this.score != sf.score) {\r
-return false;\r
-}if (!(this.type + this.description + this.featureGroup).equals (sf.type + sf.description + sf.featureGroup)) {\r
-return false;\r
-}return true;\r
-}, "jalview.datamodel.SequenceFeature");\r
-Clazz.defineMethod (c$, "getBegin", \r
-function () {\r
-return this.begin;\r
-});\r
-Clazz.defineMethod (c$, "setBegin", \r
-function (start) {\r
-this.begin = start;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getEnd", \r
-function () {\r
-return this.end;\r
-});\r
-Clazz.defineMethod (c$, "setEnd", \r
-function (end) {\r
-this.end = end;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getType", \r
-function () {\r
-return this.type;\r
-});\r
-Clazz.defineMethod (c$, "setType", \r
-function (type) {\r
-this.type = type;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getDescription", \r
-function () {\r
-return this.description;\r
-});\r
-Clazz.defineMethod (c$, "setDescription", \r
-function (desc) {\r
-this.description = desc;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getFeatureGroup", \r
-function () {\r
-return this.featureGroup;\r
-});\r
-Clazz.defineMethod (c$, "setFeatureGroup", \r
-function (featureGroup) {\r
-this.featureGroup = featureGroup;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "addLink", \r
-function (labelLink) {\r
-if (this.links == null) {\r
-this.links =  new java.util.Vector ();\r
-}this.links.insertElementAt (labelLink, 0);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getScore", \r
-function () {\r
-return this.score;\r
-});\r
-Clazz.defineMethod (c$, "setScore", \r
-function (value) {\r
-this.score = value;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getValue", \r
-function (key) {\r
-if (this.otherDetails == null) {\r
-return null;\r
-} else {\r
-return this.otherDetails.get (key);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "setValue", \r
-function (key, value) {\r
-if (value != null) {\r
-if (this.otherDetails == null) {\r
-this.otherDetails =  new java.util.Hashtable ();\r
-}this.otherDetails.put (key, value);\r
-}}, "~S,~O");\r
-Clazz.defineMethod (c$, "setStatus", \r
-function (status) {\r
-this.setValue ("status", status);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getStatus", \r
-function () {\r
-if (this.otherDetails != null) {\r
-var stat = this.otherDetails.get ("status");\r
-if (stat != null) {\r
-return  String.instantialize (stat);\r
-}}return null;\r
-});\r
-Clazz.defineMethod (c$, "setPosition", \r
-function (pos) {\r
-this.begin = pos;\r
-this.end = pos;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getPosition", \r
-function () {\r
-return this.begin;\r
-});\r
-Clazz.defineMethod (c$, "getStrand", \r
-function () {\r
-var str;\r
-if (this.otherDetails == null || (str = this.otherDetails.get ("STRAND").toString ()) == null) {\r
-return 0;\r
-}if (str.equals ("-")) {\r
-return -1;\r
-}if (str.equals ("+")) {\r
-return 1;\r
-}return 0;\r
-});\r
-});\r
+Clazz.declarePackage ("jalview.datamodel");
+Clazz.load (null, "jalview.datamodel.SequenceFeature", ["java.util.Hashtable", "$.Vector"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.begin = 0;
+this.end = 0;
+this.score = 0;
+this.type = null;
+this.description = null;
+this.otherDetails = null;
+this.links = null;
+this.featureGroup = null;
+Clazz.instantialize (this, arguments);
+}, jalview.datamodel, "SequenceFeature");
+Clazz.makeConstructor (c$, 
+function () {
+});
+Clazz.makeConstructor (c$, 
+function (cpy) {
+if (cpy != null) {
+this.begin = cpy.begin;
+this.end = cpy.end;
+this.score = cpy.score;
+if (cpy.type != null) {
+this.type =  String.instantialize (cpy.type);
+}if (cpy.description != null) {
+this.description =  String.instantialize (cpy.description);
+}if (cpy.featureGroup != null) {
+this.featureGroup =  String.instantialize (cpy.featureGroup);
+}if (cpy.otherDetails != null) {
+try {
+this.otherDetails = cpy.otherDetails.clone ();
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+} else {
+throw e;
+}
+}
+}if (cpy.links != null && cpy.links.size () > 0) {
+this.links =  new java.util.Vector ();
+for (var i = 0, iSize = cpy.links.size (); i < iSize; i++) {
+this.links.addElement (cpy.links.elementAt (i));
+}
+}}}, "jalview.datamodel.SequenceFeature");
+Clazz.makeConstructor (c$, 
+function (type, desc, status, begin, end, featureGroup) {
+this.type = type;
+this.description = desc;
+this.setValue ("status", status);
+this.begin = begin;
+this.end = end;
+this.featureGroup = featureGroup;
+}, "~S,~S,~S,~N,~N,~S");
+Clazz.makeConstructor (c$, 
+function (type, desc, begin, end, score, featureGroup) {
+this.type = type;
+this.description = desc;
+this.begin = begin;
+this.end = end;
+this.score = score;
+this.featureGroup = featureGroup;
+}, "~S,~S,~N,~N,~N,~S");
+Clazz.defineMethod (c$, "equals", 
+function (sf) {
+if (this.begin != sf.begin || this.end != sf.end || this.score != sf.score) {
+return false;
+}if (!(this.type + this.description + this.featureGroup).equals (sf.type + sf.description + sf.featureGroup)) {
+return false;
+}return true;
+}, "jalview.datamodel.SequenceFeature");
+Clazz.defineMethod (c$, "getBegin", 
+function () {
+return this.begin;
+});
+Clazz.defineMethod (c$, "setBegin", 
+function (start) {
+this.begin = start;
+}, "~N");
+Clazz.defineMethod (c$, "getEnd", 
+function () {
+return this.end;
+});
+Clazz.defineMethod (c$, "setEnd", 
+function (end) {
+this.end = end;
+}, "~N");
+Clazz.defineMethod (c$, "getType", 
+function () {
+return this.type;
+});
+Clazz.defineMethod (c$, "setType", 
+function (type) {
+this.type = type;
+}, "~S");
+Clazz.defineMethod (c$, "getDescription", 
+function () {
+return this.description;
+});
+Clazz.defineMethod (c$, "setDescription", 
+function (desc) {
+this.description = desc;
+}, "~S");
+Clazz.defineMethod (c$, "getFeatureGroup", 
+function () {
+return this.featureGroup;
+});
+Clazz.defineMethod (c$, "setFeatureGroup", 
+function (featureGroup) {
+this.featureGroup = featureGroup;
+}, "~S");
+Clazz.defineMethod (c$, "addLink", 
+function (labelLink) {
+if (this.links == null) {
+this.links =  new java.util.Vector ();
+}this.links.insertElementAt (labelLink, 0);
+}, "~S");
+Clazz.defineMethod (c$, "getScore", 
+function () {
+return this.score;
+});
+Clazz.defineMethod (c$, "setScore", 
+function (value) {
+this.score = value;
+}, "~N");
+Clazz.defineMethod (c$, "getValue", 
+function (key) {
+if (this.otherDetails == null) {
+return null;
+} else {
+return this.otherDetails.get (key);
+}}, "~S");
+Clazz.defineMethod (c$, "setValue", 
+function (key, value) {
+if (value != null) {
+if (this.otherDetails == null) {
+this.otherDetails =  new java.util.Hashtable ();
+}this.otherDetails.put (key, value);
+}}, "~S,~O");
+Clazz.defineMethod (c$, "setStatus", 
+function (status) {
+this.setValue ("status", status);
+}, "~S");
+Clazz.defineMethod (c$, "getStatus", 
+function () {
+if (this.otherDetails != null) {
+var stat = this.otherDetails.get ("status");
+if (stat != null) {
+return  String.instantialize (stat);
+}}return null;
+});
+Clazz.defineMethod (c$, "setPosition", 
+function (pos) {
+this.begin = pos;
+this.end = pos;
+}, "~N");
+Clazz.defineMethod (c$, "getPosition", 
+function () {
+return this.begin;
+});
+Clazz.defineMethod (c$, "getStrand", 
+function () {
+var str;
+if (this.otherDetails == null || (str = this.otherDetails.get ("STRAND").toString ()) == null) {
+return 0;
+}if (str.equals ("-")) {
+return -1;
+}if (str.equals ("+")) {
+return 1;
+}return 0;
+});
+});