PieRadarChartBase.smali

.class public abstract Lcom/github/mikephil/charting/charts/PieRadarChartBase;
.super Lcom/github/mikephil/charting/charts/Chart;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Lcom/github/mikephil/charting/data/ChartData<",
        "+",
        "Lcom/github/mikephil/charting/interfaces/datasets/IDataSet<",
        "+",
        "Lcom/github/mikephil/charting/data/Entry;",
        ">;>;>",
        "Lcom/github/mikephil/charting/charts/Chart<",
        "TT;>;"
    }
.end annotation


# instance fields
.field private L:F

.field private M:F

.field protected N:Z

.field protected O:F


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3

    invoke-direct {p0, p1, p2}, Lcom/github/mikephil/charting/charts/Chart;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/high16 p1, 0x43870000    # 270.0f

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->L:F

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->M:F

    const/4 p1, 0x1

    iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->N:Z

    const/4 p1, 0x0

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->O:F

    return-void
.end method


# virtual methods
.method public b()V
    .registers 12

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    const/4 v1, 0x0

    if-eqz v0, :cond_194

    invoke-virtual {v0}, Lcom/github/mikephil/charting/components/ComponentBase;->f()Z

    move-result v0

    if-eqz v0, :cond_194

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/components/Legend;->C()Z

    move-result v0

    if-nez v0, :cond_194

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    iget v0, v0, Lcom/github/mikephil/charting/components/Legend;->x:F

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->g()F

    move-result v2

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v3}, Lcom/github/mikephil/charting/components/Legend;->u()F

    move-result v3

    mul-float v2, v2, v3

    invoke-static {v0, v2}, Ljava/lang/Math;->min(FF)F

    move-result v0

    sget-object v2, Lcom/github/mikephil/charting/charts/PieRadarChartBase$2;->c:[I

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v3}, Lcom/github/mikephil/charting/components/Legend;->x()Lcom/github/mikephil/charting/components/Legend$LegendOrientation;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Enum;->ordinal()I

    move-result v3

    aget v2, v2, v3

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-eq v2, v4, :cond_8c

    if-eq v2, v3, :cond_3e

    goto :goto_7f

    :cond_3e
    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/components/Legend;->z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    move-result-object v0

    sget-object v2, Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;->f:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    if-eq v0, v2, :cond_52

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/components/Legend;->z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    move-result-object v0

    sget-object v2, Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;->h:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    if-ne v0, v2, :cond_7f

    :cond_52
    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredLegendOffset()F

    move-result v0

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    iget v2, v2, Lcom/github/mikephil/charting/components/Legend;->y:F

    add-float/2addr v2, v0

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->f()F

    move-result v0

    iget-object v5, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v5}, Lcom/github/mikephil/charting/components/Legend;->u()F

    move-result v5

    mul-float v0, v0, v5

    invoke-static {v2, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    sget-object v2, Lcom/github/mikephil/charting/charts/PieRadarChartBase$2;->a:[I

    iget-object v5, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v5}, Lcom/github/mikephil/charting/components/Legend;->z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I

    move-result v5

    aget v2, v2, v5

    if-eq v2, v4, :cond_87

    if-eq v2, v3, :cond_84

    :cond_7f
    :goto_7f
    const/4 v0, 0x0

    :cond_80
    const/4 v2, 0x0

    :goto_81
    const/4 v3, 0x0

    goto/16 :goto_17f

    :cond_84
    :goto_84
    move v2, v0

    const/4 v0, 0x0

    goto :goto_81

    :cond_87
    :goto_87
    move v3, v0

    const/4 v0, 0x0

    const/4 v2, 0x0

    goto/16 :goto_17f

    :cond_8c
    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/components/Legend;->t()Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    move-result-object v2

    sget-object v5, Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;->f:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    if-eq v2, v5, :cond_a4

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/components/Legend;->t()Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    move-result-object v2

    sget-object v5, Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;->h:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    if-ne v2, v5, :cond_a1

    goto :goto_a4

    :cond_a1
    const/4 v0, 0x0

    goto/16 :goto_122

    :cond_a4
    :goto_a4
    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/components/Legend;->z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    move-result-object v2

    sget-object v5, Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;->g:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    if-ne v2, v5, :cond_b6

    const/high16 v2, 0x41500000    # 13.0f

    invoke-static {v2}, Lcom/github/mikephil/charting/utils/Utils;->e(F)F

    move-result v2

    add-float/2addr v0, v2

    goto :goto_122

    :cond_b6
    const/high16 v2, 0x41000000    # 8.0f

    invoke-static {v2}, Lcom/github/mikephil/charting/utils/Utils;->e(F)F

    move-result v2

    add-float/2addr v0, v2

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    iget v5, v2, Lcom/github/mikephil/charting/components/Legend;->y:F

    iget v2, v2, Lcom/github/mikephil/charting/components/Legend;->z:F

    add-float/2addr v5, v2

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getCenter()Lcom/github/mikephil/charting/utils/MPPointF;

    move-result-object v2

    iget-object v6, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v6}, Lcom/github/mikephil/charting/components/Legend;->t()Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    move-result-object v6

    sget-object v7, Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;->h:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    const/high16 v8, 0x41700000    # 15.0f

    if-ne v6, v7, :cond_dc

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v6

    int-to-float v6, v6

    sub-float/2addr v6, v0

    add-float/2addr v6, v8

    goto :goto_de

    :cond_dc
    sub-float v6, v0, v8

    :goto_de
    add-float/2addr v5, v8

    invoke-virtual {p0, v6, v5}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->t(FF)F

    move-result v7

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRadius()F

    move-result v8

    invoke-virtual {p0, v6, v5}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->u(FF)F

    move-result v6

    invoke-virtual {p0, v2, v8, v6}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->w(Lcom/github/mikephil/charting/utils/MPPointF;FF)Lcom/github/mikephil/charting/utils/MPPointF;

    move-result-object v6

    iget v8, v6, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    iget v9, v6, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    invoke-virtual {p0, v8, v9}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->t(FF)F

    move-result v8

    const/high16 v9, 0x40a00000    # 5.0f

    invoke-static {v9}, Lcom/github/mikephil/charting/utils/Utils;->e(F)F

    move-result v9

    iget v10, v2, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    cmpl-float v5, v5, v10

    if-ltz v5, :cond_113

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v5

    int-to-float v5, v5

    sub-float/2addr v5, v0

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v10

    int-to-float v10, v10

    cmpl-float v5, v5, v10

    if-lez v5, :cond_113

    goto :goto_11c

    :cond_113
    cmpg-float v0, v7, v8

    if-gez v0, :cond_11b

    sub-float/2addr v8, v7

    add-float/2addr v9, v8

    move v0, v9

    goto :goto_11c

    :cond_11b
    const/4 v0, 0x0

    :goto_11c
    invoke-static {v2}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V

    invoke-static {v6}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V

    :goto_122
    sget-object v2, Lcom/github/mikephil/charting/charts/PieRadarChartBase$2;->b:[I

    iget-object v5, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v5}, Lcom/github/mikephil/charting/components/Legend;->t()Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I

    move-result v5

    aget v2, v2, v5

    if-eq v2, v4, :cond_17c

    if-eq v2, v3, :cond_80

    const/4 v0, 0x3

    if-eq v2, v0, :cond_138

    goto :goto_14a

    :cond_138
    sget-object v0, Lcom/github/mikephil/charting/charts/PieRadarChartBase$2;->a:[I

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/components/Legend;->z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I

    move-result v2

    aget v0, v0, v2

    if-eq v0, v4, :cond_164

    if-eq v0, v3, :cond_14c

    :goto_14a
    goto/16 :goto_7f

    :cond_14c
    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    iget v0, v0, Lcom/github/mikephil/charting/components/Legend;->y:F

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->f()F

    move-result v2

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v3}, Lcom/github/mikephil/charting/components/Legend;->u()F

    move-result v3

    mul-float v2, v2, v3

    invoke-static {v0, v2}, Ljava/lang/Math;->min(FF)F

    move-result v0

    goto/16 :goto_84

    :cond_164
    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    iget v0, v0, Lcom/github/mikephil/charting/components/Legend;->y:F

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->f()F

    move-result v2

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    invoke-virtual {v3}, Lcom/github/mikephil/charting/components/Legend;->u()F

    move-result v3

    mul-float v2, v2, v3

    invoke-static {v0, v2}, Ljava/lang/Math;->min(FF)F

    move-result v0

    goto/16 :goto_87

    :cond_17c
    move v1, v0

    goto/16 :goto_7f

    :goto_17f
    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredBaseOffset()F

    move-result v4

    add-float/2addr v1, v4

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredBaseOffset()F

    move-result v4

    add-float/2addr v0, v4

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredBaseOffset()F

    move-result v4

    add-float/2addr v3, v4

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredBaseOffset()F

    move-result v4

    add-float/2addr v2, v4

    goto :goto_197

    :cond_194
    const/4 v0, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_197
    iget v4, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->O:F

    invoke-static {v4}, Lcom/github/mikephil/charting/utils/Utils;->e(F)F

    move-result v4

    instance-of v5, p0, Lcom/github/mikephil/charting/charts/RadarChart;

    if-eqz v5, :cond_1b8

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getXAxis()Lcom/github/mikephil/charting/components/XAxis;

    move-result-object v5

    invoke-virtual {v5}, Lcom/github/mikephil/charting/components/ComponentBase;->f()Z

    move-result v6

    if-eqz v6, :cond_1b8

    invoke-virtual {v5}, Lcom/github/mikephil/charting/components/AxisBase;->p()Z

    move-result v6

    if-eqz v6, :cond_1b8

    iget v5, v5, Lcom/github/mikephil/charting/components/XAxis;->C:I

    int-to-float v5, v5

    invoke-static {v4, v5}, Ljava/lang/Math;->max(FF)F

    move-result v4

    :cond_1b8
    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraTopOffset()F

    move-result v5

    add-float/2addr v3, v5

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraRightOffset()F

    move-result v5

    add-float/2addr v0, v5

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraBottomOffset()F

    move-result v5

    add-float/2addr v2, v5

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraLeftOffset()F

    move-result v5

    add-float/2addr v1, v5

    invoke-static {v4, v1}, Ljava/lang/Math;->max(FF)F

    move-result v1

    invoke-static {v4, v3}, Ljava/lang/Math;->max(FF)F

    move-result v3

    invoke-static {v4, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRequiredBaseOffset()F

    move-result v5

    invoke-static {v5, v2}, Ljava/lang/Math;->max(FF)F

    move-result v2

    invoke-static {v4, v2}, Ljava/lang/Math;->max(FF)F

    move-result v2

    iget-object v4, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v4, v1, v3, v0, v2}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->x(FFFF)V

    iget-boolean v4, p0, Lcom/github/mikephil/charting/charts/Chart;->f:Z

    if-eqz v4, :cond_21b

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "offsetLeft: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v1, ", offsetTop: "

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v1, ", offsetRight: "

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v0, ", offsetBottom: "

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "MPAndroidChart"

    invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_21b
    return-void
.end method

.method public computeScroll()V
    .registers 3

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->s:Lcom/github/mikephil/charting/listener/ChartTouchListener;

    instance-of v1, v0, Lcom/github/mikephil/charting/listener/PieRadarChartTouchListener;

    if-eqz v1, :cond_b

    check-cast v0, Lcom/github/mikephil/charting/listener/PieRadarChartTouchListener;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/listener/PieRadarChartTouchListener;->g()V

    :cond_b
    return-void
.end method

.method public getDiameter()F
    .registers 4

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->y:Lcom/github/mikephil/charting/utils/ViewPortHandler;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->i()Landroid/graphics/RectF;

    move-result-object v0

    iget v1, v0, Landroid/graphics/RectF;->left:F

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraLeftOffset()F

    move-result v2

    add-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/RectF;->left:F

    iget v1, v0, Landroid/graphics/RectF;->top:F

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraTopOffset()F

    move-result v2

    add-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/RectF;->top:F

    iget v1, v0, Landroid/graphics/RectF;->right:F

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraRightOffset()F

    move-result v2

    sub-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/RectF;->right:F

    iget v1, v0, Landroid/graphics/RectF;->bottom:F

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getExtraBottomOffset()F

    move-result v2

    sub-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v1

    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v0

    invoke-static {v1, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    return v0
.end method

.method public getMaxVisibleCount()I
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->g:Lcom/github/mikephil/charting/data/ChartData;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/data/ChartData;->g()I

    move-result v0

    return v0
.end method

.method public getMinOffset()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->O:F

    return v0
.end method

.method public abstract getRadius()F
.end method

.method public getRawRotationAngle()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->M:F

    return v0
.end method

.method protected abstract getRequiredBaseOffset()F
.end method

.method protected abstract getRequiredLegendOffset()F
.end method

.method public getRotationAngle()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->L:F

    return v0
.end method

.method public getYChartMax()F
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public getYChartMin()F
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method protected k()V
    .registers 2

    invoke-super {p0}, Lcom/github/mikephil/charting/charts/Chart;->k()V

    new-instance v0, Lcom/github/mikephil/charting/listener/PieRadarChartTouchListener;

    invoke-direct {v0, p0}, Lcom/github/mikephil/charting/listener/PieRadarChartTouchListener;-><init>(Lcom/github/mikephil/charting/charts/PieRadarChartBase;)V

    iput-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->s:Lcom/github/mikephil/charting/listener/ChartTouchListener;

    return-void
.end method

.method public o()V
    .registers 3

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->g:Lcom/github/mikephil/charting/data/ChartData;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->s()V

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->q:Lcom/github/mikephil/charting/components/Legend;

    if-eqz v0, :cond_13

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->v:Lcom/github/mikephil/charting/renderer/LegendRenderer;

    iget-object v1, p0, Lcom/github/mikephil/charting/charts/Chart;->g:Lcom/github/mikephil/charting/data/ChartData;

    invoke-virtual {v0, v1}, Lcom/github/mikephil/charting/renderer/LegendRenderer;->a(Lcom/github/mikephil/charting/data/ChartData;)V

    :cond_13
    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->b()V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 3

    iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/Chart;->o:Z

    if-eqz v0, :cond_d

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->s:Lcom/github/mikephil/charting/listener/ChartTouchListener;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0, p1}, Landroid/view/View$OnTouchListener;->onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    :cond_d
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method

.method protected s()V
    .registers 1

    return-void
.end method

.method public setMinOffset(F)V
    .registers 2

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->O:F

    return-void
.end method

.method public setRotationAngle(F)V
    .registers 2

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->M:F

    invoke-static {p1}, Lcom/github/mikephil/charting/utils/Utils;->o(F)F

    move-result p1

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->L:F

    return-void
.end method

.method public setRotationEnabled(Z)V
    .registers 2

    iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->N:Z

    return-void
.end method

.method public t(FF)F
    .registers 8

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getCenterOffsets()Lcom/github/mikephil/charting/utils/MPPointF;

    move-result-object v0

    iget v1, v0, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    cmpl-float v2, p1, v1

    if-lez v2, :cond_c

    sub-float/2addr p1, v1

    goto :goto_e

    :cond_c
    sub-float p1, v1, p1

    :goto_e
    iget v1, v0, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    cmpl-float v2, p2, v1

    if-lez v2, :cond_16

    sub-float/2addr p2, v1

    goto :goto_18

    :cond_16
    sub-float p2, v1, p2

    :goto_18
    float-to-double v1, p1

    const-wide/high16 v3, 0x4000000000000000L    # 2.0

    invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v1

    float-to-double p1, p2

    invoke-static {p1, p2, v3, v4}, Ljava/lang/Math;->pow(DD)D

    move-result-wide p1

    add-double/2addr v1, p1

    invoke-static {v1, v2}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide p1

    double-to-float p1, p1

    invoke-static {v0}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V

    return p1
.end method

.method public u(FF)F
    .registers 10

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/Chart;->getCenterOffsets()Lcom/github/mikephil/charting/utils/MPPointF;

    move-result-object v0

    iget v1, v0, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    sub-float v1, p1, v1

    float-to-double v1, v1

    iget v3, v0, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    sub-float/2addr p2, v3

    float-to-double v3, p2

    mul-double v1, v1, v1

    mul-double v5, v3, v3

    add-double/2addr v1, v5

    invoke-static {v1, v2}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v1

    div-double/2addr v3, v1

    invoke-static {v3, v4}, Ljava/lang/Math;->acos(D)D

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v1

    double-to-float p2, v1

    iget v1, v0, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    const/high16 v2, 0x43b40000    # 360.0f

    cmpl-float p1, p1, v1

    if-lez p1, :cond_2a

    sub-float p2, v2, p2

    :cond_2a
    const/high16 p1, 0x42b40000    # 90.0f

    add-float/2addr p2, p1

    cmpl-float p1, p2, v2

    if-lez p1, :cond_32

    sub-float/2addr p2, v2

    :cond_32
    invoke-static {v0}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V

    return p2
.end method

.method public abstract v(F)I
.end method

.method public w(Lcom/github/mikephil/charting/utils/MPPointF;FF)Lcom/github/mikephil/charting/utils/MPPointF;
    .registers 5

    const/4 v0, 0x0

    invoke-static {v0, v0}, Lcom/github/mikephil/charting/utils/MPPointF;->c(FF)Lcom/github/mikephil/charting/utils/MPPointF;

    move-result-object v0

    invoke-virtual {p0, p1, p2, p3, v0}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->x(Lcom/github/mikephil/charting/utils/MPPointF;FFLcom/github/mikephil/charting/utils/MPPointF;)V

    return-object v0
.end method

.method public x(Lcom/github/mikephil/charting/utils/MPPointF;FFLcom/github/mikephil/charting/utils/MPPointF;)V
    .registers 11

    iget v0, p1, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    float-to-double v0, v0

    float-to-double v2, p2

    float-to-double p2, p3

    invoke-static {p2, p3}, Ljava/lang/Math;->toRadians(D)D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v4

    mul-double v4, v4, v2

    add-double/2addr v0, v4

    double-to-float v0, v0

    iput v0, p4, Lcom/github/mikephil/charting/utils/MPPointF;->c:F

    iget p1, p1, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    float-to-double v0, p1

    invoke-static {p2, p3}, Ljava/lang/Math;->toRadians(D)D

    move-result-wide p1

    invoke-static {p1, p2}, Ljava/lang/Math;->sin(D)D

    move-result-wide p1

    mul-double v2, v2, p1

    add-double/2addr v0, v2

    double-to-float p1, v0

    iput p1, p4, Lcom/github/mikephil/charting/utils/MPPointF;->d:F

    return-void
.end method

.method public y()Z
    .registers 2

    iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->N:Z

    return v0
.end method