X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjssun%2Fawt%2Fgeom%2FCurveLink.js;fp=site%2Fj2s%2Fjssun%2Fawt%2Fgeom%2FCurveLink.js;h=2c493bebfe5137349a55c095eea2b3f364e7a89e;hp=9e5720592b7bd9e8e81bc19b0dd38f31cfc0173d;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jssun/awt/geom/CurveLink.js b/site/j2s/jssun/awt/geom/CurveLink.js index 9e57205..2c493be 100644 --- a/site/j2s/jssun/awt/geom/CurveLink.js +++ b/site/j2s/jssun/awt/geom/CurveLink.js @@ -1,84 +1,84 @@ -Clazz.declarePackage ("jssun.awt.geom"); -Clazz.load (null, "jssun.awt.geom.CurveLink", ["java.lang.InternalError", "jssun.awt.geom.Order0"], function () { -c$ = Clazz.decorateAsClass (function () { -this.curve = null; -this.ytop = 0; -this.ybot = 0; -this.etag = 0; -this.next = null; -Clazz.instantialize (this, arguments); -}, jssun.awt.geom, "CurveLink"); -Clazz.makeConstructor (c$, -function (curve, ystart, yend, etag) { -this.curve = curve; -this.ytop = ystart; -this.ybot = yend; -this.etag = etag; -if (this.ytop < curve.getYTop () || this.ybot > curve.getYBot ()) { -throw new InternalError ("bad curvelink [" + this.ytop + "=>" + this.ybot + "] for " + curve); -}}, "jssun.awt.geom.Curve,~N,~N,~N"); -Clazz.defineMethod (c$, "absorb", -function (link) { -return this.absorb (link.curve, link.ytop, link.ybot, link.etag); -}, "jssun.awt.geom.CurveLink"); -Clazz.defineMethod (c$, "absorb", -function (curve, ystart, yend, etag) { -if (this.curve !== curve || this.etag != etag || this.ybot < ystart || this.ytop > yend) { -return false; -}if (ystart < curve.getYTop () || yend > curve.getYBot ()) { -throw new InternalError ("bad curvelink [" + ystart + "=>" + yend + "] for " + curve); -}this.ytop = Math.min (this.ytop, ystart); -this.ybot = Math.max (this.ybot, yend); -return true; -}, "jssun.awt.geom.Curve,~N,~N,~N"); -Clazz.defineMethod (c$, "isEmpty", -function () { -return (this.ytop == this.ybot); -}); -Clazz.defineMethod (c$, "getCurve", -function () { -return this.curve; -}); -Clazz.defineMethod (c$, "getSubCurve", -function () { -if (this.ytop == this.curve.getYTop () && this.ybot == this.curve.getYBot ()) { -return this.curve.getWithDirection (this.etag); -}return this.curve.getSubCurve (this.ytop, this.ybot, this.etag); -}); -Clazz.defineMethod (c$, "getMoveto", -function () { -return new jssun.awt.geom.Order0 (this.getXTop (), this.getYTop ()); -}); -Clazz.defineMethod (c$, "getXTop", -function () { -return this.curve.XforY (this.ytop); -}); -Clazz.defineMethod (c$, "getYTop", -function () { -return this.ytop; -}); -Clazz.defineMethod (c$, "getXBot", -function () { -return this.curve.XforY (this.ybot); -}); -Clazz.defineMethod (c$, "getYBot", -function () { -return this.ybot; -}); -Clazz.defineMethod (c$, "getX", -function () { -return this.curve.XforY (this.ytop); -}); -Clazz.defineMethod (c$, "getEdgeTag", -function () { -return this.etag; -}); -Clazz.defineMethod (c$, "setNext", -function (link) { -this.next = link; -}, "jssun.awt.geom.CurveLink"); -Clazz.defineMethod (c$, "getNext", -function () { -return this.next; -}); -}); +Clazz.declarePackage ("jssun.awt.geom"); +Clazz.load (null, "jssun.awt.geom.CurveLink", ["java.lang.InternalError", "jssun.awt.geom.Order0"], function () { +c$ = Clazz.decorateAsClass (function () { +this.curve = null; +this.ytop = 0; +this.ybot = 0; +this.etag = 0; +this.next = null; +Clazz.instantialize (this, arguments); +}, jssun.awt.geom, "CurveLink"); +Clazz.makeConstructor (c$, +function (curve, ystart, yend, etag) { +this.curve = curve; +this.ytop = ystart; +this.ybot = yend; +this.etag = etag; +if (this.ytop < curve.getYTop () || this.ybot > curve.getYBot ()) { +throw new InternalError ("bad curvelink [" + this.ytop + "=>" + this.ybot + "] for " + curve); +}}, "jssun.awt.geom.Curve,~N,~N,~N"); +Clazz.defineMethod (c$, "absorb", +function (link) { +return this.absorb (link.curve, link.ytop, link.ybot, link.etag); +}, "jssun.awt.geom.CurveLink"); +Clazz.defineMethod (c$, "absorb", +function (curve, ystart, yend, etag) { +if (this.curve !== curve || this.etag != etag || this.ybot < ystart || this.ytop > yend) { +return false; +}if (ystart < curve.getYTop () || yend > curve.getYBot ()) { +throw new InternalError ("bad curvelink [" + ystart + "=>" + yend + "] for " + curve); +}this.ytop = Math.min (this.ytop, ystart); +this.ybot = Math.max (this.ybot, yend); +return true; +}, "jssun.awt.geom.Curve,~N,~N,~N"); +Clazz.defineMethod (c$, "isEmpty", +function () { +return (this.ytop == this.ybot); +}); +Clazz.defineMethod (c$, "getCurve", +function () { +return this.curve; +}); +Clazz.defineMethod (c$, "getSubCurve", +function () { +if (this.ytop == this.curve.getYTop () && this.ybot == this.curve.getYBot ()) { +return this.curve.getWithDirection (this.etag); +}return this.curve.getSubCurve (this.ytop, this.ybot, this.etag); +}); +Clazz.defineMethod (c$, "getMoveto", +function () { +return new jssun.awt.geom.Order0 (this.getXTop (), this.getYTop ()); +}); +Clazz.defineMethod (c$, "getXTop", +function () { +return this.curve.XforY (this.ytop); +}); +Clazz.defineMethod (c$, "getYTop", +function () { +return this.ytop; +}); +Clazz.defineMethod (c$, "getXBot", +function () { +return this.curve.XforY (this.ybot); +}); +Clazz.defineMethod (c$, "getYBot", +function () { +return this.ybot; +}); +Clazz.defineMethod (c$, "getX", +function () { +return this.curve.XforY (this.ytop); +}); +Clazz.defineMethod (c$, "getEdgeTag", +function () { +return this.etag; +}); +Clazz.defineMethod (c$, "setNext", +function (link) { +this.next = link; +}, "jssun.awt.geom.CurveLink"); +Clazz.defineMethod (c$, "getNext", +function () { +return this.next; +}); +});