JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / javajs / awt / Dimension.js
1 Clazz.declarePackage ("javajs.awt");\r
2 c$ = Clazz.decorateAsClass (function () {\r
3 this.width = 0;\r
4 this.height = 0;\r
5 Clazz.instantialize (this, arguments);\r
6 }, javajs.awt, "Dimension");\r
7 Clazz.makeConstructor (c$, \r
8 function (w, h) {\r
9 this.set (w, h);\r
10 }, "~N,~N");\r
11 Clazz.defineMethod (c$, "set", \r
12 function (w, h) {\r
13 this.width = w;\r
14 this.height = h;\r
15 return this;\r
16 }, "~N,~N");\r