home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / Autoscroller$AutoScrollTimerAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.5 KB  |  27 lines

  1. package com.sun.java.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6. import java.awt.event.MouseEvent;
  7.  
  8. class Autoscroller$AutoScrollTimerAction implements ActionListener {
  9.    // $FF: synthetic field
  10.    private final Autoscroller this$0;
  11.  
  12.    public void actionPerformed(ActionEvent var1) {
  13.       if (this.this$0.component.isShowing() && this.this$0.event != null) {
  14.          Point var2 = this.this$0.component.getLocationOnScreen();
  15.          MouseEvent var3 = new MouseEvent(this.this$0.component, this.this$0.event.getID(), this.this$0.event.getWhen(), this.this$0.event.getModifiers(), this.this$0.event.getX() - var2.x, this.this$0.event.getY() - var2.y, this.this$0.event.getClickCount(), this.this$0.event.isPopupTrigger());
  16.          this.this$0.component.superProcessMouseMotionEvent(var3);
  17.       } else {
  18.          this.this$0.stop();
  19.       }
  20.    }
  21.  
  22.    Autoscroller$AutoScrollTimerAction(Autoscroller var1) {
  23.       this.this$0 = var1;
  24.       this.this$0 = var1;
  25.    }
  26. }
  27.