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