home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.ImageIcon;
- import com.sun.java.swing.JComponent;
- import java.awt.Component;
- import java.awt.Graphics;
-
- class ToolTipPanel$Easter extends JComponent {
- // $FF: synthetic field
- private final ToolTipPanel this$0;
- ToolTipPanel$AnimationThread animator;
- public boolean running;
- private ImageIcon amy;
- private ImageIcon jag;
- private ImageIcon jeff;
- private ImageIcon tim;
- private ImageIcon tom;
- private ImageIcon rick;
- private ImageIcon hans1;
- private ImageIcon hans2;
- private ImageIcon ges;
- private ImageIcon phil;
- private ImageIcon arnaud;
- private ImageIcon rich;
- int tmpScale;
- // $FF: renamed from: x1 double
- private double field_0;
- // $FF: renamed from: y1 double
- private double field_1;
- // $FF: renamed from: x2 double
- private double field_2;
- // $FF: renamed from: y2 double
- private double field_3;
- private int xAmy;
- private int xJag;
- private int xJeff;
- private int xTim;
- private int xTom;
- private int xRick;
- private int xHans;
- private int xGes;
- private int xPhil;
- private int xArnaud;
- private int xRich;
- private int yAmy;
- private int yJag;
- private int yJeff;
- private int yTim;
- private int yTom;
- private int yRick;
- private int yHans;
- private int yGes;
- private int yPhil;
- private int yArnaud;
- private int yRich;
-
- public ToolTipPanel$Easter(ToolTipPanel var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- this.running = false;
- this.amy = SwingSet.sharedInstance().loadImageIcon("images/people/amy.gif", "Amy Fowler");
- this.jag = SwingSet.sharedInstance().loadImageIcon("images/people/jag.gif", "James Gosling");
- this.jeff = SwingSet.sharedInstance().loadImageIcon("images/people/jeff.gif", "Jeff Dinkins");
- this.tim = SwingSet.sharedInstance().loadImageIcon("images/people/tim.gif", "Tim Prinzing");
- this.tom = SwingSet.sharedInstance().loadImageIcon("images/people/tom.gif", "Tom Ball");
- this.rick = SwingSet.sharedInstance().loadImageIcon("images/people/rick.gif", "Rick Levenson");
- this.hans1 = SwingSet.sharedInstance().loadImageIcon("images/people/mathew.gif", "Mathew Muller");
- this.hans2 = SwingSet.sharedInstance().loadImageIcon("images/people/pl.gif", "Project Lead");
- this.ges = SwingSet.sharedInstance().loadImageIcon("images/people/ges.gif", "Georges Saab");
- this.phil = SwingSet.sharedInstance().loadImageIcon("images/people/phil.gif", "Phillip Milne");
- this.arnaud = SwingSet.sharedInstance().loadImageIcon("images/people/nathan.gif", "Arnaud Webber");
- this.rich = SwingSet.sharedInstance().loadImageIcon("images/people/rich.gif", "Rich Schiavi");
- }
-
- // $FF: renamed from: go () void
- public void method_0() {
- this.animator = new ToolTipPanel$AnimationThread(this.this$0, this);
- this.animator.setPriority(1);
- this.animator.start();
- }
-
- public void paint(Graphics var1) {
- var1.setColor(((Component)this).getParent().getBackground());
- var1.fillRect(0, 0, ((JComponent)this).getWidth(), ((JComponent)this).getHeight());
- if (this.running) {
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)0.0F)) * (double)10.0F);
- double var2 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)10.0F)) * (double)10.0F);
- double var4 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)20.0F)) * (double)10.0F);
- double var6 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)30.0F)) * (double)10.0F);
- double var8 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)40.0F)) * (double)11.0F);
- double var10 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)50.0F)) * (double)11.0F);
- double var12 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_2 + (double)60.0F)) * (double)11.0F);
- double var14 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_2 + (double)70.0F)) * (double)10.0F);
- double var16 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)10.0F)) * (double)10.0F);
- double var18 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)90.0F)) * (double)10.0F);
- double var20 = (double)this.tmpScale / (double)10.0F;
- this.tmpScale = (int)(Math.abs(Math.sin(this.field_0 + (double)80.0F)) * (double)10.0F);
- double var22 = (double)this.tmpScale / (double)10.0F;
- this.field_0 += 0.1;
- this.field_2 += 0.065;
- int var24 = (int)((double)((JComponent)this).getWidth() / (double)2.0F * 0.8);
- this.xTom = (int)(Math.sin(this.field_0 + (double)0.0F) * (double)var24) + var24;
- this.xAmy = (int)(Math.sin(this.field_0 + (double)10.0F) * (double)var24) + var24;
- this.xGes = (int)(Math.sin(this.field_2 + (double)20.0F) * (double)var24) + var24;
- this.xRick = (int)(Math.sin(this.field_0 + (double)30.0F) * (double)var24) + var24;
- this.xJeff = (int)(Math.sin(this.field_0 + (double)40.0F) * (double)var24) + var24;
- this.xPhil = (int)(Math.sin(this.field_0 + (double)51.0F) * (double)var24) + var24;
- this.xTim = (int)(Math.sin(this.field_0 + (double)60.0F) * (double)var24) + var24;
- this.xRich = (int)(Math.sin(this.field_0 + (double)65.0F) * (double)var24) + var24;
- this.xArnaud = (int)(Math.sin(this.field_0 + (double)70.0F) * (double)var24) + var24;
- this.xHans = (int)(Math.sin(this.field_2 + (double)85.0F) * (double)var24) + var24;
- this.xJag = (int)(Math.sin(this.field_0 + (double)90.0F) * (double)var24) + var24;
- this.field_1 += 0.1;
- this.field_3 += 0.05;
- int var25 = (int)((double)((JComponent)this).getHeight() / (double)2.0F * 0.6);
- int var26 = (int)((double)((JComponent)this).getHeight() / (double)2.0F * 0.45);
- int var27 = (int)((double)((JComponent)this).getHeight() / (double)2.0F * 0.2);
- this.yTom = (int)(Math.sin(this.field_1 + (double)0.0F) * (double)var25) + var25;
- this.yTim = (int)(Math.sin(this.field_1 + (double)10.0F) * (double)var25) + var25;
- this.yRich = (int)(Math.sin(this.field_1 + (double)15.0F) * (double)var25) + var25;
- this.yJeff = (int)(Math.sin(this.field_1 + (double)20.0F) * (double)var26) + var25;
- this.yHans = (int)(Math.sin(this.field_3 + (double)33.0F) * (double)var25) + var25;
- this.yPhil = (int)(Math.sin(this.field_1 + (double)45.0F) * (double)var27) + var25;
- this.yAmy = (int)(Math.sin(this.field_1 + (double)50.0F) * (double)var25) + var25;
- this.yArnaud = (int)(Math.sin(this.field_1 + (double)60.0F) * (double)var25) + var25;
- this.yGes = (int)(Math.sin(this.field_3 + (double)70.0F) * (double)var25) + var25;
- this.yRick = (int)(Math.sin(this.field_1 + (double)80.0F) * (double)var26) + var25;
- this.yJag = (int)(Math.sin(this.field_1 + (double)90.0F) * (double)var25) + var25;
- if (this.field_0 > (double)30.0F) {
- this.squish(var1, this.arnaud, this.xArnaud, this.yArnaud, var20);
- }
-
- if (this.field_0 > (double)15.0F) {
- this.squish(var1, this.phil, this.xPhil, this.yPhil, var18);
- }
-
- if (this.field_0 > (double)9.0F) {
- this.squish(var1, this.rick, this.xRick, this.yRick, var12);
- }
-
- if (this.field_0 > (double)27.0F) {
- this.squish(var1, this.tim, this.xTim, this.yTim, var4);
- }
-
- if (this.field_0 > (double)12.0F) {
- this.squish(var1, this.tom, this.xTom, this.yTom, var6);
- }
-
- if (this.field_0 > (double)33.0F) {
- if (var14 > 0.65) {
- this.squish(var1, this.hans1, this.xHans, this.yHans, var14);
- } else {
- this.squish(var1, this.hans2, this.xHans, this.yHans, var14);
- }
- }
-
- if (this.field_0 > (double)21.0F) {
- this.squish(var1, this.amy, this.xAmy, this.yAmy, var10);
- }
-
- if (this.field_0 > (double)6.0F) {
- this.squish(var1, this.jag, this.xJag, this.yTom, var8);
- }
-
- this.squish(var1, this.jeff, this.xJeff, this.yJeff, var2);
- if (this.field_0 > (double)3.0F) {
- this.squish(var1, this.ges, this.xGes, this.yGes, var16);
- }
-
- if (this.field_0 > (double)18.0F) {
- this.squish(var1, this.rich, this.xRich, this.yRich, var22);
- }
-
- }
- }
-
- public void squish(Graphics var1, ImageIcon var2, int var3, int var4, double var5) {
- if (((Component)this).isVisible()) {
- var1.drawImage(var2.getImage(), var3, var4, (int)((double)var2.getIconWidth() * var5), (int)((double)var2.getIconHeight() * var5), this);
- }
-
- }
- }
-