a.smali
.class public Ly2/a;
.super Lcom/github/mikephil/charting/listener/ChartTouchListener;
.source "BarLineChartTouchListener.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/github/mikephil/charting/listener/ChartTouchListener<",
"Lr2/a<",
"+",
"Lt2/d<",
"+",
"Lx2/b<",
"+",
"Lt2/i;",
">;>;>;>;"
}
.end annotation
# instance fields
.field public f:Landroid/graphics/Matrix;
.field public g:Landroid/graphics/Matrix;
.field public h:Lb3/e;
.field public i:Lb3/e;
.field public j:F
.field public k:F
.field public l:F
.field public m:Lx2/d;
.field public n:Landroid/view/VelocityTracker;
.field public o:J
.field public p:Lb3/e;
.field public q:Lb3/e;
.field public r:F
.field public s:F
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lr2/a;Landroid/graphics/Matrix;F)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lr2/a<",
"+",
"Lt2/d<",
"+",
"Lx2/b<",
"+",
"Lt2/i;",
">;>;>;",
"Landroid/graphics/Matrix;",
"F)V"
}
.end annotation
invoke-direct {p0, p1}, Lcom/github/mikephil/charting/listener/ChartTouchListener;-><init>(Lr2/b;)V
new-instance p1, Landroid/graphics/Matrix;
invoke-direct {p1}, Landroid/graphics/Matrix;-><init>()V
iput-object p1, p0, Ly2/a;->f:Landroid/graphics/Matrix;
new-instance p1, Landroid/graphics/Matrix;
invoke-direct {p1}, Landroid/graphics/Matrix;-><init>()V
iput-object p1, p0, Ly2/a;->g:Landroid/graphics/Matrix;
const/4 p1, 0x0
invoke-static {p1, p1}, Lb3/e;->a(FF)Lb3/e;
move-result-object v0
iput-object v0, p0, Ly2/a;->h:Lb3/e;
invoke-static {p1, p1}, Lb3/e;->a(FF)Lb3/e;
move-result-object v0
iput-object v0, p0, Ly2/a;->i:Lb3/e;
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Ly2/a;->j:F
iput v0, p0, Ly2/a;->k:F
iput v0, p0, Ly2/a;->l:F
const-wide/16 v0, 0x0
iput-wide v0, p0, Ly2/a;->o:J
invoke-static {p1, p1}, Lb3/e;->a(FF)Lb3/e;
move-result-object v0
iput-object v0, p0, Ly2/a;->p:Lb3/e;
invoke-static {p1, p1}, Lb3/e;->a(FF)Lb3/e;
move-result-object p1
iput-object p1, p0, Ly2/a;->q:Lb3/e;
iput-object p2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
invoke-static {p3}, Lb3/i;->a(F)F
move-result p1
iput p1, p0, Ly2/a;->r:F
const/high16 p1, 0x40600000 # 3.5f
invoke-static {p1}, Lb3/i;->a(F)F
move-result p1
iput p1, p0, Ly2/a;->s:F
return-void
.end method
.method public static a(Lb3/e;Landroid/view/MotionEvent;)V
.registers 6
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F
move-result v1
const/4 v2, 0x1
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
move-result v3
add-float/2addr v1, v3
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
move-result p1
add-float/2addr v0, p1
const/high16 p1, 0x40000000 # 2.0f
div-float/2addr v1, p1
iput v1, p0, Lb3/e;->c:F
div-float/2addr v0, p1
iput v0, p0, Lb3/e;->d:F
return-void
.end method
.method public static f(Landroid/view/MotionEvent;)F
.registers 3
const/4 v0, 0x0
invoke-virtual {p0, v0}, Landroid/view/MotionEvent;->getX(I)F
move-result v0
const/4 v1, 0x1
invoke-virtual {p0, v1}, Landroid/view/MotionEvent;->getX(I)F
move-result p0
sub-float/2addr v0, p0
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result p0
return p0
.end method
.method public static g(Landroid/view/MotionEvent;)F
.registers 3
const/4 v0, 0x0
invoke-virtual {p0, v0}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
const/4 v1, 0x1
invoke-virtual {p0, v1}, Landroid/view/MotionEvent;->getY(I)F
move-result p0
sub-float/2addr v0, p0
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result p0
return p0
.end method
.method public static h(Landroid/view/MotionEvent;)F
.registers 5
const/4 v0, 0x0
invoke-virtual {p0, v0}, Landroid/view/MotionEvent;->getX(I)F
move-result v1
const/4 v2, 0x1
invoke-virtual {p0, v2}, Landroid/view/MotionEvent;->getX(I)F
move-result v3
sub-float/2addr v1, v3
invoke-virtual {p0, v0}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
invoke-virtual {p0, v2}, Landroid/view/MotionEvent;->getY(I)F
move-result p0
sub-float/2addr v0, p0
mul-float v1, v1, v1
mul-float v0, v0, v0
add-float/2addr v1, v0
float-to-double v0, v1
invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D
move-result-wide v0
double-to-float p0, v0
return p0
.end method
# virtual methods
.method public a(FF)Lb3/e;
.registers 5
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getViewPortHandler()Lb3/j;
move-result-object v0
invoke-virtual {v0}, Lb3/j;->w()F
move-result v1
sub-float/2addr p1, v1
invoke-virtual {p0}, Ly2/a;->b()Z
move-result v1
if-eqz v1, :cond_1a
invoke-virtual {v0}, Lb3/j;->y()F
move-result v0
sub-float/2addr p2, v0
neg-float p2, p2
goto :goto_2a
:cond_1a
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Landroid/view/ViewGroup;->getMeasuredHeight()I
move-result v1
int-to-float v1, v1
sub-float/2addr v1, p2
invoke-virtual {v0}, Lb3/j;->v()F
move-result p2
sub-float/2addr v1, p2
neg-float p2, v1
:goto_2a
invoke-static {p1, p2}, Lb3/e;->a(FF)Lb3/e;
move-result-object p1
return-object p1
.end method
.method public a()V
.registers 12
iget-object v0, p0, Ly2/a;->q:Lb3/e;
iget v1, v0, Lb3/e;->c:F
const/4 v2, 0x0
cmpl-float v1, v1, v2
if-nez v1, :cond_10
iget v0, v0, Lb3/e;->d:F
cmpl-float v0, v0, v2
if-nez v0, :cond_10
return-void
:cond_10
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v0
iget-object v3, p0, Ly2/a;->q:Lb3/e;
iget v4, v3, Lb3/e;->c:F
iget-object v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v5, Lr2/a;
invoke-virtual {v5}, Lr2/b;->getDragDecelerationFrictionCoef()F
move-result v5
mul-float v4, v4, v5
iput v4, v3, Lb3/e;->c:F
iget-object v3, p0, Ly2/a;->q:Lb3/e;
iget v4, v3, Lb3/e;->d:F
iget-object v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v5, Lr2/a;
invoke-virtual {v5}, Lr2/b;->getDragDecelerationFrictionCoef()F
move-result v5
mul-float v4, v4, v5
iput v4, v3, Lb3/e;->d:F
iget-wide v3, p0, Ly2/a;->o:J
sub-long v3, v0, v3
long-to-float v3, v3
const/high16 v4, 0x447a0000 # 1000.0f
div-float/2addr v3, v4
iget-object v4, p0, Ly2/a;->q:Lb3/e;
iget v5, v4, Lb3/e;->c:F
mul-float v5, v5, v3
iget v4, v4, Lb3/e;->d:F
mul-float v4, v4, v3
iget-object v3, p0, Ly2/a;->p:Lb3/e;
iget v6, v3, Lb3/e;->c:F
add-float v8, v6, v5
iput v8, v3, Lb3/e;->c:F
iget v5, v3, Lb3/e;->d:F
add-float v9, v5, v4
iput v9, v3, Lb3/e;->d:F
const/4 v7, 0x2
const/4 v10, 0x0
move-wide v3, v0
move-wide v5, v0
invoke-static/range {v3 .. v10}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v3
iget-object v4, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v4, Lr2/a;
invoke-virtual {v4}, Lr2/a;->u()Z
move-result v4
if-eqz v4, :cond_70
iget-object v4, p0, Ly2/a;->p:Lb3/e;
iget v4, v4, Lb3/e;->c:F
iget-object v5, p0, Ly2/a;->h:Lb3/e;
iget v5, v5, Lb3/e;->c:F
sub-float/2addr v4, v5
goto :goto_71
:cond_70
const/4 v4, 0x0
:goto_71
iget-object v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v5, Lr2/a;
invoke-virtual {v5}, Lr2/a;->v()Z
move-result v5
if-eqz v5, :cond_84
iget-object v2, p0, Ly2/a;->p:Lb3/e;
iget v2, v2, Lb3/e;->d:F
iget-object v5, p0, Ly2/a;->h:Lb3/e;
iget v5, v5, Lb3/e;->d:F
sub-float/2addr v2, v5
:cond_84
invoke-virtual {p0, v3, v4, v2}, Ly2/a;->a(Landroid/view/MotionEvent;FF)V
invoke-virtual {v3}, Landroid/view/MotionEvent;->recycle()V
iget-object v2, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v2, Lr2/a;
invoke-virtual {v2}, Lr2/b;->getViewPortHandler()Lb3/j;
move-result-object v2
iget-object v3, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v4, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
const/4 v5, 0x0
invoke-virtual {v2, v3, v4, v5}, Lb3/j;->a(Landroid/graphics/Matrix;Landroid/view/View;Z)Landroid/graphics/Matrix;
iput-object v3, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iput-wide v0, p0, Ly2/a;->o:J
iget-object v0, p0, Ly2/a;->q:Lb3/e;
iget v0, v0, Lb3/e;->c:F
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
float-to-double v0, v0
const-wide v2, 0x3f847ae147ae147bL # 0.01
cmpl-double v4, v0, v2
if-gez v4, :cond_d0
iget-object v0, p0, Ly2/a;->q:Lb3/e;
iget v0, v0, Lb3/e;->d:F
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
float-to-double v0, v0
cmpl-double v4, v0, v2
if-ltz v4, :cond_be
goto :goto_d0
:cond_be
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->d()V
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Landroid/view/ViewGroup;->postInvalidate()V
invoke-virtual {p0}, Ly2/a;->c()V
goto :goto_d5
:cond_d0
:goto_d0
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
invoke-static {v0}, Lb3/i;->a(Landroid/view/View;)V
:goto_d5
return-void
.end method
.method public final a(Landroid/view/MotionEvent;FF)V
.registers 6
sget-object v0, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->DRAG:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object v0, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v1, p0, Ly2/a;->g:Landroid/graphics/Matrix;
invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
invoke-virtual {p0}, Ly2/a;->b()Z
move-result v1
if-eqz v1, :cond_22
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
instance-of v1, v1, Lr2/c;
if-eqz v1, :cond_21
neg-float p2, p2
goto :goto_22
:cond_21
neg-float p3, p3
:cond_22
:goto_22
iget-object v1, p0, Ly2/a;->f:Landroid/graphics/Matrix;
invoke-virtual {v1, p2, p3}, Landroid/graphics/Matrix;->postTranslate(FF)Z
if-eqz v0, :cond_2c
invoke-interface {v0, p1, p2, p3}, Ly2/b;->b(Landroid/view/MotionEvent;FF)V
:cond_2c
return-void
.end method
.method public final b()Z
.registers 3
iget-object v0, p0, Ly2/a;->m:Lx2/d;
if-nez v0, :cond_e
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->q()Z
move-result v0
if-nez v0, :cond_20
:cond_e
iget-object v0, p0, Ly2/a;->m:Lx2/d;
if-eqz v0, :cond_22
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-interface {v0}, Lx2/d;->B()Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
move-result-object v0
invoke-virtual {v1, v0}, Lr2/a;->b(Lcom/github/mikephil/charting/components/YAxis$AxisDependency;)Z
move-result v0
if-eqz v0, :cond_22
:cond_20
const/4 v0, 0x1
goto :goto_23
:cond_22
const/4 v0, 0x0
:goto_23
return v0
.end method
.method public c()V
.registers 3
iget-object v0, p0, Ly2/a;->q:Lb3/e;
const/4 v1, 0x0
iput v1, v0, Lb3/e;->c:F
iput v1, v0, Lb3/e;->d:F
return-void
.end method
.method public final c(Landroid/view/MotionEvent;)V
.registers 4
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result p1
invoke-virtual {v0, v1, p1}, Lr2/b;->a(FF)Lv2/c;
move-result-object p1
if-eqz p1, :cond_24
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->c:Lv2/c;
invoke-virtual {p1, v0}, Lv2/c;->a(Lv2/c;)Z
move-result v0
if-nez v0, :cond_24
iput-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->c:Lv2/c;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Lr2/b;->a(Lv2/c;Z)V
:cond_24
return-void
.end method
.method public final d(Landroid/view/MotionEvent;)V
.registers 12
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
const/4 v1, 0x2
if-lt v0, v1, :cond_110
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
invoke-static {p1}, Ly2/a;->h(Landroid/view/MotionEvent;)F
move-result v2
iget v3, p0, Ly2/a;->s:F
cmpl-float v3, v2, v3
if-lez v3, :cond_110
iget-object v3, p0, Ly2/a;->i:Lb3/e;
iget v4, v3, Lb3/e;->c:F
iget v3, v3, Lb3/e;->d:F
invoke-virtual {p0, v4, v3}, Ly2/a;->a(FF)Lb3/e;
move-result-object v3
iget-object v4, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v4, Lr2/a;
invoke-virtual {v4}, Lr2/b;->getViewPortHandler()Lb3/j;
move-result-object v4
iget v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
const/4 v6, 0x4
const/4 v7, 0x1
const/4 v8, 0x0
const/high16 v9, 0x3f800000 # 1.0f
if-ne v5, v6, :cond_8b
sget-object v1, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->PINCH_ZOOM:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget v1, p0, Ly2/a;->l:F
div-float/2addr v2, v1
cmpg-float v1, v2, v9
if-gez v1, :cond_40
goto :goto_41
:cond_40
const/4 v7, 0x0
:goto_41
if-eqz v7, :cond_48
invoke-virtual {v4}, Lb3/j;->c()Z
move-result v1
goto :goto_4c
:cond_48
invoke-virtual {v4}, Lb3/j;->a()Z
move-result v1
:goto_4c
if-eqz v7, :cond_53
invoke-virtual {v4}, Lb3/j;->d()Z
move-result v4
goto :goto_57
:cond_53
invoke-virtual {v4}, Lb3/j;->b()Z
move-result v4
:goto_57
iget-object v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v5, Lr2/a;
invoke-virtual {v5}, Lr2/a;->z()Z
move-result v5
if-eqz v5, :cond_63
move v5, v2
goto :goto_65
:cond_63
const/high16 v5, 0x3f800000 # 1.0f
:goto_65
iget-object v6, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v6, Lr2/a;
invoke-virtual {v6}, Lr2/a;->A()Z
move-result v6
if-eqz v6, :cond_70
move v9, v2
:cond_70
if-nez v4, :cond_74
if-eqz v1, :cond_10d
:cond_74
iget-object v1, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v2, p0, Ly2/a;->g:Landroid/graphics/Matrix;
invoke-virtual {v1, v2}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object v1, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget v2, v3, Lb3/e;->c:F
iget v4, v3, Lb3/e;->d:F
invoke-virtual {v1, v5, v9, v2, v4}, Landroid/graphics/Matrix;->postScale(FFFF)Z
if-eqz v0, :cond_10d
invoke-interface {v0, p1, v5, v9}, Ly2/b;->a(Landroid/view/MotionEvent;FF)V
goto/16 :goto_10d
:cond_8b
if-ne v5, v1, :cond_cb
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Lr2/a;->z()Z
move-result v1
if-eqz v1, :cond_cb
sget-object v1, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->X_ZOOM:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
invoke-static {p1}, Ly2/a;->f(Landroid/view/MotionEvent;)F
move-result v1
iget v2, p0, Ly2/a;->j:F
div-float/2addr v1, v2
cmpg-float v2, v1, v9
if-gez v2, :cond_a7
goto :goto_a8
:cond_a7
const/4 v7, 0x0
:goto_a8
if-eqz v7, :cond_af
invoke-virtual {v4}, Lb3/j;->c()Z
move-result v2
goto :goto_b3
:cond_af
invoke-virtual {v4}, Lb3/j;->a()Z
move-result v2
:goto_b3
if-eqz v2, :cond_10d
iget-object v2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v4, p0, Ly2/a;->g:Landroid/graphics/Matrix;
invoke-virtual {v2, v4}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object v2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget v4, v3, Lb3/e;->c:F
iget v5, v3, Lb3/e;->d:F
invoke-virtual {v2, v1, v9, v4, v5}, Landroid/graphics/Matrix;->postScale(FFFF)Z
if-eqz v0, :cond_10d
invoke-interface {v0, p1, v1, v9}, Ly2/b;->a(Landroid/view/MotionEvent;FF)V
goto :goto_10d
:cond_cb
iget v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
const/4 v2, 0x3
if-ne v1, v2, :cond_10d
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Lr2/a;->A()Z
move-result v1
if-eqz v1, :cond_10d
sget-object v1, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->Y_ZOOM:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
invoke-static {p1}, Ly2/a;->g(Landroid/view/MotionEvent;)F
move-result v1
iget v2, p0, Ly2/a;->k:F
div-float/2addr v1, v2
cmpg-float v2, v1, v9
if-gez v2, :cond_ea
goto :goto_eb
:cond_ea
const/4 v7, 0x0
:goto_eb
if-eqz v7, :cond_f2
invoke-virtual {v4}, Lb3/j;->d()Z
move-result v2
goto :goto_f6
:cond_f2
invoke-virtual {v4}, Lb3/j;->b()Z
move-result v2
:goto_f6
if-eqz v2, :cond_10d
iget-object v2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v4, p0, Ly2/a;->g:Landroid/graphics/Matrix;
invoke-virtual {v2, v4}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object v2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget v4, v3, Lb3/e;->c:F
iget v5, v3, Lb3/e;->d:F
invoke-virtual {v2, v9, v1, v4, v5}, Landroid/graphics/Matrix;->postScale(FFFF)Z
if-eqz v0, :cond_10d
invoke-interface {v0, p1, v9, v1}, Ly2/b;->a(Landroid/view/MotionEvent;FF)V
:cond_10d
:goto_10d
invoke-static {v3}, Lb3/e;->b(Lb3/e;)V
:cond_110
return-void
.end method
.method public final e(Landroid/view/MotionEvent;)V
.registers 4
iget-object v0, p0, Ly2/a;->g:Landroid/graphics/Matrix;
iget-object v1, p0, Ly2/a;->f:Landroid/graphics/Matrix;
invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object v0, p0, Ly2/a;->h:Lb3/e;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
iput v1, v0, Lb3/e;->c:F
iget-object v0, p0, Ly2/a;->h:Lb3/e;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v1
iput v1, v0, Lb3/e;->d:F
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result p1
invoke-virtual {v0, v1, p1}, Lr2/a;->c(FF)Lx2/b;
move-result-object p1
iput-object p1, p0, Ly2/a;->m:Lx2/d;
return-void
.end method
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
.registers 8
sget-object v0, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->DOUBLE_TAP:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
if-eqz v0, :cond_11
invoke-interface {v0, p1}, Ly2/b;->c(Landroid/view/MotionEvent;)V
:cond_11
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->s()Z
move-result v0
if-eqz v0, :cond_92
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getData()Lt2/h;
move-result-object v0
check-cast v0, Lt2/d;
invoke-virtual {v0}, Lt2/h;->d()I
move-result v0
if-lez v0, :cond_92
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v0
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v1
invoke-virtual {p0, v0, v1}, Ly2/a;->a(FF)Lb3/e;
move-result-object v0
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
move-object v2, v1
check-cast v2, Lr2/a;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Lr2/a;->z()Z
move-result v1
const v3, 0x3fb33333 # 1.4f
const/high16 v4, 0x3f800000 # 1.0f
if-eqz v1, :cond_4d
const v1, 0x3fb33333 # 1.4f
goto :goto_4f
:cond_4d
const/high16 v1, 0x3f800000 # 1.0f
:goto_4f
iget-object v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v5, Lr2/a;
invoke-virtual {v5}, Lr2/a;->A()Z
move-result v5
if-eqz v5, :cond_5a
goto :goto_5c
:cond_5a
const/high16 v3, 0x3f800000 # 1.0f
:goto_5c
iget v4, v0, Lb3/e;->c:F
iget v5, v0, Lb3/e;->d:F
invoke-virtual {v2, v1, v3, v4, v5}, Lr2/a;->a(FFFF)V
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Lr2/b;->k()Z
move-result v1
if-eqz v1, :cond_8f
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Double-Tap, Zooming In, x: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, v0, Lb3/e;->c:F
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
const-string v2, ", y: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, v0, Lb3/e;->d:F
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "BarlineChartTouch"
invoke-static {v2, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
:cond_8f
invoke-static {v0}, Lb3/e;->b(Lb3/e;)V
:cond_92
invoke-super {p0, p1}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onDoubleTap(Landroid/view/MotionEvent;)Z
move-result p1
return p1
.end method
.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
.registers 6
sget-object v0, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->FLING:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
if-eqz v0, :cond_11
invoke-interface {v0, p1, p2, p3, p4}, Ly2/b;->a(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)V
:cond_11
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
move-result p1
return p1
.end method
.method public onLongPress(Landroid/view/MotionEvent;)V
.registers 3
sget-object v0, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->LONG_PRESS:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
if-eqz v0, :cond_11
invoke-interface {v0, p1}, Ly2/b;->b(Landroid/view/MotionEvent;)V
:cond_11
return-void
.end method
.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
.registers 5
sget-object v0, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->SINGLE_TAP:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->getOnChartGestureListener()Ly2/b;
move-result-object v0
if-eqz v0, :cond_11
invoke-interface {v0, p1}, Ly2/b;->a(Landroid/view/MotionEvent;)V
:cond_11
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/b;->j()Z
move-result v0
if-nez v0, :cond_1d
const/4 p1, 0x0
return p1
:cond_1d
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
invoke-virtual {v0, v1, v2}, Lr2/b;->a(FF)Lv2/c;
move-result-object v0
invoke-virtual {p0, v0, p1}, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a(Lv2/c;Landroid/view/MotionEvent;)V
invoke-super {p0, p1}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onSingleTapUp(Landroid/view/MotionEvent;)Z
move-result p1
return p1
.end method
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
.registers 14
.annotation build Landroid/annotation/SuppressLint;
value = {
"ClickableViewAccessibility"
}
.end annotation
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
if-nez p1, :cond_a
invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;
move-result-object p1
iput-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
:cond_a
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
invoke-virtual {p1, p2}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V
invoke-virtual {p2}, Landroid/view/MotionEvent;->getActionMasked()I
move-result p1
const/4 v0, 0x0
const/4 v1, 0x3
if-ne p1, v1, :cond_20
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
if-eqz p1, :cond_20
invoke-virtual {p1}, Landroid/view/VelocityTracker;->recycle()V
iput-object v0, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
:cond_20
iget p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
if-nez p1, :cond_29
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->d:Landroid/view/GestureDetector;
invoke-virtual {p1, p2}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z
:cond_29
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->t()Z
move-result p1
const/4 v2, 0x1
if-nez p1, :cond_49
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->z()Z
move-result p1
if-nez p1, :cond_49
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->A()Z
move-result p1
if-nez p1, :cond_49
return v2
:cond_49
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I
move-result p1
and-int/lit16 p1, p1, 0xff
if-eqz p1, :cond_268
const/4 v3, 0x4
const/4 v4, 0x5
const/4 v5, 0x0
const/4 v6, 0x2
if-eq p1, v2, :cond_1d6
if-eq p1, v6, :cond_d9
if-eq p1, v1, :cond_d2
if-eq p1, v4, :cond_6b
const/4 v0, 0x6
if-eq p1, v0, :cond_62
goto/16 :goto_271
:cond_62
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
invoke-static {p2, p1}, Lb3/i;->a(Landroid/view/MotionEvent;Landroid/view/VelocityTracker;)V
iput v4, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
goto/16 :goto_271
:cond_6b
invoke-virtual {p2}, Landroid/view/MotionEvent;->getPointerCount()I
move-result p1
if-lt p1, v6, :cond_271
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/b;->e()V
invoke-virtual {p0, p2}, Ly2/a;->e(Landroid/view/MotionEvent;)V
invoke-static {p2}, Ly2/a;->f(Landroid/view/MotionEvent;)F
move-result p1
iput p1, p0, Ly2/a;->j:F
invoke-static {p2}, Ly2/a;->g(Landroid/view/MotionEvent;)F
move-result p1
iput p1, p0, Ly2/a;->k:F
invoke-static {p2}, Ly2/a;->h(Landroid/view/MotionEvent;)F
move-result p1
iput p1, p0, Ly2/a;->l:F
const/high16 v0, 0x41200000 # 10.0f
cmpl-float p1, p1, v0
if-lez p1, :cond_cb
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->y()Z
move-result p1
if-eqz p1, :cond_a0
iput v3, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
goto :goto_cb
:cond_a0
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->z()Z
move-result p1
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->A()Z
move-result v0
if-eq p1, v0, :cond_c0
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->z()Z
move-result p1
if-eqz p1, :cond_bd
const/4 v1, 0x2
:cond_bd
iput v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
goto :goto_cb
:cond_c0
iget p1, p0, Ly2/a;->j:F
iget v0, p0, Ly2/a;->k:F
cmpl-float p1, p1, v0
if-lez p1, :cond_c9
const/4 v1, 0x2
:cond_c9
iput v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
:cond_cb
:goto_cb
iget-object p1, p0, Ly2/a;->i:Lb3/e;
invoke-static {p1, p2}, Ly2/a;->a(Lb3/e;Landroid/view/MotionEvent;)V
goto/16 :goto_271
:cond_d2
iput v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
invoke-virtual {p0, p2}, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a(Landroid/view/MotionEvent;)V
goto/16 :goto_271
:cond_d9
iget p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
if-ne p1, v2, :cond_112
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/b;->e()V
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->u()Z
move-result p1
const/4 v0, 0x0
if-eqz p1, :cond_f9
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result p1
iget-object v1, p0, Ly2/a;->h:Lb3/e;
iget v1, v1, Lb3/e;->c:F
sub-float/2addr p1, v1
goto :goto_fa
:cond_f9
const/4 p1, 0x0
:goto_fa
iget-object v1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v1, Lr2/a;
invoke-virtual {v1}, Lr2/a;->v()Z
move-result v1
if-eqz v1, :cond_10d
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result v0
iget-object v1, p0, Ly2/a;->h:Lb3/e;
iget v1, v1, Lb3/e;->d:F
sub-float/2addr v0, v1
:cond_10d
invoke-virtual {p0, p2, p1, v0}, Ly2/a;->a(Landroid/view/MotionEvent;FF)V
goto/16 :goto_271
:cond_112
if-eq p1, v6, :cond_1b6
if-eq p1, v1, :cond_1b6
if-ne p1, v3, :cond_11a
goto/16 :goto_1b6
:cond_11a
if-nez p1, :cond_271
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result p1
iget-object v0, p0, Ly2/a;->h:Lb3/e;
iget v0, v0, Lb3/e;->c:F
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result v1
iget-object v3, p0, Ly2/a;->h:Lb3/e;
iget v3, v3, Lb3/e;->d:F
invoke-static {p1, v0, v1, v3}, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a(FFFF)F
move-result p1
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
move-result p1
iget v0, p0, Ly2/a;->r:F
cmpl-float p1, p1, v0
if-lez p1, :cond_271
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->t()Z
move-result p1
if-eqz p1, :cond_271
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->w()Z
move-result p1
if-eqz p1, :cond_158
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->p()Z
move-result p1
if-nez p1, :cond_159
:cond_158
const/4 v5, 0x1
:cond_159
if-eqz v5, :cond_199
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result p1
iget-object v0, p0, Ly2/a;->h:Lb3/e;
iget v0, v0, Lb3/e;->c:F
sub-float/2addr p1, v0
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
move-result p1
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result p2
iget-object v0, p0, Ly2/a;->h:Lb3/e;
iget v0, v0, Lb3/e;->d:F
sub-float/2addr p2, v0
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
move-result p2
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->u()Z
move-result v0
if-nez v0, :cond_183
cmpl-float v0, p2, p1
if-ltz v0, :cond_271
:cond_183
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v0, Lr2/a;
invoke-virtual {v0}, Lr2/a;->v()Z
move-result v0
if-nez v0, :cond_191
cmpg-float p1, p2, p1
if-gtz p1, :cond_271
:cond_191
sget-object p1, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->DRAG:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput v2, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
goto/16 :goto_271
:cond_199
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->x()Z
move-result p1
if-eqz p1, :cond_271
sget-object p1, Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;->DRAG:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iput-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a:Lcom/github/mikephil/charting/listener/ChartTouchListener$ChartGesture;
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->x()Z
move-result p1
if-eqz p1, :cond_271
invoke-virtual {p0, p2}, Ly2/a;->c(Landroid/view/MotionEvent;)V
goto/16 :goto_271
:cond_1b6
:goto_1b6
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/b;->e()V
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->z()Z
move-result p1
if-nez p1, :cond_1d1
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->A()Z
move-result p1
if-eqz p1, :cond_271
:cond_1d1
invoke-virtual {p0, p2}, Ly2/a;->d(Landroid/view/MotionEvent;)V
goto/16 :goto_271
:cond_1d6
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
invoke-virtual {p2, v5}, Landroid/view/MotionEvent;->getPointerId(I)I
move-result v7
const/16 v8, 0x3e8
invoke-static {}, Lb3/i;->c()I
move-result v9
int-to-float v9, v9
invoke-virtual {p1, v8, v9}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V
invoke-virtual {p1, v7}, Landroid/view/VelocityTracker;->getYVelocity(I)F
move-result v8
invoke-virtual {p1, v7}, Landroid/view/VelocityTracker;->getXVelocity(I)F
move-result p1
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
move-result v7
invoke-static {}, Lb3/i;->d()I
move-result v9
int-to-float v9, v9
cmpl-float v7, v7, v9
if-gtz v7, :cond_208
invoke-static {v8}, Ljava/lang/Math;->abs(F)F
move-result v7
invoke-static {}, Lb3/i;->d()I
move-result v9
int-to-float v9, v9
cmpl-float v7, v7, v9
if-lez v7, :cond_23a
:cond_208
iget v7, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
if-ne v7, v2, :cond_23a
iget-object v7, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast v7, Lr2/a;
invoke-virtual {v7}, Lr2/b;->h()Z
move-result v7
if-eqz v7, :cond_23a
invoke-virtual {p0}, Ly2/a;->c()V
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v9
iput-wide v9, p0, Ly2/a;->o:J
iget-object v7, p0, Ly2/a;->p:Lb3/e;
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result v9
iput v9, v7, Lb3/e;->c:F
iget-object v7, p0, Ly2/a;->p:Lb3/e;
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result v9
iput v9, v7, Lb3/e;->d:F
iget-object v7, p0, Ly2/a;->q:Lb3/e;
iput p1, v7, Lb3/e;->c:F
iput v8, v7, Lb3/e;->d:F
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
invoke-static {p1}, Lb3/i;->a(Landroid/view/View;)V
:cond_23a
iget p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
if-eq p1, v6, :cond_244
if-eq p1, v1, :cond_244
if-eq p1, v3, :cond_244
if-ne p1, v4, :cond_252
:cond_244
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/a;->d()V
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Landroid/view/ViewGroup;->postInvalidate()V
:cond_252
iput v5, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b:I
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/b;->f()V
iget-object p1, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
if-eqz p1, :cond_264
invoke-virtual {p1}, Landroid/view/VelocityTracker;->recycle()V
iput-object v0, p0, Ly2/a;->n:Landroid/view/VelocityTracker;
:cond_264
invoke-virtual {p0, p2}, Lcom/github/mikephil/charting/listener/ChartTouchListener;->a(Landroid/view/MotionEvent;)V
goto :goto_271
:cond_268
invoke-virtual {p0, p2}, Lcom/github/mikephil/charting/listener/ChartTouchListener;->b(Landroid/view/MotionEvent;)V
invoke-virtual {p0}, Ly2/a;->c()V
invoke-virtual {p0, p2}, Ly2/a;->e(Landroid/view/MotionEvent;)V
:cond_271
:goto_271
iget-object p1, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
check-cast p1, Lr2/a;
invoke-virtual {p1}, Lr2/b;->getViewPortHandler()Lb3/j;
move-result-object p1
iget-object p2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
iget-object v0, p0, Lcom/github/mikephil/charting/listener/ChartTouchListener;->e:Lr2/b;
invoke-virtual {p1, p2, v0, v2}, Lb3/j;->a(Landroid/graphics/Matrix;Landroid/view/View;Z)Landroid/graphics/Matrix;
iput-object p2, p0, Ly2/a;->f:Landroid/graphics/Matrix;
return v2
.end method