X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2FCellRendererPane.js;fp=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2FCellRendererPane.js;h=8efb7bb00b36440263db7dede53a785c71410721;hp=ba353d07a8cae0a2eb1582360eb97a86ffa4445e;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/javax/swing/CellRendererPane.js b/site/swingjs/j2s/javax/swing/CellRendererPane.js index ba353d0..8efb7bb 100644 --- a/site/swingjs/j2s/javax/swing/CellRendererPane.js +++ b/site/swingjs/j2s/javax/swing/CellRendererPane.js @@ -1,56 +1,56 @@ -Clazz.declarePackage ("javax.swing"); -Clazz.load (["java.awt.Container"], "javax.swing.CellRendererPane", null, function () { -c$ = Clazz.declareType (javax.swing, "CellRendererPane", java.awt.Container); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, javax.swing.CellRendererPane); -this.setLayout (null); -this.setVisible (false); -}); -Clazz.overrideMethod (c$, "invalidate", -function () { -}); -Clazz.overrideMethod (c$, "paint", -function (g) { -}, "java.awt.Graphics"); -Clazz.overrideMethod (c$, "update", -function (g) { -}, "java.awt.Graphics"); -Clazz.overrideMethod (c$, "addImpl", -function (x, constraints, index) { -if (x.getParent () === this) { -return null; -} else { -return this.addImplSAEM (x, constraints, index); -}}, "java.awt.Component,~O,~N"); -Clazz.defineMethod (c$, "paintComponent", -function (g, c, p, x, y, w, h, shouldValidate) { -if (c == null) { -if (p != null) { -var oldColor = g.getColor (); -g.setColor (p.getBackground ()); -g.fillRect (x, y, w, h); -g.setColor (oldColor); -}return; -}if (c.getParent () !== this) { -this.add (c); -}c.setBounds (x, y, w, h); -if (shouldValidate) { -c.validate (); -}var cg = g.create4 (x, y, w, h); -try { -c.paint (cg); -} finally { -cg.dispose (); -} -c.setBounds (-w, -h, 0, 0); -}, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N,~B"); -Clazz.defineMethod (c$, "paintComponent", -function (g, c, p, x, y, w, h) { -this.paintComponent (g, c, p, x, y, w, h, false); -}, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N"); -Clazz.defineMethod (c$, "paintComponent", -function (g, c, p, r) { -this.paintComponent (g, c, p, r.x, r.y, r.width, r.height); -}, "java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle"); -}); +Clazz.declarePackage ("javax.swing"); +Clazz.load (["java.awt.Container"], "javax.swing.CellRendererPane", null, function () { +c$ = Clazz.declareType (javax.swing, "CellRendererPane", java.awt.Container); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, javax.swing.CellRendererPane); +this.setLayout (null); +this.setVisible (false); +}); +Clazz.overrideMethod (c$, "invalidate", +function () { +}); +Clazz.overrideMethod (c$, "paint", +function (g) { +}, "java.awt.Graphics"); +Clazz.overrideMethod (c$, "update", +function (g) { +}, "java.awt.Graphics"); +Clazz.overrideMethod (c$, "addImpl", +function (x, constraints, index) { +if (x.getParent () === this) { +return null; +} else { +return this.addImplSAEM (x, constraints, index); +}}, "java.awt.Component,~O,~N"); +Clazz.defineMethod (c$, "paintComponent", +function (g, c, p, x, y, w, h, shouldValidate) { +if (c == null) { +if (p != null) { +var oldColor = g.getColor (); +g.setColor (p.getBackground ()); +g.fillRect (x, y, w, h); +g.setColor (oldColor); +}return; +}if (c.getParent () !== this) { +this.add (c); +}c.setBounds (x, y, w, h); +if (shouldValidate) { +c.validate (); +}var cg = g.create4 (x, y, w, h); +try { +c.paint (cg); +} finally { +cg.dispose (); +} +c.setBounds (-w, -h, 0, 0); +}, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N,~B"); +Clazz.defineMethod (c$, "paintComponent", +function (g, c, p, x, y, w, h) { +this.paintComponent (g, c, p, x, y, w, h, false); +}, "java.awt.Graphics,java.awt.Component,java.awt.Container,~N,~N,~N,~N"); +Clazz.defineMethod (c$, "paintComponent", +function (g, c, p, r) { +this.paintComponent (g, c, p, r.x, r.y, r.width, r.height); +}, "java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle"); +});