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
19 return this.delegate.getIconWidth ();
\r
21 Clazz.defineMethod (c$, "getIconHeight",
\r
23 return this.delegate.getIconHeight ();
\r