.class public Lcom/moji/index/view/TideTrendView;
.super Landroid/view/View;
.source "TideTrendView.java"


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/index/TideRangeData;",
            ">;"
        }
    .end annotation
.end field

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Landroid/graphics/Path;

.field private g:Landroid/graphics/Path;

.field private h:Landroid/graphics/Paint;

.field private i:Landroid/graphics/Paint;

.field private j:Landroid/graphics/Paint;

.field private k:Landroid/graphics/Paint;

.field private l:Landroid/graphics/Paint;

.field private m:Landroid/graphics/Paint;

.field private n:Landroid/graphics/Paint;

.field private o:I

.field private p:I


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

    const/4 v0, 0x0

    .line 91
    invoke-direct {p0, p1, v0}, Lcom/moji/index/view/TideTrendView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

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

    const/4 v0, 0x0

    .line 87
    invoke-direct {p0, p1, p2, v0}, Lcom/moji/index/view/TideTrendView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

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

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

    .line 82
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget p2, Lcom/moji/index/R$color;->moji_theme_blue:I

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getColor(I)I

    move-result p1

    iput p1, p0, Lcom/moji/index/view/TideTrendView;->p:I

    .line 83
    invoke-direct {p0}, Lcom/moji/index/view/TideTrendView;->a()V

    return-void
.end method

.method private a(D)D
    .locals 6

    .line 199
    iget v0, p0, Lcom/moji/index/view/TideTrendView;->o:I

    int-to-double v0, v0

    iget v2, p0, Lcom/moji/index/view/TideTrendView;->b:I

    int-to-double v2, v2

    const-wide v4, 0x400921fb54442d18L    # Math.PI

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

    mul-double v2, v2, v4

    mul-double v2, v2, p1

    iget p1, p0, Lcom/moji/index/view/TideTrendView;->d:I

    int-to-double p1, p1

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

    div-double/2addr v2, p1

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

    move-result-wide p1

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

    mul-double v0, v0, p1

    const/high16 p1, 0x42700000    # 60.0f

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

    move-result p1

    int-to-double p1, p1

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

    add-double/2addr v0, p1

    return-wide v0
.end method

.method private a()V
    .locals 8

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    .line 33
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    const/4 v1, -0x1

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

    .line 34
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    const/high16 v2, 0x3e800000    # 0.25f

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

    .line 35
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    const/16 v3, 0x64

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

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    .line 38
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    const/4 v4, 0x1

    invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 39
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setDither(Z)V

    .line 40
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    const/4 v5, 0x0

    const/16 v6, 0xff

    invoke-virtual {v0, v6, v5, v5, v5}, Landroid/graphics/Paint;->setARGB(IIII)V

    .line 41
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    sget-object v5, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

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

    .line 42
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    new-instance v5, Landroid/graphics/DashPathEffect;

    const/4 v6, 0x2

    new-array v6, v6, [F

    fill-array-data v6, :array_0

    const/4 v7, 0x0

    invoke-direct {v5, v6, v7}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    invoke-virtual {v0, v5}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 43
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

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

    .line 44
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

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

    .line 45
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

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

    .line 47
    new-instance v0, Landroid/graphics/Path;

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

    .line 48
    new-instance v0, Landroid/graphics/Path;

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    .line 51
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    iget v2, p0, Lcom/moji/index/view/TideTrendView;->p:I

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

    .line 52
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

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

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

    .line 53
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    const/high16 v2, 0x40400000    # 3.0f

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

    .line 54
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setAntiAlias(Z)V

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->n:Landroid/graphics/Paint;

    .line 57
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->n: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 58
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->n:Landroid/graphics/Paint;

    const-string v2, "#324294EA"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

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

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

    .line 61
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

    const/high16 v2, 0x41600000    # 14.0f

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

    move-result v3

    int-to-float v3, v3

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

    .line 62
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

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

    .line 64
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

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

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

    .line 67
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    move-result v3

    int-to-float v3, v3

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

    .line 68
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    .line 69
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

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

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

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

    iput-object v0, p0, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

    .line 72
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

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

    move-result v2

    int-to-float v2, v2

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

    .line 73
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

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

    .line 75
    iget-object v0, p0, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

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

    const/high16 v0, 0x41700000    # 15.0f

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

    move-result v0

    iput v0, p0, Lcom/moji/index/view/TideTrendView;->o:I

    return-void

    :array_0
    .array-data 4
        0x41200000    # 10.0f
        0x41200000    # 10.0f
    .end array-data
.end method

.method private a(Landroid/graphics/Canvas;Landroid/graphics/Paint;FFF)V
    .locals 7

    const/high16 v0, 0x40a00000    # 5.0f

    add-float/2addr v0, p3

    move-object v1, p1

    move v2, p3

    move v3, p4

    move v4, v0

    move v5, p5

    move-object v6, p2

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

    const/4 p2, 0x0

    cmpl-float v1, p3, p2

    if-nez v1, :cond_0

    .line 181
    iget-object v1, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

    invoke-virtual {v1, p3, p4}, Landroid/graphics/Path;->moveTo(FF)V

    .line 183
    :cond_0
    iget-object p3, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

    invoke-virtual {p3, v0, p5}, Landroid/graphics/Path;->lineTo(FF)V

    .line 184
    invoke-virtual {p0}, Lcom/moji/index/view/TideTrendView;->getWidth()I

    move-result p3

    int-to-float p3, p3

    cmpl-float p3, v0, p3

    if-ltz p3, :cond_1

    const/high16 p3, 0x42c80000    # 100.0f

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

    move-result p3

    .line 186
    iget-object p4, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

    int-to-float p3, p3

    invoke-virtual {p4, v0, p3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 187
    iget-object p4, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

    invoke-virtual {p4, p2, p3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 188
    iget-object p2, p0, Lcom/moji/index/view/TideTrendView;->g:Landroid/graphics/Path;

    iget-object p3, p0, Lcom/moji/index/view/TideTrendView;->n:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, p3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    :cond_1
    return-void
.end method

.method private a(Landroid/graphics/Canvas;Landroid/graphics/Paint;Landroid/graphics/Paint;III)V
    .locals 8

    const/high16 v0, 0x42c80000    # 100.0f

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

    move-result v1

    int-to-float v4, v1

    iget v1, p0, Lcom/moji/index/view/TideTrendView;->d:I

    int-to-float v5, v1

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

    move-result v0

    int-to-float v6, v0

    const/4 v3, 0x0

    move-object v2, p1

    move-object v7, p2

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

    .line 194
    iget-object p2, p0, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result-object p2

    check-cast p2, Lcom/moji/index/TideRangeData;

    iget-object p2, p2, Lcom/moji/index/TideRangeData;->date:Ljava/lang/String;

    mul-int p6, p6, p4

    add-int/2addr p5, p6

    int-to-float p4, p5

    const/high16 p5, 0x42fa0000    # 125.0f

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

    move-result p5

    int-to-float p5, p5

    invoke-virtual {p1, p2, p4, p5, p3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method private a(Ljava/util/List;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/index/TideRangeData;",
            ">;)Z"
        }
    .end annotation

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

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-le v0, v2, :cond_1

    .line 210
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/index/TideRangeData;

    iget v0, v0, Lcom/moji/index/TideRangeData;->level:I

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

    move-result-object p1

    check-cast p1, Lcom/moji/index/TideRangeData;

    iget p1, p1, Lcom/moji/index/TideRangeData;->level:I

    if-le v0, p1, :cond_0

    const/4 v1, 0x1

    :cond_0
    return v1

    .line 212
    :cond_1
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/index/TideRangeData;

    iget p1, p1, Lcom/moji/index/TideRangeData;->level:I

    iget v0, p0, Lcom/moji/index/view/TideTrendView;->c:I

    if-le p1, v0, :cond_2

    const/4 v1, 0x1

    :cond_2
    return v1
.end method

.method private b(D)D
    .locals 6

    .line 204
    iget v0, p0, Lcom/moji/index/view/TideTrendView;->o:I

    neg-int v0, v0

    int-to-double v0, v0

    iget v2, p0, Lcom/moji/index/view/TideTrendView;->b:I

    int-to-double v2, v2

    const-wide v4, 0x400921fb54442d18L    # Math.PI

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

    mul-double v2, v2, v4

    mul-double v2, v2, p1

    iget p1, p0, Lcom/moji/index/view/TideTrendView;->d:I

    int-to-double p1, p1

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

    div-double/2addr v2, p1

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

    move-result-wide p1

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

    mul-double v0, v0, p1

    const/high16 p1, 0x42700000    # 60.0f

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

    move-result p1

    int-to-double p1, p1

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

    add-double/2addr v0, p1

    return-wide v0
.end method


# virtual methods
.method public a(Ljava/util/List;I)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/index/TideRangeData;",
            ">;I)V"
        }
    .end annotation

    if-eqz p1, :cond_1

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

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 98
    :cond_0
    iput-object p1, p0, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

    .line 99
    iput p2, p0, Lcom/moji/index/view/TideTrendView;->c:I

    .line 100
    invoke-virtual {p0}, Lcom/moji/index/view/TideTrendView;->postInvalidate()V

    return-void

    :cond_1
    :goto_0
    return-void
.end method

.method public draw(Landroid/graphics/Canvas;)V
    .locals 22

    move-object/from16 v7, p0

    move-object/from16 v8, p1

    .line 105
    invoke-super/range {p0 .. p1}, Landroid/view/View;->draw(Landroid/graphics/Canvas;)V

    .line 106
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

    if-eqz v0, :cond_7

    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_6

    .line 109
    :cond_0
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result v0

    iput v0, v7, Lcom/moji/index/view/TideTrendView;->b:I

    .line 110
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getWidth()I

    move-result v0

    iput v0, v7, Lcom/moji/index/view/TideTrendView;->d:I

    .line 111
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getHeight()I

    move-result v0

    iput v0, v7, Lcom/moji/index/view/TideTrendView;->e:I

    .line 112
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

    invoke-direct {v7, v0}, Lcom/moji/index/view/TideTrendView;->a(Ljava/util/List;)Z

    move-result v0

    .line 113
    new-instance v1, Landroid/graphics/PaintFlagsDrawFilter;

    const/4 v2, 0x3

    const/4 v6, 0x0

    invoke-direct {v1, v6, v2}, Landroid/graphics/PaintFlagsDrawFilter;-><init>(II)V

    invoke-virtual {v8, v1}, Landroid/graphics/Canvas;->setDrawFilter(Landroid/graphics/DrawFilter;)V

    .line 115
    iget v1, v7, Lcom/moji/index/view/TideTrendView;->d:I

    iget v2, v7, Lcom/moji/index/view/TideTrendView;->b:I

    div-int v9, v1, v2

    .line 116
    div-int/lit8 v10, v9, 0x2

    const/high16 v11, 0x42900000    # 72.0f

    const/high16 v12, 0x42780000    # 62.0f

    const/high16 v13, 0x42200000    # 40.0f

    const/high16 v14, 0x42380000    # 46.0f

    const/high16 v15, 0x42180000    # 38.0f

    const/high16 v16, 0x41700000    # 15.0f

    const/high16 v17, 0x42c80000    # 100.0f

    const-wide/high16 v18, 0x4059000000000000L    # 100.0

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    .line 118
    :goto_0
    iget v1, v7, Lcom/moji/index/view/TideTrendView;->d:I

    if-ge v0, v1, :cond_1

    int-to-double v1, v0

    .line 119
    invoke-direct {v7, v1, v2}, Lcom/moji/index/view/TideTrendView;->b(D)D

    move-result-wide v1

    add-int/lit8 v5, v0, 0x5

    int-to-double v3, v5

    .line 120
    invoke-direct {v7, v3, v4}, Lcom/moji/index/view/TideTrendView;->b(D)D

    move-result-wide v3

    .line 121
    iget-object v6, v7, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    int-to-float v0, v0

    double-to-float v2, v1

    double-to-float v4, v3

    move v3, v0

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v21, v2

    move-object v2, v6

    move v6, v4

    move/from16 v4, v21

    move/from16 v21, v5

    move v5, v6

    invoke-direct/range {v0 .. v5}, Lcom/moji/index/view/TideTrendView;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;FFF)V

    move/from16 v0, v21

    const/4 v6, 0x0

    goto :goto_0

    :cond_1
    const/4 v6, 0x0

    .line 123
    :goto_1
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result v0

    if-ge v6, v0, :cond_6

    .line 124
    rem-int/lit8 v0, v6, 0x2

    if-nez v0, :cond_2

    .line 126
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/index/R$string;->high_tide:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    mul-int v1, v6, v9

    add-int/2addr v1, v10

    int-to-float v1, v1

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

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

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

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

    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/index/TideRangeData;

    iget v2, v2, Lcom/moji/index/TideRangeData;->level:I

    int-to-double v2, v2

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

    div-double v2, v2, v18

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

    const-string v2, "m"

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

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

    move-result-object v0

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    .line 128
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 129
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 130
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

    iget-object v1, v7, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    invoke-virtual {v8, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    goto :goto_2

    .line 133
    :cond_2
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/index/R$string;->low_tide:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    mul-int v1, v6, v9

    add-int/2addr v1, v10

    int-to-float v1, v1

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

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

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

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

    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/index/TideRangeData;

    iget v2, v2, Lcom/moji/index/TideRangeData;->level:I

    int-to-double v2, v2

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

    div-double v2, v2, v18

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

    const-string v2, "m"

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

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

    move-result-object v0

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    .line 135
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 136
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 137
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

    iget-object v1, v7, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    invoke-virtual {v8, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 141
    :goto_2
    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move v4, v9

    move v5, v10

    move/from16 v20, v6

    invoke-direct/range {v0 .. v6}, Lcom/moji/index/view/TideTrendView;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;Landroid/graphics/Paint;III)V

    add-int/lit8 v6, v20, 0x1

    goto/16 :goto_1

    :cond_3
    const/4 v0, 0x0

    .line 144
    :goto_3
    iget v1, v7, Lcom/moji/index/view/TideTrendView;->d:I

    if-ge v0, v1, :cond_4

    int-to-double v1, v0

    .line 145
    invoke-direct {v7, v1, v2}, Lcom/moji/index/view/TideTrendView;->a(D)D

    move-result-wide v1

    add-int/lit8 v6, v0, 0x5

    int-to-double v3, v6

    .line 146
    invoke-direct {v7, v3, v4}, Lcom/moji/index/view/TideTrendView;->a(D)D

    move-result-wide v3

    .line 147
    iget-object v5, v7, Lcom/moji/index/view/TideTrendView;->j:Landroid/graphics/Paint;

    int-to-float v0, v0

    double-to-float v2, v1

    double-to-float v4, v3

    move v3, v0

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v21, v2

    move-object v2, v5

    move v5, v4

    move/from16 v4, v21

    invoke-direct/range {v0 .. v5}, Lcom/moji/index/view/TideTrendView;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;FFF)V

    move v0, v6

    goto :goto_3

    :cond_4
    const/4 v6, 0x0

    .line 149
    :goto_4
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result v0

    if-ge v6, v0, :cond_6

    .line 150
    rem-int/lit8 v0, v6, 0x2

    if-nez v0, :cond_5

    .line 151
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/index/R$string;->low_tide:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    mul-int v1, v6, v9

    add-int/2addr v1, v10

    int-to-float v1, v1

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

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

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

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

    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/index/TideRangeData;

    iget v2, v2, Lcom/moji/index/TideRangeData;->level:I

    int-to-double v2, v2

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

    div-double v2, v2, v18

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

    const-string v2, "m"

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

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

    move-result-object v0

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    .line 153
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 154
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 155
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

    iget-object v1, v7, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    invoke-virtual {v8, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    goto :goto_5

    .line 157
    :cond_5
    invoke-virtual/range {p0 .. p0}, Lcom/moji/index/view/TideTrendView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/index/R$string;->high_tide:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    mul-int v1, v6, v9

    add-int/2addr v1, v10

    int-to-float v1, v1

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->k:Landroid/graphics/Paint;

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

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

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

    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->a:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/index/TideRangeData;

    iget v2, v2, Lcom/moji/index/TideRangeData;->level:I

    int-to-double v2, v2

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

    div-double v2, v2, v18

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

    const-string v2, "m"

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

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

    move-result-object v0

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

    move-result v2

    int-to-float v2, v2

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->l:Landroid/graphics/Paint;

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

    .line 159
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 160
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

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

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 161
    iget-object v0, v7, Lcom/moji/index/view/TideTrendView;->f:Landroid/graphics/Path;

    iget-object v1, v7, Lcom/moji/index/view/TideTrendView;->i:Landroid/graphics/Paint;

    invoke-virtual {v8, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 165
    :goto_5
    iget-object v2, v7, Lcom/moji/index/view/TideTrendView;->h:Landroid/graphics/Paint;

    iget-object v3, v7, Lcom/moji/index/view/TideTrendView;->m:Landroid/graphics/Paint;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move v4, v9

    move v5, v10

    move/from16 v20, v6

    invoke-direct/range {v0 .. v6}, Lcom/moji/index/view/TideTrendView;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;Landroid/graphics/Paint;III)V

    add-int/lit8 v6, v20, 0x1

    goto/16 :goto_4

    :cond_6
    return-void

    :cond_7
    :goto_6
    return-void
.end method
