.class Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;
.super Landroid/os/CountDownTimer;
.source "TideCurveView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/dailydetail/view/TideCurveView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "TimeCount"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

.field private b:I


# virtual methods
.method public onFinish()V
    .locals 5

    .line 167
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;)V

    .line 168
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-static {v0, v1}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;F)V

    .line 169
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    invoke-virtual {v0}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->postInvalidate()V

    .line 170
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;

    sget-object v2, Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;->TIDE:Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;

    iget v3, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->b:I

    const/4 v4, -0x1

    invoke-direct {v1, v2, v4, v3}, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;-><init>(Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;II)V

    invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    return-void
.end method

.method public onTick(J)V
    .locals 3

    const-wide/16 v0, 0x2bc

    sub-long/2addr v0, p1

    long-to-float p1, v0

    const/high16 p2, 0x442f0000    # 700.0f

    div-float/2addr p1, p2

    .line 176
    iget-object p2, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    invoke-static {p2, p1}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;F)V

    .line 177
    iget-object p2, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    invoke-virtual {p2}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->postInvalidate()V

    .line 178
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object p2

    new-instance v0, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;

    sget-object v1, Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;->TIDE:Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;

    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->a:Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->getWidth()I

    move-result v2

    int-to-float v2, v2

    mul-float p1, p1, v2

    float-to-int p1, p1

    iget v2, p0, Lcom/moji/mjweather/dailydetail/view/TideCurveView$TimeCount;->b:I

    invoke-direct {v0, v1, p1, v2}, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;-><init>(Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;II)V

    invoke-virtual {p2, v0}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    return-void
.end method
