.class public Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;
.super Landroid/view/View;
.source "ShortTimeCurveView.java"


# instance fields
.field private a:Landroid/graphics/Paint;

.field private b:Landroid/graphics/Paint;

.field private c:Landroid/graphics/Paint;

.field private d:Landroid/graphics/Paint;

.field private e:I

.field private f:I

.field private g:F

.field private h:F

.field private i:F

.field private j:Landroid/graphics/Path;

.field private k:Landroid/graphics/Path;

.field private l:Landroid/graphics/Path;

.field private m:F

.field private n:F

.field private o:F

.field private p:F

.field private q:F

.field private r:F

.field private s:F

.field private t:I

.field private u:F

.field private v:Ljava/lang/String;

.field private w:I

.field private x:Ljava/lang/String;

.field private y:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector<",
            "Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;",
            ">;"
        }
    .end annotation
.end field


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

    const/4 v0, 0x0

    .line 56
    invoke-direct {p0, p1, v0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;-><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 60
    invoke-direct {p0, p1, p2, v0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;-><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 2

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

    const/4 v0, 0x0

    .line 32
    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    .line 33
    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    const/4 v1, 0x0

    .line 34
    iput v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    const/high16 v1, 0x3f800000    # 1.0f

    .line 35
    iput v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    const/high16 v1, 0x3e800000    # 0.25f

    .line 36
    iput v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->i:F

    .line 47
    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    const/4 v0, 0x4

    .line 50
    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->w:I

    .line 66
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method private a(FFF)F
    .locals 1

    cmpg-float v0, p3, p1

    if-gez v0, :cond_0

    goto :goto_0

    :cond_0
    cmpl-float p1, p3, p2

    if-lez p1, :cond_1

    move p1, p2

    goto :goto_0

    :cond_1
    move p1, p3

    :goto_0
    return p1
.end method

.method private a(Landroid/content/Context;F)I
    .locals 0

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

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p1

    iget p1, p1, Landroid/util/DisplayMetrics;->density:F

    mul-float p2, p2, p1

    const/high16 p1, 0x3f000000    # 0.5f

    add-float/2addr p2, p1

    float-to-int p1, p2

    return p1
.end method

.method private a(JJJ)J
    .locals 1

    cmp-long v0, p5, p1

    if-gez v0, :cond_0

    goto :goto_0

    :cond_0
    cmp-long p1, p5, p3

    if-lez p1, :cond_1

    move-wide p1, p3

    goto :goto_0

    :cond_1
    move-wide p1, p5

    :goto_0
    return-wide p1
.end method

.method private a(FFFF)Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;
    .locals 4

    .line 216
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->o:F

    .line 217
    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    int-to-float v1, v1

    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    sub-float/2addr v1, v2

    sub-float/2addr v1, p3

    const/4 v2, 0x0

    cmpg-float v3, p1, v2

    if-ltz v3, :cond_1

    cmpg-float v3, p2, v2

    if-ltz v3, :cond_1

    cmpg-float v3, p3, v2

    if-lez v3, :cond_1

    cmpg-float v2, p4, v2

    if-gtz v2, :cond_0

    goto :goto_0

    :cond_0
    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr p3, v2

    sub-float/2addr p1, p3

    add-float/2addr p2, p2

    .line 223
    iget p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->r:F

    sub-float/2addr p2, p3

    div-float/2addr p2, v2

    add-float/2addr p2, p4

    .line 224
    invoke-direct {p0, v0, v1, p1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(FFF)F

    move-result p1

    .line 225
    new-instance p3, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    invoke-direct {p3, p1, p2}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;-><init>(FF)V

    return-object p3

    .line 219
    :cond_1
    :goto_0
    new-instance p1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    iget p2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    int-to-float p2, p2

    iget p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->r:F

    sub-float/2addr p2, p3

    invoke-direct {p1, v0, p2}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;-><init>(FF)V

    return-object p1
.end method

.method private a()V
    .locals 2

    .line 205
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    int-to-float v0, v0

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

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

    int-to-float v1, v1

    div-float/2addr v0, v1

    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->m:F

    .line 206
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->o:F

    return-void
.end method

.method private a(F)V
    .locals 5

    .line 132
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->l:Landroid/graphics/Path;

    invoke-virtual {v0}, Landroid/graphics/Path;->reset()V

    .line 133
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    const/4 v1, 0x0

    .line 134
    :goto_0
    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->w:I

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

    if-ge v1, v2, :cond_0

    .line 135
    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    int-to-float v3, v1

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->i:F

    mul-float v3, v3, v4

    sub-float/2addr v2, v3

    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->n:F

    mul-float v2, v2, v3

    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    add-float/2addr v2, v3

    .line 136
    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->l:Landroid/graphics/Path;

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

    .line 137
    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->l:Landroid/graphics/Path;

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    sub-float v4, p1, v4

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

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method private a(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 5

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 82
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 83
    sget-object v1, Lcom/moji/mjweather/R$styleable;->ShortDetailCurveView:[I

    const/4 v2, 0x0

    invoke-virtual {p1, p2, v1, p3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p2

    .line 84
    new-instance p3, Landroid/graphics/Paint;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

    .line 86
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    invoke-virtual {p3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p3

    const/high16 v1, 0x41300000    # 11.0f

    .line 85
    invoke-static {v0, v1, p3}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p3

    float-to-int p3, p3

    const/4 v1, 0x4

    invoke-virtual {p2, v1, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result p3

    int-to-float p3, p3

    .line 87
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

    const p3, 0x7f060235

    .line 88
    invoke-static {p1, p3}, Landroid/support/v4/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p3

    const/4 v1, 0x2

    invoke-virtual {p2, v1, p3}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result p3

    .line 89
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

    .line 90
    iget-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

    move-result-object p3

    .line 91
    iget v1, p3, Landroid/graphics/Paint$FontMetrics;->descent:F

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

    sub-float/2addr v1, v2

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v1, v2

    iget p3, p3, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v1, p3

    iput v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->u:F

    const/4 p3, 0x5

    .line 92
    invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object p3

    .line 93
    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

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

    move-result-object p3

    const v1, 0x7f0e0841

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

    move-result-object p3

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->v:Ljava/lang/String;

    goto :goto_0

    .line 96
    :cond_0
    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->v:Ljava/lang/String;

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

    move-result-object p3

    const v1, 0x7f0e05eb

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

    move-result-object p3

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->x:Ljava/lang/String;

    const/4 p3, 0x3

    const/high16 v1, 0x41800000    # 16.0f

    .line 100
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    .line 99
    invoke-static {v0, v1, v3}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result p3

    int-to-float p3, p3

    iput p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->r:F

    .line 102
    new-instance p3, Landroid/graphics/Paint;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

    .line 103
    iget-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

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

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

    .line 104
    iget-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

    const/high16 v1, 0x3f000000    # 0.5f

    invoke-direct {p0, p1, v1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/content/Context;F)I

    move-result v1

    int-to-float v1, v1

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

    .line 105
    new-instance p3, Landroid/graphics/Path;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->l:Landroid/graphics/Path;

    .line 106
    iget p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    sub-float/2addr p3, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->w:I

    sub-int/2addr v1, v0

    int-to-float v1, v1

    div-float/2addr p3, v1

    iput p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->i:F

    const/high16 p3, 0x3f800000    # 1.0f

    .line 108
    iput p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    const/4 v1, 0x0

    .line 109
    iput v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    .line 110
    new-instance v3, Landroid/graphics/Paint;

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

    iput-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

    .line 111
    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

    const/4 v4, -0x1

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

    .line 112
    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

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

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

    .line 113
    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

    invoke-direct {p0, p1, p3}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/content/Context;F)I

    move-result p3

    int-to-float p3, p3

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

    .line 116
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    invoke-virtual {p3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p3

    .line 115
    invoke-static {v0, v1, p3}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p3

    float-to-int p3, p3

    invoke-virtual {p2, v0, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result p3

    int-to-float p3, p3

    iput p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    const p3, 0x7f06010b

    .line 117
    invoke-static {p1, p3}, Landroid/support/v4/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p3

    .line 118
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

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

    .line 119
    new-instance p3, Landroid/graphics/Path;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

    .line 120
    iget-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

    sget-object v1, Landroid/graphics/Path$FillType;->WINDING:Landroid/graphics/Path$FillType;

    invoke-virtual {p3, v1}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V

    .line 122
    new-instance p3, Landroid/graphics/Path;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    .line 123
    new-instance p3, Landroid/graphics/Paint;

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

    iput-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->b:Landroid/graphics/Paint;

    .line 124
    iget-object p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->b:Landroid/graphics/Paint;

    sget-object v0, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

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

    .line 126
    invoke-direct {p0, p1, v2}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/content/Context;F)I

    move-result p1

    int-to-float p1, p1

    iput p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    .line 128
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 12

    .line 151
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result v1

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

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->a()F

    move-result v0

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    const/4 v2, 0x0

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    invoke-virtual {v1}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->a()F

    move-result v1

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->m:F

    mul-float v0, v0, v1

    .line 152
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    iget-object v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result v3

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

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    iget-wide v3, v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->d:J

    const-wide/32 v5, 0xea60

    add-long/2addr v3, v5

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    iget-wide v1, v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->d:J

    sub-long/2addr v3, v1

    const-wide/16 v1, 0x3e8

    div-long/2addr v3, v1

    const-wide/16 v1, 0x3c

    div-long v10, v3, v1

    const-wide/16 v6, 0x0

    const-wide/16 v8, 0x258

    move-object v5, p0

    .line 154
    invoke-direct/range {v5 .. v11}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(JJJ)J

    move-result-wide v1

    .line 155
    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->o:F

    iget-object v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->x:Ljava/lang/String;

    invoke-direct {p0, p1, v3, v4}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/graphics/Canvas;FLjava/lang/String;)V

    .line 157
    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->o:F

    const/high16 v4, 0x40000000    # 2.0f

    div-float/2addr v0, v4

    add-float/2addr v3, v0

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

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

    long-to-float v5, v1

    div-float/2addr v5, v4

    float-to-double v4, v5

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

    move-result-wide v4

    double-to-int v4, v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

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

    iget-object v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->v:Ljava/lang/String;

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

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

    move-result-object v0

    .line 159
    invoke-direct {p0, p1, v3, v0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/graphics/Canvas;FLjava/lang/String;)V

    .line 161
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    int-to-float v0, v0

    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->q:F

    sub-float/2addr v0, v3

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

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

    long-to-double v1, v1

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

    move-result-wide v1

    double-to-int v1, v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

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

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->v:Ljava/lang/String;

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

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

    move-result-object v1

    .line 163
    invoke-direct {p0, p1, v0, v1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/graphics/Canvas;FLjava/lang/String;)V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;FLjava/lang/String;)V
    .locals 3

    .line 142
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

    move-result v0

    .line 144
    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    int-to-float v1, v1

    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->u:F

    invoke-direct {p0, p2, v1, v0, v2}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(FFFF)Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    move-result-object p2

    .line 146
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

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

    .line 147
    invoke-virtual {p2}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->a()F

    move-result v0

    invoke-virtual {p2}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->b()F

    move-result p2

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->d:Landroid/graphics/Paint;

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

    return-void
.end method

.method private b()V
    .locals 9

    .line 210
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->p:F

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    sub-float/2addr v1, v2

    div-float/2addr v0, v1

    iput v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->n:F

    .line 211
    new-instance v0, Landroid/graphics/LinearGradient;

    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    iget v5, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->p:F

    const/4 v1, 0x2

    new-array v6, v1, [I

    fill-array-data v6, :array_0

    new-array v7, v1, [F

    fill-array-data v7, :array_1

    sget-object v8, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;

    const/4 v2, 0x0

    const/4 v4, 0x0

    move-object v1, v0

    invoke-direct/range {v1 .. v8}, Landroid/graphics/LinearGradient;-><init>(FFFF[I[FLandroid/graphics/Shader$TileMode;)V

    .line 212
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->b:Landroid/graphics/Paint;

    invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    return-void

    :array_0
    .array-data 4
        -0x33702f01    # -7.5401208E7f
        0x19bce3ff
    .end array-data

    :array_1
    .array-data 4
        0x0
        0x3f800000    # 1.0f
    .end array-data
.end method

.method private c()V
    .locals 11

    .line 246
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

    invoke-virtual {v0}, Landroid/graphics/Path;->reset()V

    .line 247
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    invoke-virtual {v0}, Landroid/graphics/Path;->reset()V

    .line 249
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    if-gtz v0, :cond_0

    return-void

    .line 252
    :cond_0
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    if-lez v0, :cond_6

    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    if-gtz v0, :cond_1

    goto/16 :goto_2

    .line 264
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    invoke-virtual {v0}, Landroid/graphics/Path;->reset()V

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 265
    :goto_0
    iget v8, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    const/high16 v9, 0x40000000    # 2.0f

    if-ge v0, v8, :cond_3

    .line 266
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;

    .line 267
    iget v3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->o:F

    invoke-virtual {v1}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->a()F

    move-result v8

    iget v10, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->m:F

    mul-float v8, v8, v10

    add-float/2addr v3, v8

    .line 268
    iget v8, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    iget v10, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    invoke-virtual {v1}, Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;->b()F

    move-result v1

    invoke-direct {p0, v8, v10, v1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(FFF)F

    move-result v1

    .line 269
    iget v8, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    iget v10, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    sub-float/2addr v10, v1

    iget v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->n:F

    mul-float v10, v10, v1

    add-float v1, v8, v10

    if-nez v0, :cond_2

    .line 273
    iget-object v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

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

    move v7, v1

    move v6, v3

    goto :goto_1

    :cond_2
    add-float v5, v3, v2

    div-float/2addr v5, v9

    add-float v8, v1, v4

    div-float/2addr v8, v9

    .line 282
    iget-object v9, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    invoke-virtual {v9, v2, v4, v5, v8}, Landroid/graphics/Path;->quadTo(FFFF)V

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

    move v4, v1

    move v2, v3

    move v1, v2

    move v3, v4

    goto :goto_0

    :cond_3
    add-float/2addr v1, v2

    div-float/2addr v1, v9

    add-float/2addr v3, v4

    div-float/2addr v3, v9

    cmpl-float v0, v1, v5

    if-lez v0, :cond_4

    .line 291
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    invoke-virtual {v0, v2, v4, v1, v3}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 293
    :cond_4
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->s:F

    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->h:F

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->g:F

    sub-float/2addr v2, v4

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->n:F

    mul-float v2, v2, v4

    add-float/2addr v0, v2

    .line 294
    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->p:F

    cmpl-float v2, v2, v0

    if-lez v2, :cond_5

    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->p:F

    .line 295
    :cond_5
    new-instance v2, Landroid/graphics/Path;

    iget-object v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

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

    iput-object v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

    .line 296
    iget-object v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

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

    .line 297
    iget-object v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

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

    .line 298
    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

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

    .line 299
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

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

    .line 301
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    int-to-float v0, v0

    invoke-direct {p0, v0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(F)V

    return-void

    :cond_6
    :goto_2
    return-void
.end method


# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 5

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

    .line 169
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->getWidth()I

    move-result v0

    .line 170
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->getHeight()I

    move-result v1

    .line 171
    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    if-ne v0, v2, :cond_0

    iget v2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    if-eq v1, v2, :cond_1

    :cond_0
    const-string v2, "ShortTimeCurveView"

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

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

    const-string v4, "onDraw but viewWidth/viewHeight changed oldViewWidth:"

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

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

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

    const-string v4, " oldViewHeight:"

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

    iget v4, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

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

    const-string v4, " newViewWidth:"

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

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

    const-string v4, " newViewHeight:"

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

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

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

    move-result-object v3

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

    .line 173
    invoke-virtual {p0, v0, v1, v0, v1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->onSizeChanged(IIII)V

    .line 176
    :cond_1
    iget v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    if-lez v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result v0

    if-eqz v0, :cond_2

    goto :goto_0

    .line 179
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

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

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

    .line 180
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

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

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

    .line 182
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->l:Landroid/graphics/Path;

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c:Landroid/graphics/Paint;

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

    .line 183
    invoke-direct {p0, p1}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a(Landroid/graphics/Canvas;)V

    .line 185
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->j:Landroid/graphics/Path;

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->b:Landroid/graphics/Paint;

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

    .line 186
    iget-object v0, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->k:Landroid/graphics/Path;

    iget-object v1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a:Landroid/graphics/Paint;

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

    return-void

    :cond_3
    :goto_0
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 0

    .line 191
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/View;->onSizeChanged(IIII)V

    .line 192
    iget p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    if-ne p1, p3, :cond_0

    iget p3, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    if-eq p2, p3, :cond_1

    .line 193
    :cond_0
    iput p2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    .line 194
    iput p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->f:I

    .line 196
    iget p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->e:I

    int-to-float p1, p1

    iget p2, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->r:F

    sub-float/2addr p1, p2

    iput p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->p:F

    .line 197
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->b()V

    .line 198
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a()V

    .line 199
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c()V

    .line 200
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->invalidate()V

    :cond_1
    return-void
.end method

.method protected onWindowVisibilityChanged(I)V
    .locals 0

    .line 238
    invoke-super {p0, p1}, Landroid/view/View;->onWindowVisibilityChanged(I)V

    if-nez p1, :cond_0

    .line 240
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c()V

    .line 241
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->invalidate()V

    :cond_0
    return-void
.end method

.method public setDataPoints(Ljava/util/Vector;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Vector<",
            "Lcom/moji/mjweather/shorttime/entity/ShortCurveDataPoint;",
            ">;)V"
        }
    .end annotation

    .line 70
    iput-object p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    .line 71
    iget-object p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

    if-nez p1, :cond_0

    const/4 p1, 0x0

    .line 72
    iput p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    goto :goto_0

    .line 74
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->y:Ljava/util/Vector;

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

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->t:I

    .line 76
    :goto_0
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->a()V

    .line 77
    invoke-direct {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->c()V

    .line 78
    invoke-virtual {p0}, Lcom/moji/mjweather/shorttime/view/ShortTimeCurveView;->postInvalidate()V

    return-void
.end method
