1 Clazz.declarePackage ("jssun.awt.geom");
2 c$ = Clazz.decorateAsClass (function () {
11 Clazz.instantialize (this, arguments);
12 }, jssun.awt.geom, "Edge");
13 Clazz.makeConstructor (c$,
15 this.construct (c, ctag, 0);
16 }, "jssun.awt.geom.Curve,~N");
17 Clazz.makeConstructor (c$,
18 function (c, ctag, etag) {
22 }, "jssun.awt.geom.Curve,~N,~N");
23 Clazz.defineMethod (c$, "getCurve",
27 Clazz.defineMethod (c$, "getCurveTag",
31 Clazz.defineMethod (c$, "getEdgeTag",
35 Clazz.defineMethod (c$, "setEdgeTag",
39 Clazz.defineMethod (c$, "getEquivalence",
41 return this.equivalence;
43 Clazz.defineMethod (c$, "setEquivalence",
45 this.equivalence = eq;
47 Clazz.defineMethod (c$, "compareTo",
48 function (other, yrange) {
49 if (other === this.lastEdge && yrange[0] < this.lastLimit) {
50 if (yrange[1] > this.lastLimit) {
51 yrange[1] = this.lastLimit;
52 }return this.lastResult;
53 }if (this === other.lastEdge && yrange[0] < other.lastLimit) {
54 if (yrange[1] > other.lastLimit) {
55 yrange[1] = other.lastLimit;
56 }return 0 - other.lastResult;
57 }var ret = this.curve.compareTo (other.curve, yrange);
58 this.lastEdge = other;
59 this.lastLimit = yrange[1];
60 this.lastResult = ret;
62 }, "jssun.awt.geom.Edge,~A");
63 Clazz.defineMethod (c$, "record",
64 function (yend, etag) {
68 Clazz.defineMethod (c$, "isActiveFor",
70 return (this.etag == etag && this.activey >= y);
72 Clazz.overrideMethod (c$, "toString",
74 return ("Edge[" + this.curve + ", " + (this.ctag == 0 ? "L" : "R") + ", " + (this.etag == 1 ? "I" : (this.etag == -1 ? "O" : "N")) + "]");
76 Clazz.defineStatics (c$,