ScrollerCompat.java 3.41 KB
package android.support.v4.widget;

import android.content.Context;
import android.os.Build.VERSION;
import android.view.animation.Interpolator;
import android.widget.OverScroller;

public final class ScrollerCompat
{
  OverScroller a;
  private final boolean b;
  
  private ScrollerCompat(boolean paramBoolean, Context paramContext, Interpolator paramInterpolator)
  {
    this.b = paramBoolean;
    if (paramInterpolator != null) {}
    for (paramContext = new OverScroller(paramContext, paramInterpolator);; paramContext = new OverScroller(paramContext))
    {
      this.a = paramContext;
      return;
    }
  }
  
  public static ScrollerCompat create(Context paramContext)
  {
    return create(paramContext, null);
  }
  
  public static ScrollerCompat create(Context paramContext, Interpolator paramInterpolator)
  {
    if (Build.VERSION.SDK_INT >= 14) {}
    for (boolean bool = true;; bool = false) {
      return new ScrollerCompat(bool, paramContext, paramInterpolator);
    }
  }
  
  public final void abortAnimation()
  {
    this.a.abortAnimation();
  }
  
  public final boolean computeScrollOffset()
  {
    return this.a.computeScrollOffset();
  }
  
  public final void fling(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8)
  {
    this.a.fling(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, paramInt7, paramInt8);
  }
  
  public final void fling(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, int paramInt9, int paramInt10)
  {
    this.a.fling(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, paramInt7, paramInt8, paramInt9, paramInt10);
  }
  
  public final float getCurrVelocity()
  {
    if (this.b) {
      return ((OverScroller)this.a).getCurrVelocity();
    }
    return 0.0F;
  }
  
  public final int getCurrX()
  {
    return this.a.getCurrX();
  }
  
  public final int getCurrY()
  {
    return this.a.getCurrY();
  }
  
  public final int getFinalX()
  {
    return this.a.getFinalX();
  }
  
  public final int getFinalY()
  {
    return this.a.getFinalY();
  }
  
  public final boolean isFinished()
  {
    return this.a.isFinished();
  }
  
  public final boolean isOverScrolled()
  {
    return this.a.isOverScrolled();
  }
  
  public final void notifyHorizontalEdgeReached(int paramInt1, int paramInt2, int paramInt3)
  {
    this.a.notifyHorizontalEdgeReached(paramInt1, paramInt2, paramInt3);
  }
  
  public final void notifyVerticalEdgeReached(int paramInt1, int paramInt2, int paramInt3)
  {
    this.a.notifyVerticalEdgeReached(paramInt1, paramInt2, paramInt3);
  }
  
  public final boolean springBack(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  {
    return this.a.springBack(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6);
  }
  
  public final void startScroll(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    this.a.startScroll(paramInt1, paramInt2, paramInt3, paramInt4);
  }
  
  public final void startScroll(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5)
  {
    this.a.startScroll(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/widget/ScrollerCompat.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */