.class public Animator2Run

.super joos/lib/JoosRunnable

.field private protected myApplet LAnimator2;
.field private protected myImages Ljava/util/Vector;
.field private protected myTracker Ljava/awt/MediaTracker;
.field private protected myContext Ljava/awt/Graphics;

.method public <init>(LAnimator2;Ljava/util/Vector;Ljava/awt/MediaTracker;Ljava/awt/Graphics;)V
  .limit locals 5
  .limit stack 3
  aload_0
  invokenonvirtual joos/lib/JoosRunnable/<init>()V
  aload_0
  aload_1
  putfield Animator2Run/myApplet LAnimator2;
  aload_0
  aload_2
  putfield Animator2Run/myImages Ljava/util/Vector;
  aload_0
  aload_3
  putfield Animator2Run/myTracker Ljava/awt/MediaTracker;
  aload_0
  aload 4
  putfield Animator2Run/myContext Ljava/awt/Graphics;
  return
.end method

.method public run()V
  .limit locals 4
  .limit stack 6
  new joos/lib/JoosConstants
  dup
  invokenonvirtual joos/lib/JoosConstants/<init>()V
  astore_2
  new joos/lib/JoosThread
  dup
  aconst_null
  invokenonvirtual joos/lib/JoosThread/<init>(Ljava/lang/Thread;)V
  astore_3
  iconst_1
  istore_1
  start_0:
  iconst_1
  ifeq stop_1
  aload_0
  getfield Animator2Run/myTracker Ljava/awt/MediaTracker;
  iload_1
  iconst_1
  invokevirtual java/awt/MediaTracker/checkID(IZ)Z
  ifeq else_2
  aload_0
  getfield Animator2Run/myContext Ljava/awt/Graphics;
  iconst_0
  iconst_0
  ldc 160
  ldc 80
  invokevirtual java/awt/Graphics/fillRect(IIII)V
  aload_0
  getfield Animator2Run/myContext Ljava/awt/Graphics;
  aload_0
  getfield Animator2Run/myImages Ljava/util/Vector;
  iload_1
  invokevirtual java/util/Vector/elementAt(I)Ljava/lang/Object;
  checkcast java/awt/Image
  iconst_0
  iconst_0
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  invokevirtual java/awt/Graphics/drawImage(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z
  pop
  iinc 1 1
  iload_1
  aload_0
  getfield Animator2Run/myImages Ljava/util/Vector;
  invokevirtual java/util/Vector/size()I
  irem
  istore_1
  goto stop_3
  else_2:
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  new java/awt/Event
  dup
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  aload_2
  invokevirtual joos/lib/JoosConstants/MOUSE_ENTER()I
  ldc ""
  invokenonvirtual java/awt/Event/<init>(Ljava/lang/Object;ILjava/lang/Object;)V
  invokevirtual java/awt/Component/postEvent(Ljava/awt/Event;)Z
  pop
  stop_3:
  aload_3
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  invokevirtual Animator2/getSleepTime()I
  invokevirtual joos/lib/JoosThread/sleep(I)Z
  ifeq stop_4
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  ldc "Animation interrupted."
  invokevirtual java/applet/Applet/showStatus(Ljava/lang/String;)V
  stop_4:
  aload_0
  getfield Animator2Run/myApplet LAnimator2;
  invokevirtual java/awt/Component/repaint()V
  goto start_0
  stop_1:
  return
.end method

