PieChart.smali

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


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/github/mikephil/charting/charts/PieRadarChartBase<",
        "Lcom/github/mikephil/charting/data/PieData;",
        ">;"
    }
.end annotation


# instance fields
.field private P:Landroid/graphics/RectF;

.field private Q:Z

.field private R:[F

.field private S:[F

.field private T:Z

.field private U:Z

.field private V:Z

.field private W:Z

.field private a0:Ljava/lang/CharSequence;

.field private b0:Lcom/github/mikephil/charting/utils/MPPointF;

.field private c0:F

.field protected d0:F

.field private e0:Z

.field private f0:F

.field protected g0:F

.field private h0:F


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

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

    new-instance p1, Landroid/graphics/RectF;

    invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V

    iput-object p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

    const/4 p1, 0x1

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

    new-array p2, p1, [F

    iput-object p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    new-array p2, p1, [F

    iput-object p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

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

    const/4 p2, 0x0

    iput-boolean p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->U:Z

    iput-boolean p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->V:Z

    iput-boolean p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->W:Z

    const-string p2, ""

    iput-object p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->a0:Ljava/lang/CharSequence;

    const/4 p2, 0x0

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

    move-result-object v0

    iput-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->b0:Lcom/github/mikephil/charting/utils/MPPointF;

    const/high16 v0, 0x42480000    # 50.0f

    iput v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->c0:F

    const/high16 v0, 0x425c0000    # 55.0f

    iput v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->d0:F

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

    const/high16 p1, 0x42c80000    # 100.0f

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->f0:F

    const/high16 p1, 0x43b40000    # 360.0f

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    iput p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    return-void
.end method

.method private A()V
    .registers 18

    move-object/from16 v0, p0

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

    check-cast v1, Lcom/github/mikephil/charting/data/PieData;

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

    move-result v1

    iget-object v2, v0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    array-length v2, v2

    const/4 v3, 0x0

    if-eq v2, v1, :cond_15

    new-array v2, v1, [F

    iput-object v2, v0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    goto :goto_1f

    :cond_15
    const/4 v2, 0x0

    :goto_16
    if-ge v2, v1, :cond_1f

    iget-object v5, v0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    aput v3, v5, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_16

    :cond_1f
    :goto_1f
    iget-object v2, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    array-length v2, v2

    if-eq v2, v1, :cond_29

    new-array v2, v1, [F

    iput-object v2, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    goto :goto_33

    :cond_29
    const/4 v2, 0x0

    :goto_2a
    if-ge v2, v1, :cond_33

    iget-object v5, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    aput v3, v5, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_2a

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

    check-cast v2, Lcom/github/mikephil/charting/data/PieData;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/data/PieData;->s()F

    move-result v2

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

    check-cast v5, Lcom/github/mikephil/charting/data/PieData;

    invoke-virtual {v5}, Lcom/github/mikephil/charting/data/ChartData;->f()Ljava/util/List;

    move-result-object v5

    iget v6, v0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    cmpl-float v7, v6, v3

    if-eqz v7, :cond_54

    int-to-float v7, v1

    mul-float v7, v7, v6

    iget v6, v0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    cmpg-float v6, v7, v6

    if-gtz v6, :cond_54

    const/4 v6, 0x1

    goto :goto_55

    :cond_54
    const/4 v6, 0x0

    :goto_55
    new-array v7, v1, [F

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

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

    check-cast v12, Lcom/github/mikephil/charting/data/PieData;

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

    move-result v12

    if-ge v8, v12, :cond_b6

    invoke-interface {v5, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/github/mikephil/charting/interfaces/datasets/IPieDataSet;

    const/4 v13, 0x0

    :goto_6c
    invoke-interface {v12}, Lcom/github/mikephil/charting/interfaces/datasets/IDataSet;->a0()I

    move-result v14

    if-ge v13, v14, :cond_b3

    invoke-interface {v12, v13}, Lcom/github/mikephil/charting/interfaces/datasets/IDataSet;->y(I)Lcom/github/mikephil/charting/data/Entry;

    move-result-object v14

    check-cast v14, Lcom/github/mikephil/charting/data/PieEntry;

    invoke-virtual {v14}, Lcom/github/mikephil/charting/data/BaseEntry;->c()F

    move-result v14

    invoke-static {v14}, Ljava/lang/Math;->abs(F)F

    move-result v14

    invoke-direct {v0, v14, v2}, Lcom/github/mikephil/charting/charts/PieChart;->z(FF)F

    move-result v14

    if-eqz v6, :cond_96

    iget v15, v0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    sub-float v4, v14, v15

    cmpg-float v16, v4, v3

    if-gtz v16, :cond_93

    aput v15, v7, v11

    neg-float v4, v4

    add-float/2addr v9, v4

    goto :goto_96

    :cond_93
    aput v14, v7, v11

    add-float/2addr v10, v4

    :cond_96
    :goto_96
    iget-object v4, v0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    aput v14, v4, v11

    if-nez v11, :cond_a3

    iget-object v14, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    aget v4, v4, v11

    aput v4, v14, v11

    goto :goto_ae

    :cond_a3
    iget-object v14, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    add-int/lit8 v15, v11, -0x1

    aget v15, v14, v15

    aget v4, v4, v11

    add-float/2addr v15, v4

    aput v15, v14, v11

    :goto_ae
    add-int/lit8 v11, v11, 0x1

    add-int/lit8 v13, v13, 0x1

    goto :goto_6c

    :cond_b3
    add-int/lit8 v8, v8, 0x1

    goto :goto_5b

    :cond_b6
    if-eqz v6, :cond_e3

    const/4 v2, 0x0

    :goto_b9
    if-ge v2, v1, :cond_e1

    aget v3, v7, v2

    aget v4, v7, v2

    iget v5, v0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    sub-float/2addr v4, v5

    div-float/2addr v4, v10

    mul-float v4, v4, v9

    sub-float/2addr v3, v4

    aput v3, v7, v2

    if-nez v2, :cond_d2

    iget-object v3, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    const/4 v4, 0x0

    aget v5, v7, v4

    aput v5, v3, v4

    goto :goto_de

    :cond_d2
    const/4 v4, 0x0

    iget-object v3, v0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    add-int/lit8 v5, v2, -0x1

    aget v5, v3, v5

    aget v6, v7, v2

    add-float/2addr v5, v6

    aput v5, v3, v2

    :goto_de
    add-int/lit8 v2, v2, 0x1

    goto :goto_b9

    :cond_e1
    iput-object v7, v0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    :cond_e3
    return-void
.end method

.method private z(FF)F
    .registers 3

    div-float/2addr p1, p2

    iget p2, p0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    mul-float p1, p1, p2

    return p1
.end method


# virtual methods
.method public B()Z
    .registers 2

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

    return v0
.end method

.method public C()Z
    .registers 2

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

    return v0
.end method

.method public D()Z
    .registers 2

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

    return v0
.end method

.method public E()Z
    .registers 2

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

    return v0
.end method

.method public F()Z
    .registers 2

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

    return v0
.end method

.method public G()Z
    .registers 2

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

    return v0
.end method

.method public H(I)Z
    .registers 6

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

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_8

    return v1

    :cond_8
    const/4 v0, 0x0

    :goto_9
    iget-object v2, p0, Lcom/github/mikephil/charting/charts/Chart;->F:[Lcom/github/mikephil/charting/highlight/Highlight;

    array-length v3, v2

    if-ge v0, v3, :cond_1c

    aget-object v2, v2, v0

    invoke-virtual {v2}, Lcom/github/mikephil/charting/highlight/Highlight;->e()F

    move-result v2

    float-to-int v2, v2

    if-ne v2, p1, :cond_19

    const/4 p1, 0x1

    return p1

    :cond_19
    add-int/lit8 v0, v0, 0x1

    goto :goto_9

    :cond_1c
    return v1
.end method

.method public b()V
    .registers 9

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

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

    if-nez v0, :cond_8

    return-void

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

    move-result v0

    const/high16 v1, 0x40000000    # 2.0f

    div-float/2addr v0, v1

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

    move-result-object v1

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

    check-cast v2, Lcom/github/mikephil/charting/data/PieData;

    invoke-virtual {v2}, Lcom/github/mikephil/charting/data/PieData;->q()Lcom/github/mikephil/charting/interfaces/datasets/IPieDataSet;

    move-result-object v2

    invoke-interface {v2}, Lcom/github/mikephil/charting/interfaces/datasets/IPieDataSet;->R()F

    move-result v2

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

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

    sub-float v5, v4, v0

    add-float/2addr v5, v2

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

    sub-float v7, v6, v0

    add-float/2addr v7, v2

    add-float/2addr v4, v0

    sub-float/2addr v4, v2

    add-float/2addr v6, v0

    sub-float/2addr v6, v2

    invoke-virtual {v3, v5, v7, v4, v6}, Landroid/graphics/RectF;->set(FFFF)V

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

    return-void
.end method

.method public getAbsoluteAngles()[F
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    return-object v0
.end method

.method public getCenterCircleBox()Lcom/github/mikephil/charting/utils/MPPointF;
    .registers 3

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

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

    move-result v0

    iget-object v1, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->centerY()F

    move-result v1

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

    move-result-object v0

    return-object v0
.end method

.method public getCenterText()Ljava/lang/CharSequence;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->a0:Ljava/lang/CharSequence;

    return-object v0
.end method

.method public getCenterTextOffset()Lcom/github/mikephil/charting/utils/MPPointF;
    .registers 3

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->b0:Lcom/github/mikephil/charting/utils/MPPointF;

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

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

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

    move-result-object v0

    return-object v0
.end method

.method public getCenterTextRadiusPercent()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->f0:F

    return v0
.end method

.method public getCircleBox()Landroid/graphics/RectF;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

    return-object v0
.end method

.method public getDrawAngles()[F
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    return-object v0
.end method

.method public getHoleRadius()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->c0:F

    return v0
.end method

.method public getMaxAngle()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    return v0
.end method

.method public getMinAngleForSlices()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    return v0
.end method

.method public getRadius()F
    .registers 4

    iget-object v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

    if-nez v0, :cond_6

    const/4 v0, 0x0

    return v0

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

    move-result v0

    const/high16 v1, 0x40000000    # 2.0f

    div-float/2addr v0, v1

    iget-object v2, p0, Lcom/github/mikephil/charting/charts/PieChart;->P:Landroid/graphics/RectF;

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

    move-result v2

    div-float/2addr v2, v1

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

    move-result v0

    return v0
.end method

.method protected getRequiredBaseOffset()F
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method protected getRequiredLegendOffset()F
    .registers 3

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

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/LegendRenderer;->d()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Paint;->getTextSize()F

    move-result v0

    const/high16 v1, 0x40000000    # 2.0f

    mul-float v0, v0, v1

    return v0
.end method

.method public getTransparentCircleRadius()F
    .registers 2

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->d0:F

    return v0
.end method

.method public getXAxis()Lcom/github/mikephil/charting/components/XAxis;
    .registers 3
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "PieChart has no XAxis"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method protected h(Lcom/github/mikephil/charting/highlight/Highlight;)[F
    .registers 12

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

    move-result-object v0

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

    move-result v1

    const/high16 v2, 0x41200000    # 10.0f

    div-float v2, v1, v2

    const v3, 0x40666666    # 3.6f

    mul-float v2, v2, v3

    invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/PieChart;->D()Z

    move-result v3

    const/high16 v4, 0x40000000    # 2.0f

    if-eqz v3, :cond_26

    const/high16 v2, 0x42c80000    # 100.0f

    div-float v2, v1, v2

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

    move-result v3

    mul-float v2, v2, v3

    sub-float v2, v1, v2

    div-float/2addr v2, v4

    :cond_26
    sub-float/2addr v1, v2

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

    move-result v2

    invoke-virtual {p1}, Lcom/github/mikephil/charting/highlight/Highlight;->e()F

    move-result p1

    float-to-int p1, p1

    iget-object v3, p0, Lcom/github/mikephil/charting/charts/PieChart;->R:[F

    aget v3, v3, p1

    div-float/2addr v3, v4

    float-to-double v4, v1

    iget-object v1, p0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    aget v1, v1, p1

    add-float/2addr v1, v2

    sub-float/2addr v1, v3

    iget-object v6, p0, Lcom/github/mikephil/charting/charts/Chart;->z:Lcom/github/mikephil/charting/animation/ChartAnimator;

    invoke-virtual {v6}, Lcom/github/mikephil/charting/animation/ChartAnimator;->getPhaseY()F

    move-result v6

    mul-float v1, v1, v6

    float-to-double v6, v1

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

    move-result-wide v6

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

    move-result-wide v6

    mul-double v6, v6, v4

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

    float-to-double v8, v1

    add-double/2addr v6, v8

    double-to-float v1, v6

    iget-object v6, p0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    aget p1, v6, p1

    add-float/2addr v2, p1

    sub-float/2addr v2, v3

    iget-object p1, p0, Lcom/github/mikephil/charting/charts/Chart;->z:Lcom/github/mikephil/charting/animation/ChartAnimator;

    invoke-virtual {p1}, Lcom/github/mikephil/charting/animation/ChartAnimator;->getPhaseY()F

    move-result p1

    mul-float v2, v2, p1

    float-to-double v2, v2

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

    move-result-wide v2

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

    move-result-wide v2

    mul-double v4, v4, v2

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

    float-to-double v2, p1

    add-double/2addr v4, v2

    double-to-float p1, v4

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

    const/4 v0, 0x2

    new-array v0, v0, [F

    const/4 v2, 0x0

    aput v1, v0, v2

    const/4 v1, 0x1

    aput p1, v0, v1

    return-object v0
.end method

.method protected k()V
    .registers 4

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

    new-instance v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    iget-object v1, p0, Lcom/github/mikephil/charting/charts/Chart;->z:Lcom/github/mikephil/charting/animation/ChartAnimator;

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

    invoke-direct {v0, p0, v1, v2}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;-><init>(Lcom/github/mikephil/charting/charts/PieChart;Lcom/github/mikephil/charting/animation/ChartAnimator;Lcom/github/mikephil/charting/utils/ViewPortHandler;)V

    iput-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->w:Lcom/github/mikephil/charting/renderer/DataRenderer;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->n:Lcom/github/mikephil/charting/components/XAxis;

    new-instance v0, Lcom/github/mikephil/charting/highlight/PieHighlighter;

    invoke-direct {v0, p0}, Lcom/github/mikephil/charting/highlight/PieHighlighter;-><init>(Lcom/github/mikephil/charting/charts/PieChart;)V

    iput-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->x:Lcom/github/mikephil/charting/highlight/IHighlighter;

    return-void
.end method

.method protected onDetachedFromWindow()V
    .registers 3

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

    if-eqz v0, :cond_d

    instance-of v1, v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    if-eqz v1, :cond_d

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->q()V

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

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 4

    invoke-super {p0, p1}, Lcom/github/mikephil/charting/charts/Chart;->onDraw(Landroid/graphics/Canvas;)V

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

    if-nez v0, :cond_8

    return-void

    :cond_8
    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->w:Lcom/github/mikephil/charting/renderer/DataRenderer;

    invoke-virtual {v0, p1}, Lcom/github/mikephil/charting/renderer/DataRenderer;->b(Landroid/graphics/Canvas;)V

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

    move-result v0

    if-eqz v0, :cond_1a

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

    iget-object v1, p0, Lcom/github/mikephil/charting/charts/Chart;->F:[Lcom/github/mikephil/charting/highlight/Highlight;

    invoke-virtual {v0, p1, v1}, Lcom/github/mikephil/charting/renderer/DataRenderer;->d(Landroid/graphics/Canvas;[Lcom/github/mikephil/charting/highlight/Highlight;)V

    :cond_1a
    iget-object v0, p0, Lcom/github/mikephil/charting/charts/Chart;->w:Lcom/github/mikephil/charting/renderer/DataRenderer;

    invoke-virtual {v0, p1}, Lcom/github/mikephil/charting/renderer/DataRenderer;->c(Landroid/graphics/Canvas;)V

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

    invoke-virtual {v0, p1}, Lcom/github/mikephil/charting/renderer/DataRenderer;->e(Landroid/graphics/Canvas;)V

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

    invoke-virtual {v0, p1}, Lcom/github/mikephil/charting/renderer/LegendRenderer;->e(Landroid/graphics/Canvas;)V

    invoke-virtual {p0, p1}, Lcom/github/mikephil/charting/charts/Chart;->d(Landroid/graphics/Canvas;)V

    invoke-virtual {p0, p1}, Lcom/github/mikephil/charting/charts/Chart;->e(Landroid/graphics/Canvas;)V

    return-void
.end method

.method protected s()V
    .registers 1

    invoke-direct {p0}, Lcom/github/mikephil/charting/charts/PieChart;->A()V

    return-void
.end method

.method public setCenterText(Ljava/lang/CharSequence;)V
    .registers 2

    if-nez p1, :cond_7

    const-string p1, ""

    iput-object p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->a0:Ljava/lang/CharSequence;

    goto :goto_9

    :cond_7
    iput-object p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->a0:Ljava/lang/CharSequence;

    :goto_9
    return-void
.end method

.method public setCenterTextColor(I)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->l()Landroid/text/TextPaint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/text/TextPaint;->setColor(I)V

    return-void
.end method

.method public setCenterTextRadiusPercent(F)V
    .registers 2

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->f0:F

    return-void
.end method

.method public setCenterTextSize(F)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->l()Landroid/text/TextPaint;

    move-result-object v0

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

    move-result p1

    invoke-virtual {v0, p1}, Landroid/text/TextPaint;->setTextSize(F)V

    return-void
.end method

.method public setCenterTextSizePixels(F)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->l()Landroid/text/TextPaint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/text/TextPaint;->setTextSize(F)V

    return-void
.end method

.method public setCenterTextTypeface(Landroid/graphics/Typeface;)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->l()Landroid/text/TextPaint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/text/TextPaint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    return-void
.end method

.method public setDrawCenterText(Z)V
    .registers 2

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

    return-void
.end method

.method public setDrawEntryLabels(Z)V
    .registers 2

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

    return-void
.end method

.method public setDrawHoleEnabled(Z)V
    .registers 2

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

    return-void
.end method

.method public setDrawRoundedSlices(Z)V
    .registers 2

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

    return-void
.end method

.method public setDrawSliceText(Z)V
    .registers 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

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

    return-void
.end method

.method public setDrawSlicesUnderHole(Z)V
    .registers 2

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

    return-void
.end method

.method public setEntryLabelColor(I)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->m()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method public setEntryLabelTextSize(F)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->m()Landroid/graphics/Paint;

    move-result-object v0

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

    move-result p1

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTextSize(F)V

    return-void
.end method

.method public setEntryLabelTypeface(Landroid/graphics/Typeface;)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->m()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    return-void
.end method

.method public setHoleColor(I)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->n()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method public setHoleRadius(F)V
    .registers 2

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->c0:F

    return-void
.end method

.method public setMaxAngle(F)V
    .registers 4

    const/high16 v0, 0x43b40000    # 360.0f

    cmpl-float v1, p1, v0

    if-lez v1, :cond_8

    const/high16 p1, 0x43b40000    # 360.0f

    :cond_8
    const/high16 v0, 0x42b40000    # 90.0f

    cmpg-float v1, p1, v0

    if-gez v1, :cond_10

    const/high16 p1, 0x42b40000    # 90.0f

    :cond_10
    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    return-void
.end method

.method public setMinAngleForSlices(F)V
    .registers 6

    iget v0, p0, Lcom/github/mikephil/charting/charts/PieChart;->g0:F

    const/high16 v1, 0x40000000    # 2.0f

    div-float v2, v0, v1

    const/4 v3, 0x0

    cmpl-float v2, p1, v2

    if-lez v2, :cond_e

    div-float p1, v0, v1

    goto :goto_13

    :cond_e
    cmpg-float v0, p1, v3

    if-gez v0, :cond_13

    const/4 p1, 0x0

    :cond_13
    :goto_13
    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->h0:F

    return-void
.end method

.method public setTransparentCircleAlpha(I)V
    .registers 3

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->o()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAlpha(I)V

    return-void
.end method

.method public setTransparentCircleColor(I)V
    .registers 4

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

    check-cast v0, Lcom/github/mikephil/charting/renderer/PieChartRenderer;

    invoke-virtual {v0}, Lcom/github/mikephil/charting/renderer/PieChartRenderer;->o()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Paint;->getAlpha()I

    move-result v1

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    return-void
.end method

.method public setTransparentCircleRadius(F)V
    .registers 2

    iput p1, p0, Lcom/github/mikephil/charting/charts/PieChart;->d0:F

    return-void
.end method

.method public setUsePercentValues(Z)V
    .registers 2

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

    return-void
.end method

.method public v(F)I
    .registers 5

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

    move-result v0

    sub-float/2addr p1, v0

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

    move-result p1

    const/4 v0, 0x0

    :goto_a
    iget-object v1, p0, Lcom/github/mikephil/charting/charts/PieChart;->S:[F

    array-length v2, v1

    if-ge v0, v2, :cond_19

    aget v1, v1, v0

    cmpl-float v1, v1, p1

    if-lez v1, :cond_16

    return v0

    :cond_16
    add-int/lit8 v0, v0, 0x1

    goto :goto_a

    :cond_19
    const/4 p1, -0x1

    return p1
.end method