Legend.smali

.class public Lcom/github/mikephil/charting/components/Legend;
.super Lcom/github/mikephil/charting/components/ComponentBase;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/github/mikephil/charting/components/Legend$LegendDirection;,
        Lcom/github/mikephil/charting/components/Legend$LegendOrientation;,
        Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;,
        Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;,
        Lcom/github/mikephil/charting/components/Legend$LegendForm;
    }
.end annotation


# instance fields
.field private A:Z

.field private B:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/github/mikephil/charting/utils/FSize;",
            ">;"
        }
    .end annotation
.end field

.field private C:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field private D:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/github/mikephil/charting/utils/FSize;",
            ">;"
        }
    .end annotation
.end field

.field private g:[Lcom/github/mikephil/charting/components/LegendEntry;

.field private h:[Lcom/github/mikephil/charting/components/LegendEntry;

.field private i:Z

.field private j:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

.field private k:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

.field private l:Lcom/github/mikephil/charting/components/Legend$LegendOrientation;

.field private m:Z

.field private n:Lcom/github/mikephil/charting/components/Legend$LegendDirection;

.field private o:Lcom/github/mikephil/charting/components/Legend$LegendForm;

.field private p:F

.field private q:F

.field private r:Landroid/graphics/DashPathEffect;

.field private s:F

.field private t:F

.field private u:F

.field private v:F

.field private w:F

.field public x:F

.field public y:F

.field public z:F


# direct methods
.method public constructor <init>()V
    .registers 6

    invoke-direct {p0}, Lcom/github/mikephil/charting/components/ComponentBase;-><init>()V

    const/4 v0, 0x0

    new-array v1, v0, [Lcom/github/mikephil/charting/components/LegendEntry;

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    iput-boolean v0, p0, Lcom/github/mikephil/charting/components/Legend;->i:Z

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

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->j:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

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

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->k:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

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

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->l:Lcom/github/mikephil/charting/components/Legend$LegendOrientation;

    iput-boolean v0, p0, Lcom/github/mikephil/charting/components/Legend;->m:Z

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

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->n:Lcom/github/mikephil/charting/components/Legend$LegendDirection;

    sget-object v1, Lcom/github/mikephil/charting/components/Legend$LegendForm;->i:Lcom/github/mikephil/charting/components/Legend$LegendForm;

    iput-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->o:Lcom/github/mikephil/charting/components/Legend$LegendForm;

    const/high16 v1, 0x41000000    # 8.0f

    iput v1, p0, Lcom/github/mikephil/charting/components/Legend;->p:F

    const/high16 v1, 0x40400000    # 3.0f

    iput v1, p0, Lcom/github/mikephil/charting/components/Legend;->q:F

    const/4 v2, 0x0

    iput-object v2, p0, Lcom/github/mikephil/charting/components/Legend;->r:Landroid/graphics/DashPathEffect;

    const/high16 v2, 0x40c00000    # 6.0f

    iput v2, p0, Lcom/github/mikephil/charting/components/Legend;->s:F

    const/4 v2, 0x0

    iput v2, p0, Lcom/github/mikephil/charting/components/Legend;->t:F

    const/high16 v3, 0x40a00000    # 5.0f

    iput v3, p0, Lcom/github/mikephil/charting/components/Legend;->u:F

    iput v1, p0, Lcom/github/mikephil/charting/components/Legend;->v:F

    const v4, 0x3f733333    # 0.95f

    iput v4, p0, Lcom/github/mikephil/charting/components/Legend;->w:F

    iput v2, p0, Lcom/github/mikephil/charting/components/Legend;->x:F

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

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

    iput-boolean v0, p0, Lcom/github/mikephil/charting/components/Legend;->A:Z

    new-instance v0, Ljava/util/ArrayList;

    const/16 v2, 0x10

    invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->C:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    const/high16 v0, 0x41200000    # 10.0f

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

    move-result v0

    iput v0, p0, Lcom/github/mikephil/charting/components/ComponentBase;->e:F

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

    move-result v0

    iput v0, p0, Lcom/github/mikephil/charting/components/ComponentBase;->b:F

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

    move-result v0

    iput v0, p0, Lcom/github/mikephil/charting/components/ComponentBase;->c:F

    return-void
.end method


# virtual methods
.method public A()F
    .registers 2

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

    return v0
.end method

.method public B()F
    .registers 2

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

    return v0
.end method

.method public C()Z
    .registers 2

    iget-boolean v0, p0, Lcom/github/mikephil/charting/components/Legend;->m:Z

    return v0
.end method

.method public D()Z
    .registers 2

    iget-boolean v0, p0, Lcom/github/mikephil/charting/components/Legend;->i:Z

    return v0
.end method

.method public E(Ljava/util/List;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/github/mikephil/charting/components/LegendEntry;",
            ">;)V"
        }
    .end annotation

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Lcom/github/mikephil/charting/components/LegendEntry;

    invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [Lcom/github/mikephil/charting/components/LegendEntry;

    iput-object p1, p0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    return-void
.end method

.method public h(Landroid/graphics/Paint;Lcom/github/mikephil/charting/utils/ViewPortHandler;)V
    .registers 27

    move-object/from16 v0, p0

    move-object/from16 v1, p1

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

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

    move-result v2

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

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

    move-result v3

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

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

    move-result v4

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

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

    move-result v5

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

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

    move-result v6

    iget-boolean v7, v0, Lcom/github/mikephil/charting/components/Legend;->A:Z

    iget-object v8, v0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    array-length v9, v8

    invoke-virtual/range {p0 .. p1}, Lcom/github/mikephil/charting/components/Legend;->w(Landroid/graphics/Paint;)F

    invoke-virtual/range {p0 .. p1}, Lcom/github/mikephil/charting/components/Legend;->v(Landroid/graphics/Paint;)F

    move-result v10

    iput v10, v0, Lcom/github/mikephil/charting/components/Legend;->z:F

    sget-object v10, Lcom/github/mikephil/charting/components/Legend$1;->a:[I

    iget-object v11, v0, Lcom/github/mikephil/charting/components/Legend;->l:Lcom/github/mikephil/charting/components/Legend$LegendOrientation;

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

    move-result v11

    aget v10, v10, v11

    const/4 v12, 0x1

    if-eq v10, v12, :cond_16b

    const/4 v14, 0x2

    if-eq v10, v14, :cond_42

    goto/16 :goto_1da

    :cond_42
    invoke-static/range {p1 .. p1}, Lcom/github/mikephil/charting/utils/Utils;->k(Landroid/graphics/Paint;)F

    move-result v10

    invoke-static/range {p1 .. p1}, Lcom/github/mikephil/charting/utils/Utils;->m(Landroid/graphics/Paint;)F

    move-result v14

    add-float/2addr v14, v6

    invoke-virtual/range {p2 .. p2}, Lcom/github/mikephil/charting/utils/ViewPortHandler;->e()F

    move-result v6

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

    mul-float v6, v6, v15

    iget-object v15, v0, Lcom/github/mikephil/charting/components/Legend;->C:Ljava/util/List;

    invoke-interface {v15}, Ljava/util/List;->clear()V

    iget-object v15, v0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

    invoke-interface {v15}, Ljava/util/List;->clear()V

    iget-object v15, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-interface {v15}, Ljava/util/List;->clear()V

    const/4 v11, 0x0

    const/4 v12, 0x0

    const/4 v13, -0x1

    const/16 v17, 0x0

    const/16 v18, 0x0

    :goto_69
    if-ge v11, v9, :cond_143

    aget-object v15, v8, v11

    move/from16 v19, v2

    iget-object v2, v15, Lcom/github/mikephil/charting/components/LegendEntry;->b:Lcom/github/mikephil/charting/components/Legend$LegendForm;

    move/from16 v20, v5

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

    if-eq v2, v5, :cond_79

    const/4 v2, 0x1

    goto :goto_7a

    :cond_79
    const/4 v2, 0x0

    :goto_7a
    iget v5, v15, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

    invoke-static {v5}, Ljava/lang/Float;->isNaN(F)Z

    move-result v5

    if-eqz v5, :cond_85

    move/from16 v5, v19

    goto :goto_8b

    :cond_85
    iget v5, v15, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

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

    move-result v5

    :goto_8b
    iget-object v15, v15, Lcom/github/mikephil/charting/components/LegendEntry;->a:Ljava/lang/String;

    move-object/from16 v21, v8

    iget-object v8, v0, Lcom/github/mikephil/charting/components/Legend;->C:Ljava/util/List;

    move/from16 v22, v14

    sget-object v14, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-interface {v8, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 v8, -0x1

    if-ne v13, v8, :cond_9d

    const/4 v8, 0x0

    goto :goto_9f

    :cond_9d
    add-float v8, v17, v3

    :goto_9f
    if-eqz v15, :cond_bf

    iget-object v14, v0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

    move/from16 v17, v3

    invoke-static {v1, v15}, Lcom/github/mikephil/charting/utils/Utils;->b(Landroid/graphics/Paint;Ljava/lang/String;)Lcom/github/mikephil/charting/utils/FSize;

    move-result-object v3

    invoke-interface {v14, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-eqz v2, :cond_b1

    add-float v2, v4, v5

    goto :goto_b2

    :cond_b1
    const/4 v2, 0x0

    :goto_b2
    add-float/2addr v8, v2

    iget-object v2, v0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/github/mikephil/charting/utils/FSize;

    iget v2, v2, Lcom/github/mikephil/charting/utils/FSize;->c:F

    add-float/2addr v8, v2

    goto :goto_d8

    :cond_bf
    move/from16 v17, v3

    iget-object v3, v0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

    move/from16 v23, v5

    const/4 v14, 0x0

    invoke-static {v14, v14}, Lcom/github/mikephil/charting/utils/FSize;->b(FF)Lcom/github/mikephil/charting/utils/FSize;

    move-result-object v5

    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-eqz v2, :cond_d2

    move/from16 v5, v23

    goto :goto_d3

    :cond_d2
    const/4 v5, 0x0

    :goto_d3
    add-float/2addr v8, v5

    const/4 v2, -0x1

    if-ne v13, v2, :cond_d8

    move v13, v11

    :cond_d8
    :goto_d8
    if-nez v15, :cond_e1

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

    if-ne v11, v2, :cond_df

    goto :goto_e1

    :cond_df
    const/4 v14, 0x0

    goto :goto_130

    :cond_e1
    :goto_e1
    move/from16 v2, v18

    const/4 v14, 0x0

    cmpl-float v3, v2, v14

    if-nez v3, :cond_ea

    const/4 v5, 0x0

    goto :goto_ec

    :cond_ea
    move/from16 v5, v20

    :goto_ec
    if-eqz v7, :cond_117

    if-eqz v3, :cond_117

    sub-float v3, v6, v2

    add-float v16, v5, v8

    cmpl-float v3, v3, v16

    if-ltz v3, :cond_f9

    goto :goto_117

    :cond_f9
    iget-object v3, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-static {v2, v10}, Lcom/github/mikephil/charting/utils/FSize;->b(FF)Lcom/github/mikephil/charting/utils/FSize;

    move-result-object v5

    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

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

    move-result v2

    iget-object v3, v0, Lcom/github/mikephil/charting/components/Legend;->C:Ljava/util/List;

    const/4 v5, -0x1

    if-le v13, v5, :cond_10d

    move v12, v13

    goto :goto_10e

    :cond_10d
    move v12, v11

    :goto_10e
    sget-object v5, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-interface {v3, v12, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    move v12, v2

    move v2, v8

    const/4 v3, -0x1

    goto :goto_11d

    :cond_117
    :goto_117
    const/4 v3, -0x1

    add-float/2addr v5, v8

    add-float v18, v2, v5

    move/from16 v2, v18

    :goto_11d
    add-int/lit8 v5, v9, -0x1

    if-ne v11, v5, :cond_12e

    iget-object v5, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-static {v2, v10}, Lcom/github/mikephil/charting/utils/FSize;->b(FF)Lcom/github/mikephil/charting/utils/FSize;

    move-result-object v3

    invoke-interface {v5, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

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

    move-result v12

    :cond_12e
    move/from16 v18, v2

    :goto_130
    if-eqz v15, :cond_133

    const/4 v13, -0x1

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

    move/from16 v3, v17

    move/from16 v2, v19

    move/from16 v5, v20

    move/from16 v14, v22

    move/from16 v17, v8

    move-object/from16 v8, v21

    goto/16 :goto_69

    :cond_143
    move/from16 v22, v14

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

    iget-object v1, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    int-to-float v1, v1

    mul-float v10, v10, v1

    iget-object v1, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_15a

    const/4 v11, 0x0

    goto :goto_163

    :cond_15a
    iget-object v1, v0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x1

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

    :goto_163
    int-to-float v1, v11

    mul-float v14, v22, v1

    add-float/2addr v10, v14

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

    goto/16 :goto_1da

    :cond_16b
    move/from16 v19, v2

    move/from16 v17, v3

    move-object/from16 v21, v8

    const/4 v2, 0x1

    const/4 v14, 0x0

    invoke-static/range {p1 .. p1}, Lcom/github/mikephil/charting/utils/Utils;->k(Landroid/graphics/Paint;)F

    move-result v3

    const/4 v5, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

    :goto_17c
    if-ge v10, v9, :cond_1d6

    aget-object v12, v21, v10

    iget-object v13, v12, Lcom/github/mikephil/charting/components/LegendEntry;->b:Lcom/github/mikephil/charting/components/Legend$LegendForm;

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

    if-eq v13, v15, :cond_188

    const/4 v13, 0x1

    goto :goto_189

    :cond_188
    const/4 v13, 0x0

    :goto_189
    iget v15, v12, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

    invoke-static {v15}, Ljava/lang/Float;->isNaN(F)Z

    move-result v15

    if-eqz v15, :cond_194

    move/from16 v15, v19

    goto :goto_19a

    :cond_194
    iget v15, v12, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

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

    move-result v15

    :goto_19a
    iget-object v12, v12, Lcom/github/mikephil/charting/components/LegendEntry;->a:Ljava/lang/String;

    if-nez v11, :cond_19f

    const/4 v8, 0x0

    :cond_19f
    if-eqz v13, :cond_1a6

    if-eqz v11, :cond_1a5

    add-float v8, v8, v17

    :cond_1a5
    add-float/2addr v8, v15

    :cond_1a6
    if-eqz v12, :cond_1c7

    if-eqz v13, :cond_1ae

    if-nez v11, :cond_1ae

    add-float/2addr v8, v4

    goto :goto_1b9

    :cond_1ae
    if-eqz v11, :cond_1b9

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

    move-result v5

    add-float v8, v3, v6

    add-float/2addr v7, v8

    const/4 v8, 0x0

    const/4 v11, 0x0

    :cond_1b9
    :goto_1b9
    invoke-static {v1, v12}, Lcom/github/mikephil/charting/utils/Utils;->d(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v12

    int-to-float v12, v12

    add-float/2addr v8, v12

    add-int/lit8 v12, v9, -0x1

    if-ge v10, v12, :cond_1cf

    add-float v12, v3, v6

    add-float/2addr v7, v12

    goto :goto_1cf

    :cond_1c7
    add-float/2addr v8, v15

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

    if-ge v10, v11, :cond_1ce

    add-float v8, v8, v17

    :cond_1ce
    const/4 v11, 0x1

    :cond_1cf
    :goto_1cf
    invoke-static {v5, v8}, Ljava/lang/Math;->max(FF)F

    move-result v5

    add-int/lit8 v10, v10, 0x1

    goto :goto_17c

    :cond_1d6
    iput v5, v0, Lcom/github/mikephil/charting/components/Legend;->x:F

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

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

    iget v2, v0, Lcom/github/mikephil/charting/components/ComponentBase;->c:F

    add-float/2addr v1, v2

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

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

    iget v2, v0, Lcom/github/mikephil/charting/components/ComponentBase;->b:F

    add-float/2addr v1, v2

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

    return-void
.end method

.method public i()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->C:Ljava/util/List;

    return-object v0
.end method

.method public j()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/github/mikephil/charting/utils/FSize;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->B:Ljava/util/List;

    return-object v0
.end method

.method public k()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/github/mikephil/charting/utils/FSize;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->D:Ljava/util/List;

    return-object v0
.end method

.method public l()Lcom/github/mikephil/charting/components/Legend$LegendDirection;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->n:Lcom/github/mikephil/charting/components/Legend$LegendDirection;

    return-object v0
.end method

.method public m()[Lcom/github/mikephil/charting/components/LegendEntry;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    return-object v0
.end method

.method public n()[Lcom/github/mikephil/charting/components/LegendEntry;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->h:[Lcom/github/mikephil/charting/components/LegendEntry;

    return-object v0
.end method

.method public o()Lcom/github/mikephil/charting/components/Legend$LegendForm;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->o:Lcom/github/mikephil/charting/components/Legend$LegendForm;

    return-object v0
.end method

.method public p()Landroid/graphics/DashPathEffect;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->r:Landroid/graphics/DashPathEffect;

    return-object v0
.end method

.method public q()F
    .registers 2

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

    return v0
.end method

.method public r()F
    .registers 2

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

    return v0
.end method

.method public s()F
    .registers 2

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

    return v0
.end method

.method public t()Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->j:Lcom/github/mikephil/charting/components/Legend$LegendHorizontalAlignment;

    return-object v0
.end method

.method public u()F
    .registers 2

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

    return v0
.end method

.method public v(Landroid/graphics/Paint;)F
    .registers 8

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    array-length v1, v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_5
    if-ge v3, v1, :cond_1b

    aget-object v4, v0, v3

    iget-object v4, v4, Lcom/github/mikephil/charting/components/LegendEntry;->a:Ljava/lang/String;

    if-nez v4, :cond_e

    goto :goto_18

    :cond_e
    invoke-static {p1, v4}, Lcom/github/mikephil/charting/utils/Utils;->a(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v4

    int-to-float v4, v4

    cmpl-float v5, v4, v2

    if-lez v5, :cond_18

    move v2, v4

    :cond_18
    :goto_18
    add-int/lit8 v3, v3, 0x1

    goto :goto_5

    :cond_1b
    return v2
.end method

.method public w(Landroid/graphics/Paint;)F
    .registers 11

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

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

    move-result v0

    iget-object v1, p0, Lcom/github/mikephil/charting/components/Legend;->g:[Lcom/github/mikephil/charting/components/LegendEntry;

    array-length v2, v1

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    :goto_d
    if-ge v5, v2, :cond_39

    aget-object v6, v1, v5

    iget v7, v6, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

    invoke-static {v7}, Ljava/lang/Float;->isNaN(F)Z

    move-result v7

    if-eqz v7, :cond_1c

    iget v7, p0, Lcom/github/mikephil/charting/components/Legend;->p:F

    goto :goto_1e

    :cond_1c
    iget v7, v6, Lcom/github/mikephil/charting/components/LegendEntry;->c:F

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

    move-result v7

    cmpl-float v8, v7, v4

    if-lez v8, :cond_27

    move v4, v7

    :cond_27
    iget-object v6, v6, Lcom/github/mikephil/charting/components/LegendEntry;->a:Ljava/lang/String;

    if-nez v6, :cond_2c

    goto :goto_36

    :cond_2c
    invoke-static {p1, v6}, Lcom/github/mikephil/charting/utils/Utils;->d(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v6

    int-to-float v6, v6

    cmpl-float v7, v6, v3

    if-lez v7, :cond_36

    move v3, v6

    :cond_36
    :goto_36
    add-int/lit8 v5, v5, 0x1

    goto :goto_d

    :cond_39
    add-float/2addr v3, v4

    add-float/2addr v3, v0

    return v3
.end method

.method public x()Lcom/github/mikephil/charting/components/Legend$LegendOrientation;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->l:Lcom/github/mikephil/charting/components/Legend$LegendOrientation;

    return-object v0
.end method

.method public y()F
    .registers 2

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

    return v0
.end method

.method public z()Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;
    .registers 2

    iget-object v0, p0, Lcom/github/mikephil/charting/components/Legend;->k:Lcom/github/mikephil/charting/components/Legend$LegendVerticalAlignment;

    return-object v0
.end method