home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 August / maximum-cd-2000-08.iso / TeVeoLive / data1.cab / Program_Files / slider.jar / teveo / CustomSlider$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-06  |  1.6 KB  |  63 lines

  1. package teveo;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.AdjustmentEvent;
  5. import java.awt.event.MouseAdapter;
  6. import java.awt.event.MouseEvent;
  7.  
  8. final class CustomSlider$1 extends MouseAdapter {
  9.    // $FF: synthetic field
  10.    private final CustomSlider this$0;
  11.  
  12.    // $FF: synthetic method
  13.    CustomSlider$1(CustomSlider var1) {
  14.       this.this$0 = var1;
  15.    }
  16.  
  17.    public void mousePressed(MouseEvent var1) {
  18.       Point var2 = var1.getPoint();
  19.       if (this.this$0.isInThumb(var2)) {
  20.          CustomSlider.access$1(this.this$0, true);
  21.       } else {
  22.          int var3 = this.this$0.getOrientation();
  23.          int var4 = 0;
  24.          byte var5 = 0;
  25.          if (var3 == 0) {
  26.             if (CustomSlider.access$2(this.this$0).x < var2.x) {
  27.                var4 = this.this$0.getValue() + this.this$0.getBlockIncrement();
  28.                var5 = 4;
  29.             } else {
  30.                if (CustomSlider.access$2(this.this$0).x <= var2.x) {
  31.                   return;
  32.                }
  33.  
  34.                var4 = this.this$0.getValue() - this.this$0.getBlockIncrement();
  35.                var5 = 3;
  36.             }
  37.          } else if (var3 == 1) {
  38.             if (CustomSlider.access$2(this.this$0).y < var2.y) {
  39.                var4 = this.this$0.getValue() + this.this$0.getBlockIncrement();
  40.                var5 = 4;
  41.             } else {
  42.                if (CustomSlider.access$2(this.this$0).y <= var2.y) {
  43.                   return;
  44.                }
  45.  
  46.                var4 = this.this$0.getValue() - this.this$0.getBlockIncrement();
  47.                var5 = 3;
  48.             }
  49.          }
  50.  
  51.          this.this$0.setValue(var4);
  52.          if (CustomSlider.access$3(this.this$0) != null) {
  53.             CustomSlider.access$3(this.this$0).adjustmentValueChanged(new AdjustmentEvent(this.this$0, 601, var5, this.this$0.getValue()));
  54.          }
  55.       }
  56.  
  57.    }
  58.  
  59.    public void mouseReleased(MouseEvent var1) {
  60.       CustomSlider.access$1(this.this$0, false);
  61.    }
  62. }
  63.