1 Clazz.declarePackage ("jalview.datamodel");
\r
2 Clazz.load (["java.awt.Color"], "jalview.datamodel.GraphLine", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
7 this.displayed = true;
\r
8 Clazz.instantialize (this, arguments);
\r
9 }, jalview.datamodel, "GraphLine");
\r
10 Clazz.prepareFields (c$, function () {
\r
11 this.colour = java.awt.Color.black;
\r
13 Clazz.makeConstructor (c$,
\r
14 function (value, label, col) {
\r
16 if (label != null) {
\r
20 }}, "~N,~S,java.awt.Color");
\r
21 Clazz.makeConstructor (c$,
\r
24 this.value = from.value;
\r
25 this.label = String.instantialize (from.label);
\r
26 this.colour = from.colour;
\r
27 this.displayed = from.displayed;
\r
28 }}, "jalview.datamodel.GraphLine");
\r
29 Clazz.overrideMethod (c$, "equals",
\r
31 if (obj != null && Clazz.instanceOf (obj, jalview.datamodel.GraphLine)) {
\r
33 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);
\r