.class public Lcom/example/linechartlibrary/ChartTouchHandler; .super Ljava/lang/Object; .source "ChartTouchHandler.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/example/linechartlibrary/ChartTouchHandler$ChartGestureListener;, Lcom/example/linechartlibrary/ChartTouchHandler$ChartScaleGestureListener; } .end annotation # instance fields .field protected chart:Lcom/example/linechartlibrary/Chart; .field protected chartScroller:Lcom/example/linechartlibrary/ChartScroller; .field protected chartZoomer:Lcom/example/linechartlibrary/ChartZoomer; .field protected computator:Lcom/example/linechartlibrary/ChartComputator; .field protected containerScrollType:Lcom/example/linechartlibrary/ContainerScrollType; .field protected gestureDetector:Landroid/view/GestureDetector; .field protected isScrollEnabled:Z .field protected isValueSelectionEnabled:Z .field protected isValueTouchEnabled:Z .field protected isZoomEnabled:Z .field protected oldSelectedValue:Lcom/example/linechartlibrary/SelectedValue; .field protected renderer:Lcom/example/linechartlibrary/ChartRenderer; .field protected scaleGestureDetector:Landroid/view/ScaleGestureDetector; .field protected selectedValue:Lcom/example/linechartlibrary/SelectedValue; .field protected selectionModeOldValue:Lcom/example/linechartlibrary/SelectedValue; .field protected viewParent:Landroid/view/ViewParent; # direct methods .method public constructor (Landroid/content/Context;Lcom/example/linechartlibrary/Chart;)V .registers 4 .line 49 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x1 .line 25 iput-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isZoomEnabled:Z .line 26 iput-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isScrollEnabled:Z .line 27 iput-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueTouchEnabled:Z const/4 v0, 0x0 .line 28 iput-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueSelectionEnabled:Z .line 34 new-instance v0, Lcom/example/linechartlibrary/SelectedValue; invoke-direct {v0}, Lcom/example/linechartlibrary/SelectedValue;->()V iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectionModeOldValue:Lcom/example/linechartlibrary/SelectedValue; .line 36 new-instance v0, Lcom/example/linechartlibrary/SelectedValue; invoke-direct {v0}, Lcom/example/linechartlibrary/SelectedValue;->()V iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; .line 37 new-instance v0, Lcom/example/linechartlibrary/SelectedValue; invoke-direct {v0}, Lcom/example/linechartlibrary/SelectedValue;->()V iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->oldSelectedValue:Lcom/example/linechartlibrary/SelectedValue; .line 50 iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; .line 51 invoke-interface {p2}, Lcom/example/linechartlibrary/Chart;->getChartComputator()Lcom/example/linechartlibrary/ChartComputator; move-result-object v0 iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->computator:Lcom/example/linechartlibrary/ChartComputator; .line 52 invoke-interface {p2}, Lcom/example/linechartlibrary/Chart;->getChartRenderer()Lcom/example/linechartlibrary/ChartRenderer; move-result-object p2 iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; .line 53 new-instance p2, Landroid/view/GestureDetector; new-instance v0, Lcom/example/linechartlibrary/ChartTouchHandler$ChartGestureListener; invoke-direct {v0, p0}, Lcom/example/linechartlibrary/ChartTouchHandler$ChartGestureListener;->(Lcom/example/linechartlibrary/ChartTouchHandler;)V invoke-direct {p2, p1, v0}, Landroid/view/GestureDetector;->(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->gestureDetector:Landroid/view/GestureDetector; .line 54 new-instance p2, Landroid/view/ScaleGestureDetector; new-instance v0, Lcom/example/linechartlibrary/ChartTouchHandler$ChartScaleGestureListener; invoke-direct {v0, p0}, Lcom/example/linechartlibrary/ChartTouchHandler$ChartScaleGestureListener;->(Lcom/example/linechartlibrary/ChartTouchHandler;)V invoke-direct {p2, p1, v0}, Landroid/view/ScaleGestureDetector;->(Landroid/content/Context;Landroid/view/ScaleGestureDetector$OnScaleGestureListener;)V iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->scaleGestureDetector:Landroid/view/ScaleGestureDetector; .line 55 new-instance p2, Lcom/example/linechartlibrary/ChartScroller; invoke-direct {p2, p1}, Lcom/example/linechartlibrary/ChartScroller;->(Landroid/content/Context;)V iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartScroller:Lcom/example/linechartlibrary/ChartScroller; .line 56 new-instance p2, Lcom/example/linechartlibrary/ChartZoomer; sget-object v0, Lcom/example/linechartlibrary/ZoomType;->HORIZONTAL_AND_VERTICAL:Lcom/example/linechartlibrary/ZoomType; invoke-direct {p2, p1, v0}, Lcom/example/linechartlibrary/ChartZoomer;->(Landroid/content/Context;Lcom/example/linechartlibrary/ZoomType;)V iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartZoomer:Lcom/example/linechartlibrary/ChartZoomer; return-void .end method .method static synthetic access$000(Lcom/example/linechartlibrary/ChartTouchHandler;)V .registers 1 .line 16 invoke-direct {p0}, Lcom/example/linechartlibrary/ChartTouchHandler;->disallowParentInterceptTouchEvent()V return-void .end method .method static synthetic access$100(Lcom/example/linechartlibrary/ChartTouchHandler;Lcom/example/linechartlibrary/ChartScroller$ScrollResult;)V .registers 2 .line 16 invoke-direct {p0, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->allowParentInterceptTouchEvent(Lcom/example/linechartlibrary/ChartScroller$ScrollResult;)V return-void .end method .method private allowParentInterceptTouchEvent(Lcom/example/linechartlibrary/ChartScroller$ScrollResult;)V .registers 5 .line 136 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->viewParent:Landroid/view/ViewParent; if-eqz v0, :cond_34 .line 137 sget-object v0, Lcom/example/linechartlibrary/ContainerScrollType;->HORIZONTAL:Lcom/example/linechartlibrary/ContainerScrollType; iget-object v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->containerScrollType:Lcom/example/linechartlibrary/ContainerScrollType; const/4 v2, 0x0 if-ne v0, v1, :cond_1d iget-boolean v0, p1, Lcom/example/linechartlibrary/ChartScroller$ScrollResult;->canScrollX:Z if-nez v0, :cond_1d iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->scaleGestureDetector:Landroid/view/ScaleGestureDetector; .line 138 invoke-virtual {v0}, Landroid/view/ScaleGestureDetector;->isInProgress()Z move-result v0 if-nez v0, :cond_1d .line 139 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->viewParent:Landroid/view/ViewParent; invoke-interface {p1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V goto :goto_34 .line 140 :cond_1d sget-object v0, Lcom/example/linechartlibrary/ContainerScrollType;->VERTICAL:Lcom/example/linechartlibrary/ContainerScrollType; iget-object v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->containerScrollType:Lcom/example/linechartlibrary/ContainerScrollType; if-ne v0, v1, :cond_34 iget-boolean p1, p1, Lcom/example/linechartlibrary/ChartScroller$ScrollResult;->canScrollY:Z if-nez p1, :cond_34 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->scaleGestureDetector:Landroid/view/ScaleGestureDetector; .line 141 invoke-virtual {p1}, Landroid/view/ScaleGestureDetector;->isInProgress()Z move-result p1 if-nez p1, :cond_34 .line 142 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->viewParent:Landroid/view/ViewParent; invoke-interface {p1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V :cond_34 :goto_34 return-void .end method .method private checkTouch(FF)Z .registers 5 .line 207 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->oldSelectedValue:Lcom/example/linechartlibrary/SelectedValue; iget-object v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {v0, v1}, Lcom/example/linechartlibrary/SelectedValue;->set(Lcom/example/linechartlibrary/SelectedValue;)V .line 208 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {v0}, Lcom/example/linechartlibrary/SelectedValue;->clear()V .line 210 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {v0, p1, p2}, Lcom/example/linechartlibrary/ChartRenderer;->checkTouch(FF)Z move-result p1 if-eqz p1, :cond_1f .line 211 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; iget-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p2}, Lcom/example/linechartlibrary/ChartRenderer;->getSelectedValue()Lcom/example/linechartlibrary/SelectedValue; move-result-object p2 invoke-virtual {p1, p2}, Lcom/example/linechartlibrary/SelectedValue;->set(Lcom/example/linechartlibrary/SelectedValue;)V .line 215 :cond_1f iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->oldSelectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1}, Lcom/example/linechartlibrary/SelectedValue;->isSet()Z move-result p1 if-eqz p1, :cond_3b iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1}, Lcom/example/linechartlibrary/SelectedValue;->isSet()Z move-result p1 if-eqz p1, :cond_3b iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->oldSelectedValue:Lcom/example/linechartlibrary/SelectedValue; iget-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1, p2}, Lcom/example/linechartlibrary/SelectedValue;->equals(Ljava/lang/Object;)Z move-result p1 if-nez p1, :cond_3b const/4 p1, 0x0 return p1 .line 218 :cond_3b iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result p1 return p1 .end method .method private computeTouch(Landroid/view/MotionEvent;)Z .registers 5 .line 149 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v0 const/4 v1, 0x1 if-eqz v0, :cond_7f if-eq v0, v1, :cond_3d const/4 v2, 0x2 if-eq v0, v2, :cond_20 const/4 p1, 0x3 if-eq v0, p1, :cond_11 goto/16 :goto_ac .line 197 :cond_11 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result p1 if-eqz p1, :cond_ac .line 198 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->clearTouch()V goto/16 :goto_ad .line 188 :cond_20 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {v0}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result v0 if-eqz v0, :cond_ac .line 189 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v0 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 invoke-direct {p0, v0, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->checkTouch(FF)Z move-result p1 if-nez p1, :cond_ac .line 190 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->clearTouch()V goto/16 :goto_ad .line 165 :cond_3d iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {v0}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result v0 if-eqz v0, :cond_ac .line 166 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v0 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 invoke-direct {p0, v0, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->checkTouch(FF)Z move-result p1 if-eqz p1, :cond_79 .line 167 iget-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueSelectionEnabled:Z if-eqz p1, :cond_6e .line 171 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectionModeOldValue:Lcom/example/linechartlibrary/SelectedValue; iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1, v0}, Lcom/example/linechartlibrary/SelectedValue;->equals(Ljava/lang/Object;)Z move-result p1 if-nez p1, :cond_ad .line 172 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectionModeOldValue:Lcom/example/linechartlibrary/SelectedValue; iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectedValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1, v0}, Lcom/example/linechartlibrary/SelectedValue;->set(Lcom/example/linechartlibrary/SelectedValue;)V .line 173 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; invoke-interface {p1}, Lcom/example/linechartlibrary/Chart;->callTouchListener()V goto :goto_ad .line 176 :cond_6e iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; invoke-interface {p1}, Lcom/example/linechartlibrary/Chart;->callTouchListener()V .line 177 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->clearTouch()V goto :goto_ad .line 180 :cond_79 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->clearTouch()V goto :goto_ad .line 151 :cond_7f iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {v0}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result v0 .line 152 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v2 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 invoke-direct {p0, v2, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->checkTouch(FF)Z move-result p1 if-eq v0, p1, :cond_ac .line 156 iget-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueSelectionEnabled:Z if-eqz p1, :cond_ad .line 157 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->selectionModeOldValue:Lcom/example/linechartlibrary/SelectedValue; invoke-virtual {p1}, Lcom/example/linechartlibrary/SelectedValue;->clear()V if-eqz v0, :cond_ad .line 158 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; invoke-interface {p1}, Lcom/example/linechartlibrary/ChartRenderer;->isTouched()Z move-result p1 if-nez p1, :cond_ad .line 159 iget-object p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; invoke-interface {p1}, Lcom/example/linechartlibrary/Chart;->callTouchListener()V goto :goto_ad :cond_ac :goto_ac const/4 v1, 0x0 :cond_ad :goto_ad return v1 .end method .method private disallowParentInterceptTouchEvent()V .registers 3 .line 125 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->viewParent:Landroid/view/ViewParent; if-eqz v0, :cond_8 const/4 v1, 0x1 .line 126 invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V :cond_8 return-void .end method # virtual methods .method public computeScroll()Z .registers 5 .line 70 iget-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isScrollEnabled:Z const/4 v1, 0x1 if-eqz v0, :cond_11 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartScroller:Lcom/example/linechartlibrary/ChartScroller; iget-object v2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->computator:Lcom/example/linechartlibrary/ChartComputator; invoke-virtual {v0, v2}, Lcom/example/linechartlibrary/ChartScroller;->computeScrollOffset(Lcom/example/linechartlibrary/ChartComputator;)Z move-result v0 if-eqz v0, :cond_11 move v0, v1 goto :goto_12 :cond_11 const/4 v0, 0x0 .line 73 :goto_12 iget-boolean v2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isZoomEnabled:Z if-eqz v2, :cond_21 iget-object v2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartZoomer:Lcom/example/linechartlibrary/ChartZoomer; iget-object v3, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->computator:Lcom/example/linechartlibrary/ChartComputator; invoke-virtual {v2, v3}, Lcom/example/linechartlibrary/ChartZoomer;->computeZoom(Lcom/example/linechartlibrary/ChartComputator;)Z move-result v2 if-eqz v2, :cond_21 goto :goto_22 :cond_21 move v1, v0 :goto_22 return v1 .end method .method public getZoomType()Lcom/example/linechartlibrary/ZoomType; .registers 2 .line 240 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartZoomer:Lcom/example/linechartlibrary/ChartZoomer; invoke-virtual {v0}, Lcom/example/linechartlibrary/ChartZoomer;->getZoomType()Lcom/example/linechartlibrary/ZoomType; move-result-object v0 return-object v0 .end method .method public handleTouchEvent(Landroid/view/MotionEvent;)Z .registers 6 .line 88 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->gestureDetector:Landroid/view/GestureDetector; invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z move-result v0 .line 90 iget-object v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->scaleGestureDetector:Landroid/view/ScaleGestureDetector; invoke-virtual {v1, p1}, Landroid/view/ScaleGestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z move-result v1 const/4 v2, 0x0 const/4 v3, 0x1 if-nez v1, :cond_15 if-eqz v0, :cond_13 goto :goto_15 :cond_13 move v0, v2 goto :goto_16 :cond_15 :goto_15 move v0, v3 .line 92 :goto_16 iget-boolean v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isZoomEnabled:Z if-eqz v1, :cond_25 iget-object v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->scaleGestureDetector:Landroid/view/ScaleGestureDetector; invoke-virtual {v1}, Landroid/view/ScaleGestureDetector;->isInProgress()Z move-result v1 if-eqz v1, :cond_25 .line 95 invoke-direct {p0}, Lcom/example/linechartlibrary/ChartTouchHandler;->disallowParentInterceptTouchEvent()V .line 98 :cond_25 iget-boolean v1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueTouchEnabled:Z if-eqz v1, :cond_33 .line 99 invoke-direct {p0, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->computeTouch(Landroid/view/MotionEvent;)Z move-result p1 if-nez p1, :cond_31 if-eqz v0, :cond_32 :cond_31 move v2, v3 :cond_32 move v0, v2 :cond_33 return v0 .end method .method public handleTouchEvent(Landroid/view/MotionEvent;Landroid/view/ViewParent;Lcom/example/linechartlibrary/ContainerScrollType;)Z .registers 4 .line 114 iput-object p2, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->viewParent:Landroid/view/ViewParent; .line 115 iput-object p3, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->containerScrollType:Lcom/example/linechartlibrary/ContainerScrollType; .line 117 invoke-virtual {p0, p1}, Lcom/example/linechartlibrary/ChartTouchHandler;->handleTouchEvent(Landroid/view/MotionEvent;)Z move-result p1 return p1 .end method .method public isScrollEnabled()Z .registers 2 .line 232 iget-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isScrollEnabled:Z return v0 .end method .method public isValueSelectionEnabled()Z .registers 2 .line 256 iget-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueSelectionEnabled:Z return v0 .end method .method public isValueTouchEnabled()Z .registers 2 .line 248 iget-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueTouchEnabled:Z return v0 .end method .method public isZoomEnabled()Z .registers 2 .line 223 iget-boolean v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isZoomEnabled:Z return v0 .end method .method public resetTouchHandler()V .registers 2 .line 60 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; invoke-interface {v0}, Lcom/example/linechartlibrary/Chart;->getChartComputator()Lcom/example/linechartlibrary/ChartComputator; move-result-object v0 iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->computator:Lcom/example/linechartlibrary/ChartComputator; .line 61 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chart:Lcom/example/linechartlibrary/Chart; invoke-interface {v0}, Lcom/example/linechartlibrary/Chart;->getChartRenderer()Lcom/example/linechartlibrary/ChartRenderer; move-result-object v0 iput-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->renderer:Lcom/example/linechartlibrary/ChartRenderer; return-void .end method .method public setScrollEnabled(Z)V .registers 2 .line 236 iput-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isScrollEnabled:Z return-void .end method .method public setValueSelectionEnabled(Z)V .registers 2 .line 260 iput-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueSelectionEnabled:Z return-void .end method .method public setValueTouchEnabled(Z)V .registers 2 .line 252 iput-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isValueTouchEnabled:Z return-void .end method .method public setZoomEnabled(Z)V .registers 2 .line 227 iput-boolean p1, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->isZoomEnabled:Z return-void .end method .method public setZoomType(Lcom/example/linechartlibrary/ZoomType;)V .registers 3 .line 244 iget-object v0, p0, Lcom/example/linechartlibrary/ChartTouchHandler;->chartZoomer:Lcom/example/linechartlibrary/ChartZoomer; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ChartZoomer;->setZoomType(Lcom/example/linechartlibrary/ZoomType;)V return-void .end method