da94cf0a066b7a323303378e6e8708da680fde44
[jalviewjs.git] / site / j2s / javax / swing / plaf / IconUIResource.js
1 Clazz.declarePackage ("javax.swing.plaf");\r
2 Clazz.load (["javax.swing.Icon", "javax.swing.plaf.UIResource"], "javax.swing.plaf.IconUIResource", ["java.lang.IllegalArgumentException"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.delegate = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, javax.swing.plaf, "IconUIResource", null, [javax.swing.Icon, javax.swing.plaf.UIResource]);\r
7 Clazz.makeConstructor (c$, \r
8 function (delegate) {\r
9 if (delegate == null) {\r
10 throw  new IllegalArgumentException ("null delegate icon argument");\r
11 }this.delegate = delegate;\r
12 }, "javax.swing.Icon");\r
13 Clazz.defineMethod (c$, "paintIcon", \r
14 function (c, g, x, y) {\r
15 this.delegate.paintIcon (c, g, x, y);\r
16 }, "java.awt.Component,java.awt.Graphics,~N,~N");\r
17 Clazz.defineMethod (c$, "getIconWidth", \r
18 function () {\r
19 return this.delegate.getIconWidth ();\r
20 });\r
21 Clazz.defineMethod (c$, "getIconHeight", \r
22 function () {\r
23 return this.delegate.getIconHeight ();\r
24 });\r
25 });\r