Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jssun / awt / geom / CurveLink.js
index 9e57205..2c493be 100644 (file)
@@ -1,84 +1,84 @@
-Clazz.declarePackage ("jssun.awt.geom");\r
-Clazz.load (null, "jssun.awt.geom.CurveLink", ["java.lang.InternalError", "jssun.awt.geom.Order0"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.curve = null;\r
-this.ytop = 0;\r
-this.ybot = 0;\r
-this.etag = 0;\r
-this.next = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.awt.geom, "CurveLink");\r
-Clazz.makeConstructor (c$, \r
-function (curve, ystart, yend, etag) {\r
-this.curve = curve;\r
-this.ytop = ystart;\r
-this.ybot = yend;\r
-this.etag = etag;\r
-if (this.ytop < curve.getYTop () || this.ybot > curve.getYBot ()) {\r
-throw  new InternalError ("bad curvelink [" + this.ytop + "=>" + this.ybot + "] for " + curve);\r
-}}, "jssun.awt.geom.Curve,~N,~N,~N");\r
-Clazz.defineMethod (c$, "absorb", \r
-function (link) {\r
-return this.absorb (link.curve, link.ytop, link.ybot, link.etag);\r
-}, "jssun.awt.geom.CurveLink");\r
-Clazz.defineMethod (c$, "absorb", \r
-function (curve, ystart, yend, etag) {\r
-if (this.curve !== curve || this.etag != etag || this.ybot < ystart || this.ytop > yend) {\r
-return false;\r
-}if (ystart < curve.getYTop () || yend > curve.getYBot ()) {\r
-throw  new InternalError ("bad curvelink [" + ystart + "=>" + yend + "] for " + curve);\r
-}this.ytop = Math.min (this.ytop, ystart);\r
-this.ybot = Math.max (this.ybot, yend);\r
-return true;\r
-}, "jssun.awt.geom.Curve,~N,~N,~N");\r
-Clazz.defineMethod (c$, "isEmpty", \r
-function () {\r
-return (this.ytop == this.ybot);\r
-});\r
-Clazz.defineMethod (c$, "getCurve", \r
-function () {\r
-return this.curve;\r
-});\r
-Clazz.defineMethod (c$, "getSubCurve", \r
-function () {\r
-if (this.ytop == this.curve.getYTop () && this.ybot == this.curve.getYBot ()) {\r
-return this.curve.getWithDirection (this.etag);\r
-}return this.curve.getSubCurve (this.ytop, this.ybot, this.etag);\r
-});\r
-Clazz.defineMethod (c$, "getMoveto", \r
-function () {\r
-return  new jssun.awt.geom.Order0 (this.getXTop (), this.getYTop ());\r
-});\r
-Clazz.defineMethod (c$, "getXTop", \r
-function () {\r
-return this.curve.XforY (this.ytop);\r
-});\r
-Clazz.defineMethod (c$, "getYTop", \r
-function () {\r
-return this.ytop;\r
-});\r
-Clazz.defineMethod (c$, "getXBot", \r
-function () {\r
-return this.curve.XforY (this.ybot);\r
-});\r
-Clazz.defineMethod (c$, "getYBot", \r
-function () {\r
-return this.ybot;\r
-});\r
-Clazz.defineMethod (c$, "getX", \r
-function () {\r
-return this.curve.XforY (this.ytop);\r
-});\r
-Clazz.defineMethod (c$, "getEdgeTag", \r
-function () {\r
-return this.etag;\r
-});\r
-Clazz.defineMethod (c$, "setNext", \r
-function (link) {\r
-this.next = link;\r
-}, "jssun.awt.geom.CurveLink");\r
-Clazz.defineMethod (c$, "getNext", \r
-function () {\r
-return this.next;\r
-});\r
-});\r
+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;
+});
+});