a23938c07248a453f32f8f80b3f6c7a2b11fb3e9.svn-base 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.geocities.com/kpdus/jad.html
  3. // Decompiler options: braces fieldsfirst space lnc
  4. package eVVM.apk.helper.basepicker;
  5. import java.util.Timer;
  6. import java.util.TimerTask;
  7. // Referenced classes of package com.qingchifan.view:
  8. // LoopView
  9. final class LoopTimerTask extends TimerTask {
  10. float a;
  11. final float b;
  12. final Timer timer;
  13. final LoopMsgView loopView;
  14. LoopTimerTask(LoopMsgView loopview, float f, Timer timer) {
  15. super();
  16. loopView = loopview;
  17. b = f;
  18. this.timer = timer;
  19. a = 2.147484E+09F;
  20. }
  21. public final void run() {
  22. if (a == 2.147484E+09F) {
  23. if (Math.abs(b) > 2000F) {
  24. if (b > 0.0F) {
  25. a = 2000F;
  26. } else {
  27. a = -2000F;
  28. }
  29. } else {
  30. a = b;
  31. }
  32. }
  33. if (Math.abs(a) >= 0.0F && Math.abs(a) <= 20F) {
  34. timer.cancel();
  35. loopView.handler.sendEmptyMessage(2000);
  36. return;
  37. }
  38. int i = (int) ((a * 10F) / 1000F);
  39. LoopMsgView loopview = loopView;
  40. loopview.totalScrollY = loopview.totalScrollY - i;
  41. if (!loopView.isLoop) {
  42. if (loopView.totalScrollY <= (int) ((float) (-loopView.positon) * (loopView.l * (float) loopView.h))) {
  43. a = 40F;
  44. loopView.totalScrollY = (int) ((float) (-loopView.positon) * (loopView.l * (float) loopView.h));
  45. } else if (loopView.totalScrollY >= (int) ((float) (loopView.arrayList.size() - 1 - loopView.positon) * (loopView.l * (float) loopView.h))) {
  46. loopView.totalScrollY = (int) ((float) (loopView.arrayList.size() - 1 - loopView.positon) * (loopView.l * (float) loopView.h));
  47. a = -40F;
  48. }
  49. }
  50. if (a < 0.0F) {
  51. a = a + 20F;
  52. } else {
  53. a = a - 20F;
  54. }
  55. loopView.handler.sendEmptyMessage(1000);
  56. }
  57. }