11faed05c9dce30dca5fe2b34223d666c3a1eea4
[jalviewjs.git] / site / j2s / javax / swing / plaf / IconUIResource.js
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 () {
4 this.delegate = null;
5 Clazz.instantialize (this, arguments);
6 }, javax.swing.plaf, "IconUIResource", null, [javax.swing.Icon, javax.swing.plaf.UIResource]);
7 Clazz.makeConstructor (c$, 
8 function (delegate) {
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", 
18 function () {
19 return this.delegate.getIconWidth ();
20 });
21 Clazz.defineMethod (c$, "getIconHeight", 
22 function () {
23 return this.delegate.getIconHeight ();
24 });
25 });