X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjssun%2Fawt%2Fgeom%2FOrder0.js;fp=site%2Fj2s%2Fjssun%2Fawt%2Fgeom%2FOrder0.js;h=c6ff296a0da94075ba9275143043c7d7c5a2a184;hp=118d703ae56239b0c5c349ace8857ed0eb01ccac;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jssun/awt/geom/Order0.js b/site/j2s/jssun/awt/geom/Order0.js index 118d703..c6ff296 100644 --- a/site/j2s/jssun/awt/geom/Order0.js +++ b/site/j2s/jssun/awt/geom/Order0.js @@ -1,112 +1,112 @@ -Clazz.declarePackage ("jssun.awt.geom"); -Clazz.load (["jssun.awt.geom.Curve"], "jssun.awt.geom.Order0", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.x = 0; -this.y = 0; -Clazz.instantialize (this, arguments); -}, jssun.awt.geom, "Order0", jssun.awt.geom.Curve); -Clazz.makeConstructor (c$, -function (x, y) { -Clazz.superConstructor (this, jssun.awt.geom.Order0, [1]); -this.x = x; -this.y = y; -}, "~N,~N"); -Clazz.overrideMethod (c$, "getOrder", -function () { -return 0; -}); -Clazz.overrideMethod (c$, "getXTop", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getYTop", -function () { -return this.y; -}); -Clazz.overrideMethod (c$, "getXBot", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getYBot", -function () { -return this.y; -}); -Clazz.overrideMethod (c$, "getXMin", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getXMax", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getX0", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getY0", -function () { -return this.y; -}); -Clazz.overrideMethod (c$, "getX1", -function () { -return this.x; -}); -Clazz.overrideMethod (c$, "getY1", -function () { -return this.y; -}); -Clazz.overrideMethod (c$, "XforY", -function (y) { -return y; -}, "~N"); -Clazz.overrideMethod (c$, "TforY", -function (y) { -return 0; -}, "~N"); -Clazz.overrideMethod (c$, "XforT", -function (t) { -return this.x; -}, "~N"); -Clazz.overrideMethod (c$, "YforT", -function (t) { -return this.y; -}, "~N"); -Clazz.overrideMethod (c$, "dXforT", -function (t, deriv) { -return 0; -}, "~N,~N"); -Clazz.overrideMethod (c$, "dYforT", -function (t, deriv) { -return 0; -}, "~N,~N"); -Clazz.overrideMethod (c$, "nextVertical", -function (t0, t1) { -return t1; -}, "~N,~N"); -Clazz.overrideMethod (c$, "crossingsFor", -function (x, y) { -return 0; -}, "~N,~N"); -Clazz.overrideMethod (c$, "accumulateCrossings", -function (c) { -return (this.x > c.getXLo () && this.x < c.getXHi () && this.y > c.getYLo () && this.y < c.getYHi ()); -}, "jssun.awt.geom.Crossings"); -Clazz.overrideMethod (c$, "enlarge", -function (r) { -r.add (this.x, this.y); -}, "java.awt.geom.Rectangle2D"); -Clazz.defineMethod (c$, "getSubCurve", -function (ystart, yend, dir) { -return this; -}, "~N,~N,~N"); -Clazz.overrideMethod (c$, "getReversedCurve", -function () { -return this; -}); -Clazz.overrideMethod (c$, "getSegment", -function (coords) { -coords[0] = this.x; -coords[1] = this.y; -return 0; -}, "~A"); -}); +Clazz.declarePackage ("jssun.awt.geom"); +Clazz.load (["jssun.awt.geom.Curve"], "jssun.awt.geom.Order0", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.x = 0; +this.y = 0; +Clazz.instantialize (this, arguments); +}, jssun.awt.geom, "Order0", jssun.awt.geom.Curve); +Clazz.makeConstructor (c$, +function (x, y) { +Clazz.superConstructor (this, jssun.awt.geom.Order0, [1]); +this.x = x; +this.y = y; +}, "~N,~N"); +Clazz.overrideMethod (c$, "getOrder", +function () { +return 0; +}); +Clazz.overrideMethod (c$, "getXTop", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getYTop", +function () { +return this.y; +}); +Clazz.overrideMethod (c$, "getXBot", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getYBot", +function () { +return this.y; +}); +Clazz.overrideMethod (c$, "getXMin", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getXMax", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getX0", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getY0", +function () { +return this.y; +}); +Clazz.overrideMethod (c$, "getX1", +function () { +return this.x; +}); +Clazz.overrideMethod (c$, "getY1", +function () { +return this.y; +}); +Clazz.overrideMethod (c$, "XforY", +function (y) { +return y; +}, "~N"); +Clazz.overrideMethod (c$, "TforY", +function (y) { +return 0; +}, "~N"); +Clazz.overrideMethod (c$, "XforT", +function (t) { +return this.x; +}, "~N"); +Clazz.overrideMethod (c$, "YforT", +function (t) { +return this.y; +}, "~N"); +Clazz.overrideMethod (c$, "dXforT", +function (t, deriv) { +return 0; +}, "~N,~N"); +Clazz.overrideMethod (c$, "dYforT", +function (t, deriv) { +return 0; +}, "~N,~N"); +Clazz.overrideMethod (c$, "nextVertical", +function (t0, t1) { +return t1; +}, "~N,~N"); +Clazz.overrideMethod (c$, "crossingsFor", +function (x, y) { +return 0; +}, "~N,~N"); +Clazz.overrideMethod (c$, "accumulateCrossings", +function (c) { +return (this.x > c.getXLo () && this.x < c.getXHi () && this.y > c.getYLo () && this.y < c.getYHi ()); +}, "jssun.awt.geom.Crossings"); +Clazz.overrideMethod (c$, "enlarge", +function (r) { +r.add (this.x, this.y); +}, "java.awt.geom.Rectangle2D"); +Clazz.defineMethod (c$, "getSubCurve", +function (ystart, yend, dir) { +return this; +}, "~N,~N,~N"); +Clazz.overrideMethod (c$, "getReversedCurve", +function () { +return this; +}); +Clazz.overrideMethod (c$, "getSegment", +function (coords) { +coords[0] = this.x; +coords[1] = this.y; +return 0; +}, "~A"); +});