X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjalview%2Fdatamodel%2FGraphLine.js;h=83ffc695cd06a55b890c6b85aa633dbcb6181231;hp=564e7f4bb1a58cdc83c6a36e8c984a331fd11f44;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/jalview/datamodel/GraphLine.js b/bin/jalview/datamodel/GraphLine.js index 564e7f4..83ffc69 100644 --- a/bin/jalview/datamodel/GraphLine.js +++ b/bin/jalview/datamodel/GraphLine.js @@ -1,36 +1,36 @@ -Clazz.declarePackage ("jalview.datamodel"); -Clazz.load (["java.awt.Color"], "jalview.datamodel.GraphLine", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.value = 0; -this.label = ""; -this.colour = null; -this.displayed = true; -Clazz.instantialize (this, arguments); -}, jalview.datamodel, "GraphLine"); -Clazz.prepareFields (c$, function () { -this.colour = java.awt.Color.black; -}); -Clazz.makeConstructor (c$, -function (value, label, col) { -this.value = value; -if (label != null) { -this.label = label; -}if (col != null) { -this.colour = col; -}}, "~N,~S,java.awt.Color"); -Clazz.makeConstructor (c$, -function (from) { -if (from != null) { -this.value = from.value; -this.label = String.instantialize (from.label); -this.colour = from.colour; -this.displayed = from.displayed; -}}, "jalview.datamodel.GraphLine"); -Clazz.overrideMethod (c$, "equals", -function (obj) { -if (obj != null && Clazz.instanceOf (obj, jalview.datamodel.GraphLine)) { -var other = obj; -return this.displayed == other.displayed && this.value == other.value && (this.colour != null ? (other.colour != null && other.colour.equals (this.colour)) : other.colour == null) && (this.label != null ? (other.label != null && other.label.equals (this.label)) : other.label == null); -}return false; -}, "~O"); -}); +Clazz.declarePackage ("jalview.datamodel"); +Clazz.load (["java.awt.Color"], "jalview.datamodel.GraphLine", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.value = 0; +this.label = ""; +this.colour = null; +this.displayed = true; +Clazz.instantialize (this, arguments); +}, jalview.datamodel, "GraphLine"); +Clazz.prepareFields (c$, function () { +this.colour = java.awt.Color.black; +}); +Clazz.makeConstructor (c$, +function (value, label, col) { +this.value = value; +if (label != null) { +this.label = label; +}if (col != null) { +this.colour = col; +}}, "~N,~S,java.awt.Color"); +Clazz.makeConstructor (c$, +function (from) { +if (from != null) { +this.value = from.value; +this.label = String.instantialize (from.label); +this.colour = from.colour; +this.displayed = from.displayed; +}}, "jalview.datamodel.GraphLine"); +Clazz.overrideMethod (c$, "equals", +function (obj) { +if (obj != null && Clazz.instanceOf (obj, jalview.datamodel.GraphLine)) { +var other = obj; +return this.displayed == other.displayed && this.value == other.value && (this.colour != null ? (other.colour != null && other.colour.equals (this.colour)) : other.colour == null) && (this.label != null ? (other.label != null && other.label.equals (this.label)) : other.label == null); +}return false; +}, "~O"); +});