c6ff296a0da94075ba9275143043c7d7c5a2a184
[jalviewjs.git] / site / j2s / jssun / awt / geom / Order0.js
1 Clazz.declarePackage ("jssun.awt.geom");
2 Clazz.load (["jssun.awt.geom.Curve"], "jssun.awt.geom.Order0", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.x = 0;
5 this.y = 0;
6 Clazz.instantialize (this, arguments);
7 }, jssun.awt.geom, "Order0", jssun.awt.geom.Curve);
8 Clazz.makeConstructor (c$, 
9 function (x, y) {
10 Clazz.superConstructor (this, jssun.awt.geom.Order0, [1]);
11 this.x = x;
12 this.y = y;
13 }, "~N,~N");
14 Clazz.overrideMethod (c$, "getOrder", 
15 function () {
16 return 0;
17 });
18 Clazz.overrideMethod (c$, "getXTop", 
19 function () {
20 return this.x;
21 });
22 Clazz.overrideMethod (c$, "getYTop", 
23 function () {
24 return this.y;
25 });
26 Clazz.overrideMethod (c$, "getXBot", 
27 function () {
28 return this.x;
29 });
30 Clazz.overrideMethod (c$, "getYBot", 
31 function () {
32 return this.y;
33 });
34 Clazz.overrideMethod (c$, "getXMin", 
35 function () {
36 return this.x;
37 });
38 Clazz.overrideMethod (c$, "getXMax", 
39 function () {
40 return this.x;
41 });
42 Clazz.overrideMethod (c$, "getX0", 
43 function () {
44 return this.x;
45 });
46 Clazz.overrideMethod (c$, "getY0", 
47 function () {
48 return this.y;
49 });
50 Clazz.overrideMethod (c$, "getX1", 
51 function () {
52 return this.x;
53 });
54 Clazz.overrideMethod (c$, "getY1", 
55 function () {
56 return this.y;
57 });
58 Clazz.overrideMethod (c$, "XforY", 
59 function (y) {
60 return y;
61 }, "~N");
62 Clazz.overrideMethod (c$, "TforY", 
63 function (y) {
64 return 0;
65 }, "~N");
66 Clazz.overrideMethod (c$, "XforT", 
67 function (t) {
68 return this.x;
69 }, "~N");
70 Clazz.overrideMethod (c$, "YforT", 
71 function (t) {
72 return this.y;
73 }, "~N");
74 Clazz.overrideMethod (c$, "dXforT", 
75 function (t, deriv) {
76 return 0;
77 }, "~N,~N");
78 Clazz.overrideMethod (c$, "dYforT", 
79 function (t, deriv) {
80 return 0;
81 }, "~N,~N");
82 Clazz.overrideMethod (c$, "nextVertical", 
83 function (t0, t1) {
84 return t1;
85 }, "~N,~N");
86 Clazz.overrideMethod (c$, "crossingsFor", 
87 function (x, y) {
88 return 0;
89 }, "~N,~N");
90 Clazz.overrideMethod (c$, "accumulateCrossings", 
91 function (c) {
92 return (this.x > c.getXLo () && this.x < c.getXHi () && this.y > c.getYLo () && this.y < c.getYHi ());
93 }, "jssun.awt.geom.Crossings");
94 Clazz.overrideMethod (c$, "enlarge", 
95 function (r) {
96 r.add (this.x, this.y);
97 }, "java.awt.geom.Rectangle2D");
98 Clazz.defineMethod (c$, "getSubCurve", 
99 function (ystart, yend, dir) {
100 return this;
101 }, "~N,~N,~N");
102 Clazz.overrideMethod (c$, "getReversedCurve", 
103 function () {
104 return this;
105 });
106 Clazz.overrideMethod (c$, "getSegment", 
107 function (coords) {
108 coords[0] = this.x;
109 coords[1] = this.y;
110 return 0;
111 }, "~A");
112 });