home *** CD-ROM | disk | FTP | other *** search
- package teveo;
-
- import java.awt.Point;
- import java.awt.event.AdjustmentEvent;
- import java.awt.event.MouseAdapter;
- import java.awt.event.MouseEvent;
-
- final class CustomSlider$1 extends MouseAdapter {
- // $FF: synthetic field
- private final CustomSlider this$0;
-
- // $FF: synthetic method
- CustomSlider$1(CustomSlider var1) {
- this.this$0 = var1;
- }
-
- public void mousePressed(MouseEvent var1) {
- Point var2 = var1.getPoint();
- if (this.this$0.isInThumb(var2)) {
- CustomSlider.access$1(this.this$0, true);
- } else {
- int var3 = this.this$0.getOrientation();
- int var4 = 0;
- byte var5 = 0;
- if (var3 == 0) {
- if (CustomSlider.access$2(this.this$0).x < var2.x) {
- var4 = this.this$0.getValue() + this.this$0.getBlockIncrement();
- var5 = 4;
- } else {
- if (CustomSlider.access$2(this.this$0).x <= var2.x) {
- return;
- }
-
- var4 = this.this$0.getValue() - this.this$0.getBlockIncrement();
- var5 = 3;
- }
- } else if (var3 == 1) {
- if (CustomSlider.access$2(this.this$0).y < var2.y) {
- var4 = this.this$0.getValue() + this.this$0.getBlockIncrement();
- var5 = 4;
- } else {
- if (CustomSlider.access$2(this.this$0).y <= var2.y) {
- return;
- }
-
- var4 = this.this$0.getValue() - this.this$0.getBlockIncrement();
- var5 = 3;
- }
- }
-
- this.this$0.setValue(var4);
- if (CustomSlider.access$3(this.this$0) != null) {
- CustomSlider.access$3(this.this$0).adjustmentValueChanged(new AdjustmentEvent(this.this$0, 601, var5, this.this$0.getValue()));
- }
- }
-
- }
-
- public void mouseReleased(MouseEvent var1) {
- CustomSlider.access$1(this.this$0, false);
- }
- }
-