.class public Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;
.super Lcom/moji/viewcontrol/MJViewControl;
.source "AqiForecastChartViewControl.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/viewcontrol/MJViewControl<",
        "Ljava/util/List<",
        "Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$TrendHourBean;",
        ">;>;"
    }
.end annotation


# instance fields
.field a:Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;

.field private b:Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

.field private c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

.field private d:Lcom/moji/mjweather/aqi/widget/TrendYAxisView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;)V
    .locals 0

    .line 38
    invoke-direct {p0, p1}, Lcom/moji/viewcontrol/MJViewControl;-><init>(Landroid/content/Context;)V

    .line 39
    iput-object p2, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->a:Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;)Lcom/moji/mjweather/aqi/widget/TrendChartView;
    .locals 0

    .line 24
    iget-object p0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;)Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;
    .locals 0

    .line 24
    iget-object p0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->b:Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

    return-object p0
.end method

.method private b()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 90
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->a:Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;

    invoke-virtual {v0}, Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;->c()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/mjweather/aqi/widget/ITrendData;",
            ">;"
        }
    .end annotation

    .line 100
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    invoke-virtual {v0}, Lcom/moji/mjweather/aqi/widget/TrendChartView;->getDataList()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public a(I)V
    .locals 2

    .line 104
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->b:Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

    new-instance v1, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl$2;

    invoke-direct {v1, p0, p1}, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl$2;-><init>(Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;I)V

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method a(Lcom/moji/mjweather/aqi/widget/TrendChartView$OnMoveListener;)V
    .locals 1

    .line 78
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/aqi/widget/TrendChartView;->setMoveListener(Lcom/moji/mjweather/aqi/widget/TrendChartView$OnMoveListener;)V

    return-void
.end method

.method protected a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$TrendHourBean;",
            ">;)V"
        }
    .end annotation

    .line 85
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    iget-object v1, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->a:Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;

    invoke-virtual {v1, p1}, Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    invoke-direct {p0}, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->b()Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->a:Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;

    invoke-virtual {v2}, Lcom/moji/mjweather/aqi/control/AQIForecastViewControl;->b()I

    move-result v2

    invoke-virtual {v0, p1, v1, v2}, Lcom/moji/mjweather/aqi/widget/TrendChartView;->a(Ljava/util/List;Ljava/util/List;I)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 113
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/aqi/widget/TrendChartView;->setScrolledByOuterActor(Z)V

    return-void
.end method

.method protected getResLayoutId()I
    .locals 1

    const v0, 0x7f0b00b8

    return v0
.end method

.method protected onBindDataNull()V
    .locals 0

    .line 73
    invoke-super {p0}, Lcom/moji/viewcontrol/MJViewControl;->onBindDataNull()V

    .line 74
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->hideView()V

    return-void
.end method

.method protected synthetic onBindViewData(Ljava/lang/Object;)V
    .locals 0

    .line 24
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->a(Ljava/util/List;)V

    return-void
.end method

.method protected onCreatedView(Landroid/view/View;)V
    .locals 1

    const v0, 0x7f09007e

    .line 49
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

    iput-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->b:Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

    const v0, 0x7f090987

    .line 50
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/widget/TrendChartView;

    iput-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    const v0, 0x7f090988

    .line 51
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/aqi/widget/TrendYAxisView;

    iput-object p1, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->d:Lcom/moji/mjweather/aqi/widget/TrendYAxisView;

    .line 52
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->d:Lcom/moji/mjweather/aqi/widget/TrendYAxisView;

    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    invoke-virtual {p1, v0}, Lcom/moji/mjweather/aqi/widget/TrendYAxisView;->setChartView(Lcom/moji/mjweather/aqi/widget/TrendChartView;)V

    .line 53
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->d:Lcom/moji/mjweather/aqi/widget/TrendYAxisView;

    invoke-virtual {p1}, Lcom/moji/mjweather/aqi/widget/TrendYAxisView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout$LayoutParams;

    .line 54
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->c:Lcom/moji/mjweather/aqi/widget/TrendChartView;

    invoke-virtual {v0}, Lcom/moji/mjweather/aqi/widget/TrendChartView;->getLeftMarginSize()I

    move-result v0

    iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 55
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->d:Lcom/moji/mjweather/aqi/widget/TrendYAxisView;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/aqi/widget/TrendYAxisView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 57
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;->b:Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;

    new-instance v0, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl$1;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl$1;-><init>(Lcom/moji/mjweather/aqi/control/AqiForecastChartViewControl;)V

    invoke-virtual {p1, v0}, Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView;->setOnScrollListener(Lcom/moji/mjweather/aqi/widget/HorizontalScrollChartParentView$OnScrollListener;)V

    return-void
.end method
