.class public Lcom/moji/mjweather/dailydetail/view/TideFloatView;
.super Landroid/view/View;
.source "TideFloatView.java"


# instance fields
.field private a:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector<",
            "Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector<",
            "Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;",
            ">;"
        }
    .end annotation
.end field

.field private c:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector<",
            "Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;",
            ">;"
        }
    .end annotation
.end field

.field private d:F

.field private e:F

.field private f:Landroid/graphics/Paint;

.field private g:Landroid/graphics/Paint;

.field private h:Landroid/graphics/Paint;

.field private i:Landroid/graphics/Paint;

.field private j:Landroid/graphics/Bitmap;

.field private k:F

.field private l:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 49
    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const-string p1, ""

    .line 38
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->l:Ljava/lang/String;

    .line 50
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 54
    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const-string p1, ""

    .line 38
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->l:Ljava/lang/String;

    .line 55
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 59
    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const-string p1, ""

    .line 38
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->l:Ljava/lang/String;

    .line 60
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a()V

    return-void
.end method

.method private a(F)F
    .locals 16

    move-object/from16 v1, p0

    move/from16 v0, p1

    const/4 v2, 0x0

    .line 253
    :try_start_0
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    if-eqz v3, :cond_3

    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_3

    .line 254
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v3

    cmpg-float v3, v0, v3

    if-gez v3, :cond_0

    .line 255
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v3, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v3

    :goto_0
    move v2, v3

    goto/16 :goto_1

    .line 256
    :cond_0
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    iget-object v5, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v5}, Ljava/util/Vector;->size()I

    move-result v5

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

    invoke-virtual {v3, v5}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v3

    cmpl-float v3, v0, v3

    if-lez v3, :cond_1

    .line 257
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    iget-object v4, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-virtual {v3, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v3

    goto :goto_0

    .line 259
    :cond_1
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-ge v4, v3, :cond_3

    .line 260
    iget-object v3, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v3, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v3

    .line 261
    iget-object v5, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v5, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v5}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v5

    .line 262
    iget-object v6, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    add-int/lit8 v4, v4, 0x1

    invoke-virtual {v6, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v6}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v6

    .line 263
    iget-object v7, v1, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v7, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v7

    cmpg-float v8, v0, v6

    if-gtz v8, :cond_1

    cmpl-float v8, v0, v3

    if-ltz v8, :cond_1

    cmpl-float v4, v7, v5

    if-eqz v4, :cond_2

    sub-float v4, v0, v3

    sub-float/2addr v6, v3

    div-float/2addr v4, v6

    float-to-double v8, v5

    const/high16 v3, 0x3f800000    # 1.0f

    sub-float/2addr v3, v4

    float-to-double v10, v3

    const-wide/high16 v12, 0x4008000000000000L    # 3.0

    .line 267
    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v14
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    invoke-static {v8, v9}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v8, v8, v14

    const/high16 v6, 0x40400000    # 3.0f

    mul-float v5, v5, v6

    mul-float v5, v5, v4

    float-to-double v14, v5

    const-wide/high16 v12, 0x4000000000000000L    # 2.0

    :try_start_1
    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v10
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    invoke-static {v14, v15}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v14, v14, v10

    const/4 v5, 0x0

    add-double/2addr v8, v14

    mul-float v6, v6, v7

    mul-float v6, v6, v3

    float-to-double v5, v6

    float-to-double v3, v4

    .line 268
    :try_start_2
    invoke-static {v3, v4, v12, v13}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v10
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v5, v5, v10

    const/4 v10, 0x0

    add-double/2addr v8, v5

    float-to-double v5, v7

    const-wide/high16 v10, 0x4008000000000000L    # 3.0

    :try_start_3
    invoke-static {v3, v4, v10, v11}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v3
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v5, v5, v3

    add-double/2addr v8, v5

    double-to-float v2, v8

    goto :goto_1

    :cond_2
    move v2, v5

    :cond_3
    :goto_1
    :try_start_4
    const-string v3, "TideFloatView"

    .line 278
    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, "X:"

    invoke-virtual {v4, v5}, 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, "Y:"

    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

    invoke-static {v3, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    const-string v3, "TideFloatView"

    .line 280
    invoke-static {v3, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_2
    return v2
.end method

.method private a(FF)F
    .locals 4

    .line 286
    iget-object p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    if-eqz p2, :cond_3

    iget-object p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {p2}, Ljava/util/Vector;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_0

    goto :goto_1

    .line 289
    :cond_0
    iget-object p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {p2}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result p2

    const/high16 v0, 0x42080000    # 34.0f

    .line 291
    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v0

    int-to-float v0, v0

    add-float/2addr v0, p2

    .line 292
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v1

    int-to-float v1, v1

    const/high16 v2, 0x40000000    # 2.0f

    mul-float v2, v2, p2

    sub-float/2addr v1, v2

    cmpg-float v2, p1, v0

    if-gez v2, :cond_1

    move v1, v0

    goto :goto_0

    :cond_1
    cmpl-float v2, p1, v1

    if-lez v2, :cond_2

    goto :goto_0

    :cond_2
    move v1, p1

    :goto_0
    const-string v2, "TideFloatView"

    .line 295
    new-instance v3, Ljava/lang/StringBuilder;

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

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

    const-string p2, ":"

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

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

    const-string p2, ":"

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

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

    const-string p1, ":"

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

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

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

    move-result-object p1

    invoke-static {v2, p1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    :cond_3
    :goto_1
    const/4 p1, 0x0

    return p1
.end method

.method private a()V
    .locals 8

    .line 64
    new-instance v0, Landroid/graphics/Paint;

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    .line 65
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    const v1, 0xffffff

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

    .line 66
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    const/16 v2, 0x50

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

    .line 67
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 69
    new-instance v0, Landroid/graphics/Paint;

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    .line 70
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    const/4 v2, 0x0

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

    .line 71
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    const/16 v2, 0xff

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

    .line 72
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 73
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    const v2, 0x7f070263

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(I)F

    move-result v2

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

    .line 75
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    .line 76
    new-instance v0, Landroid/graphics/Paint;

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    .line 77
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

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

    .line 78
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    const/16 v2, 0x16

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

    .line 79
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    const/high16 v2, 0x3f800000    # 1.0f

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

    .line 80
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 83
    :cond_0
    new-instance v0, Landroid/graphics/Paint;

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

    .line 84
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

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

    .line 85
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

    const/16 v1, 0x4d

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

    .line 86
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 87
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

    const/high16 v1, 0x40000000    # 2.0f

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

    .line 89
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v0

    const/16 v1, 0x438

    if-le v0, v1, :cond_1

    const/high16 v0, 0x3fc00000    # 1.5f

    .line 91
    iput v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    goto :goto_0

    :cond_1
    const/16 v1, 0x2d0

    if-le v0, v1, :cond_2

    const v0, 0x3f99999a    # 1.2f

    .line 93
    iput v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    goto :goto_0

    :cond_2
    const/16 v1, 0x1e0

    if-le v0, v1, :cond_3

    const/high16 v0, 0x3f400000    # 0.75f

    .line 95
    iput v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    goto :goto_0

    :cond_3
    const v0, 0x3f0ccccd    # 0.55f

    .line 97
    iput v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    :goto_0
    const v0, 0x7f08077c

    .line 100
    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->d(I)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_5

    .line 101
    iget v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    const/4 v2, 0x0

    cmpg-float v0, v0, v2

    if-gtz v0, :cond_4

    goto :goto_1

    .line 104
    :cond_4
    new-instance v6, Landroid/graphics/Matrix;

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

    .line 105
    iget v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    iget v2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->k:F

    invoke-virtual {v6, v0, v2}, Landroid/graphics/Matrix;->postScale(FF)Z

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 106
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    const/4 v7, 0x1

    invoke-static/range {v1 .. v7}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->j:Landroid/graphics/Bitmap;

    goto :goto_2

    :cond_5
    :goto_1
    const v0, 0x7f0801a8

    .line 102
    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->d(I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->j:Landroid/graphics/Bitmap;

    :goto_2
    return-void
.end method


# virtual methods
.method public a(I)F
    .locals 11

    .line 300
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    .line 301
    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_4

    if-ltz p1, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-lt p1, v0, :cond_0

    goto/16 :goto_1

    .line 304
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->getWidth()I

    move-result v0

    int-to-float v0, v0

    const/high16 v2, 0x42480000    # 50.0f

    .line 309
    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v2

    int-to-float v2, v2

    const/high16 v3, 0x41200000    # 10.0f

    .line 310
    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v3

    int-to-float v3, v3

    .line 311
    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    invoke-virtual {v4}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v4

    move v1, v0

    move v6, v1

    const/4 v5, 0x0

    :cond_1
    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_3

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    .line 312
    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v8

    const-string v9, "TAG_X_RANGE"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 313
    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v6

    sub-float/2addr v6, v0

    .line 315
    :cond_2
    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v8

    const-string v9, "TAG_BEGIN_AND_END_X"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 316
    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v1

    .line 317
    invoke-virtual {v7}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v5

    sub-float v5, v0, v5

    move v10, v5

    move v5, v1

    move v1, v10

    goto :goto_0

    :cond_3
    sub-float/2addr v1, v5

    div-float/2addr v1, v6

    int-to-float p1, p1

    mul-float v2, v2, p1

    const/high16 v0, 0x3f800000    # 1.0f

    add-float/2addr v1, v0

    div-float/2addr v2, v1

    mul-float p1, p1, v3

    .line 321
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p1, v0

    add-float/2addr v2, p1

    const/high16 p1, 0x41400000    # 12.0f

    invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result p1

    int-to-float p1, p1

    add-float/2addr v2, p1

    return v2

    :cond_4
    :goto_1
    return v1
.end method

.method public a(FI)V
    .locals 3

    .line 116
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_1

    .line 119
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v0}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v0

    .line 120
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

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

    invoke-virtual {v1, v2}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v1

    int-to-float p2, p2

    div-float p2, p1, p2

    sub-float v2, v1, v0

    mul-float p2, p2, v2

    .line 121
    iput p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    .line 122
    iget p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    cmpg-float p2, p2, v0

    if-gez p2, :cond_1

    goto :goto_0

    :cond_1
    iget p2, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    cmpl-float p2, p2, v1

    if-lez p2, :cond_2

    move v0, v1

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    :goto_0
    iput v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    const-string p2, "TideFloatView"

    .line 123
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "Line:"

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

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

    const-string p1, "Real=:"

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

    iget p1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

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

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

    move-result-object p1

    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 124
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->postInvalidate()V

    return-void

    :cond_3
    :goto_1
    return-void
.end method

.method public getExtarDataPoints()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;",
            ">;"
        }
    .end annotation

    .line 137
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 140
    :cond_0
    new-instance v0, Ljava/util/Vector;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-direct {v0, v1}, Ljava/util/Vector;-><init>(Ljava/util/Collection;)V

    return-object v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 16

    move-object/from16 v0, p0

    move-object/from16 v7, p1

    .line 145
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_1

    .line 147
    :cond_0
    new-instance v1, Ljava/util/Vector;

    sget-object v2, Lcom/moji/mjweather/dailydetail/utils/CurveDrawer;->b:Ljava/util/Vector;

    invoke-direct {v1, v2}, Ljava/util/Vector;-><init>(Ljava/util/Collection;)V

    iput-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    .line 148
    new-instance v1, Ljava/util/Vector;

    sget-object v2, Lcom/moji/mjweather/dailydetail/utils/CurveDrawer;->c:Ljava/util/Vector;

    invoke-direct {v1, v2}, Ljava/util/Vector;-><init>(Ljava/util/Collection;)V

    iput-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->c:Ljava/util/Vector;

    .line 149
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    if-eqz v1, :cond_9

    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_1

    goto/16 :goto_1

    .line 154
    :cond_1
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    const v2, 0x7f070264

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(I)F

    move-result v2

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

    .line 156
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->getWidth()I

    move-result v1

    int-to-float v8, v1

    const/4 v1, 0x0

    .line 162
    iget-object v2, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v9

    move v10, v8

    move v11, v10

    const/4 v12, 0x0

    :cond_2
    :goto_0
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_8

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    move-object v13, v1

    check-cast v13, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    .line 163
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "TAG_YAXIS"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/high16 v14, 0x40400000    # 3.0f

    if-eqz v1, :cond_3

    .line 164
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    const/16 v2, 0x50

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

    .line 165
    iget-object v2, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    sget-object v3, Lcom/moji/mjweather/dailydetail/utils/enumdata/ALIGN_TYPE;->RIGHT_BOTTOM:Lcom/moji/mjweather/dailydetail/utils/enumdata/ALIGN_TYPE;

    const/high16 v1, 0x41f00000    # 30.0f

    .line 166
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    int-to-float v4, v1

    .line 167
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v1

    invoke-static {v14}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v5

    int-to-float v5, v5

    sub-float v5, v1, v5

    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->b()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v1, p1

    .line 165
    invoke-static/range {v1 .. v6}, Lcom/moji/mjweather/dailydetail/utils/DrawUtil;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;Lcom/moji/mjweather/dailydetail/utils/enumdata/ALIGN_TYPE;FFLjava/lang/String;)V

    .line 170
    :cond_3
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "TAG_X_RANGE"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 171
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v1

    sub-float/2addr v1, v8

    move v10, v1

    .line 174
    :cond_4
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "TAG_SEA_LEVEL"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 175
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v15

    const v1, -0x3bd95555

    cmpl-float v1, v15, v1

    if-lez v1, :cond_5

    const/high16 v1, 0x41f80000    # 31.0f

    .line 178
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    int-to-float v2, v1

    iget-object v6, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->h:Landroid/graphics/Paint;

    move-object/from16 v1, p1

    move v3, v15

    move v4, v8

    move v5, v15

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 181
    new-instance v1, Lcom/moji/mjweather/dailydetail/utils/draw/FloatPoint;

    invoke-static {v14}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v2

    int-to-float v2, v2

    sub-float/2addr v15, v2

    invoke-direct {v1, v8, v15}, Lcom/moji/mjweather/dailydetail/utils/draw/FloatPoint;-><init>(FF)V

    const v2, 0x7f0e0774

    .line 182
    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v2

    .line 183
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    sget-object v4, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 184
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    invoke-virtual {v3}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v3

    .line 185
    iget-object v4, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    invoke-virtual {v4, v2}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v4

    .line 186
    iget v5, v3, Landroid/graphics/Paint$FontMetrics;->descent:F

    iget v6, v3, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v5, v6

    .line 187
    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/utils/draw/FloatPoint;->d()F

    move-result v6

    const/high16 v15, 0x41700000    # 15.0f

    invoke-static {v15}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v15

    int-to-float v15, v15

    add-float/2addr v4, v15

    sub-float/2addr v6, v4

    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/utils/draw/FloatPoint;->e()F

    move-result v1

    sub-float/2addr v1, v5

    iget v3, v3, Landroid/graphics/Paint$FontMetrics;->ascent:F

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

    move-result v3

    add-float/2addr v1, v3

    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->f:Landroid/graphics/Paint;

    invoke-virtual {v7, v2, v6, v1, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 191
    :cond_5
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "TAG_BEGIN_AND_END_X"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 192
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->d()F

    move-result v1

    .line 193
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v2

    sub-float v2, v8, v2

    move v12, v1

    move v11, v2

    .line 196
    :cond_6
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "TAG_YAXIS_0"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    const/4 v2, 0x0

    .line 197
    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v3

    invoke-virtual {v13}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v5

    iget-object v6, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->i:Landroid/graphics/Paint;

    move-object/from16 v1, p1

    move v4, v8

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 198
    iget v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->d:F

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

    move-result v1

    div-float/2addr v1, v10

    sub-float v2, v11, v12

    mul-float v1, v1, v2

    add-float v3, v12, v1

    .line 201
    invoke-direct {v0, v3, v12}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a(FF)F

    move-result v3

    .line 202
    iget v4, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->e:F

    invoke-direct {v0, v4}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a(F)F

    move-result v4

    .line 203
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->j:Landroid/graphics/Bitmap;

    iget-object v6, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->j:Landroid/graphics/Bitmap;

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v6

    int-to-float v6, v6

    sub-float v6, v4, v6

    const/4 v13, 0x0

    invoke-virtual {v7, v5, v3, v6, v13}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 204
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    if-eqz v5, :cond_2

    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-virtual {v5}, Ljava/util/Vector;->size()I

    move-result v5

    if-eqz v5, :cond_2

    .line 205
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-virtual {v5}, Ljava/util/Vector;->size()I

    move-result v5

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

    int-to-float v13, v6

    div-float/2addr v2, v13

    div-float/2addr v1, v2

    float-to-int v1, v1

    if-ltz v1, :cond_2

    if-gt v1, v5, :cond_2

    if-ne v1, v5, :cond_7

    move v1, v6

    .line 214
    :cond_7
    new-instance v2, Ljava/lang/StringBuilder;

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

    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    invoke-virtual {v5, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;

    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;->e()F

    move-result v1

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

    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->l:Ljava/lang/String;

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

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

    move-result-object v1

    .line 215
    iget-object v2, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v2

    .line 216
    iget v5, v2, Landroid/graphics/Paint$FontMetrics;->descent:F

    iget v2, v2, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v5, v2

    div-float/2addr v5, v14

    sub-float/2addr v4, v5

    .line 218
    iget-object v2, v0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->g:Landroid/graphics/Paint;

    invoke-virtual {v7, v1, v3, v4, v2}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    goto/16 :goto_0

    :cond_8
    return-void

    :cond_9
    :goto_1
    return-void
.end method

.method public setCurrentPosX(F)V
    .locals 0

    .line 111
    iput p1, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->d:F

    .line 112
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->postInvalidate()V

    return-void
.end method

.method public setExtarDataPoints(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjweather/dailydetail/utils/draw/DataPoint;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_1

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

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 132
    :cond_0
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0, p1}, Ljava/util/Vector;-><init>(Ljava/util/Collection;)V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->b:Ljava/util/Vector;

    .line 133
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->postInvalidate()V

    return-void

    :cond_1
    :goto_0
    return-void
.end method
