BarChart.smali
.class public Lcom/github/mikephil/charting/charts/BarChart;
.super Lr2/a;
.source "BarChart.java"
# interfaces
.implements Lw2/a;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lr2/a<",
"Lt2/a;",
">;",
"Lw2/a;"
}
.end annotation
# instance fields
.field public p0:Z
.field public q0:Z
.field public r0:Z
.field public s0:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
invoke-direct {p0, p1}, Lr2/a;-><init>(Landroid/content/Context;)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->p0:Z
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/github/mikephil/charting/charts/BarChart;->q0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->r0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->s0:Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
invoke-direct {p0, p1, p2}, Lr2/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->p0:Z
const/4 p2, 0x1
iput-boolean p2, p0, Lcom/github/mikephil/charting/charts/BarChart;->q0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->r0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->s0:Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
invoke-direct {p0, p1, p2, p3}, Lr2/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->p0:Z
const/4 p2, 0x1
iput-boolean p2, p0, Lcom/github/mikephil/charting/charts/BarChart;->q0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->r0:Z
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->s0:Z
return-void
.end method
# virtual methods
.method public a(FF)Lv2/c;
.registers 11
iget-object v0, p0, Lr2/b;->b:Lt2/h;
if-nez v0, :cond_d
const-string p1, "MPAndroidChart"
const-string p2, "Can\'t select by touch. No data set."
invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const/4 p1, 0x0
return-object p1
:cond_d
invoke-virtual {p0}, Lr2/b;->getHighlighter()Lv2/e;
move-result-object v0
invoke-interface {v0, p1, p2}, Lv2/e;->a(FF)Lv2/c;
move-result-object p1
if-eqz p1, :cond_3e
invoke-virtual {p0}, Lcom/github/mikephil/charting/charts/BarChart;->c()Z
move-result p2
if-nez p2, :cond_1e
goto :goto_3e
:cond_1e
new-instance p2, Lv2/c;
invoke-virtual {p1}, Lv2/c;->f()F
move-result v1
invoke-virtual {p1}, Lv2/c;->h()F
move-result v2
invoke-virtual {p1}, Lv2/c;->g()F
move-result v3
invoke-virtual {p1}, Lv2/c;->i()F
move-result v4
invoke-virtual {p1}, Lv2/c;->b()I
move-result v5
const/4 v6, -0x1
invoke-virtual {p1}, Lv2/c;->a()Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
move-result-object v7
move-object v0, p2
invoke-direct/range {v0 .. v7}, Lv2/c;-><init>(FFFFIILcom/github/mikephil/charting/components/YAxis$AxisDependency;)V
return-object p2
:cond_3e
:goto_3e
return-object p1
.end method
.method public a()Z
.registers 2
iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/BarChart;->r0:Z
return v0
.end method
.method public b()Z
.registers 2
iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/BarChart;->q0:Z
return v0
.end method
.method public c()Z
.registers 2
iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/BarChart;->p0:Z
return v0
.end method
.method public g()V
.registers 4
invoke-super {p0}, Lr2/a;->g()V
new-instance v0, La3/b;
iget-object v1, p0, Lr2/b;->u:Lp2/a;
iget-object v2, p0, Lr2/b;->t:Lb3/j;
invoke-direct {v0, p0, v1, v2}, La3/b;-><init>(Lw2/a;Lp2/a;Lb3/j;)V
iput-object v0, p0, Lr2/b;->r:La3/d;
new-instance v0, Lv2/a;
invoke-direct {v0, p0}, Lv2/a;-><init>(Lw2/a;)V
invoke-virtual {p0, v0}, Lr2/b;->setHighlighter(Lv2/b;)V
invoke-virtual {p0}, Lr2/b;->getXAxis()Lcom/github/mikephil/charting/components/XAxis;
move-result-object v0
const/high16 v1, 0x3f000000 # 0.5f
invoke-virtual {v0, v1}, Ls2/a;->b(F)V
invoke-virtual {p0}, Lr2/b;->getXAxis()Lcom/github/mikephil/charting/components/XAxis;
move-result-object v0
invoke-virtual {v0, v1}, Ls2/a;->a(F)V
return-void
.end method
.method public getBarData()Lt2/a;
.registers 2
iget-object v0, p0, Lr2/b;->b:Lt2/h;
check-cast v0, Lt2/a;
return-object v0
.end method
.method public o()V
.registers 6
iget-boolean v0, p0, Lcom/github/mikephil/charting/charts/BarChart;->s0:Z
if-eqz v0, :cond_30
iget-object v0, p0, Lr2/b;->i:Lcom/github/mikephil/charting/components/XAxis;
iget-object v1, p0, Lr2/b;->b:Lt2/h;
check-cast v1, Lt2/a;
invoke-virtual {v1}, Lt2/h;->f()F
move-result v1
iget-object v2, p0, Lr2/b;->b:Lt2/h;
check-cast v2, Lt2/a;
invoke-virtual {v2}, Lt2/a;->j()F
move-result v2
const/high16 v3, 0x40000000 # 2.0f
div-float/2addr v2, v3
sub-float/2addr v1, v2
iget-object v2, p0, Lr2/b;->b:Lt2/h;
check-cast v2, Lt2/a;
invoke-virtual {v2}, Lt2/h;->e()F
move-result v2
iget-object v4, p0, Lr2/b;->b:Lt2/h;
check-cast v4, Lt2/a;
invoke-virtual {v4}, Lt2/a;->j()F
move-result v4
div-float/2addr v4, v3
add-float/2addr v2, v4
invoke-virtual {v0, v1, v2}, Ls2/a;->a(FF)V
goto :goto_45
:cond_30
iget-object v0, p0, Lr2/b;->i:Lcom/github/mikephil/charting/components/XAxis;
iget-object v1, p0, Lr2/b;->b:Lt2/h;
check-cast v1, Lt2/a;
invoke-virtual {v1}, Lt2/h;->f()F
move-result v1
iget-object v2, p0, Lr2/b;->b:Lt2/h;
check-cast v2, Lt2/a;
invoke-virtual {v2}, Lt2/h;->e()F
move-result v2
invoke-virtual {v0, v1, v2}, Ls2/a;->a(FF)V
:goto_45
iget-object v0, p0, Lr2/a;->a0:Lcom/github/mikephil/charting/components/YAxis;
iget-object v1, p0, Lr2/b;->b:Lt2/h;
check-cast v1, Lt2/a;
sget-object v2, Lcom/github/mikephil/charting/components/YAxis$AxisDependency;->LEFT:Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
invoke-virtual {v1, v2}, Lt2/h;->b(Lcom/github/mikephil/charting/components/YAxis$AxisDependency;)F
move-result v1
iget-object v2, p0, Lr2/b;->b:Lt2/h;
check-cast v2, Lt2/a;
sget-object v3, Lcom/github/mikephil/charting/components/YAxis$AxisDependency;->LEFT:Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
invoke-virtual {v2, v3}, Lt2/h;->a(Lcom/github/mikephil/charting/components/YAxis$AxisDependency;)F
move-result v2
invoke-virtual {v0, v1, v2}, Lcom/github/mikephil/charting/components/YAxis;->a(FF)V
iget-object v0, p0, Lr2/a;->b0:Lcom/github/mikephil/charting/components/YAxis;
iget-object v1, p0, Lr2/b;->b:Lt2/h;
check-cast v1, Lt2/a;
sget-object v2, Lcom/github/mikephil/charting/components/YAxis$AxisDependency;->RIGHT:Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
invoke-virtual {v1, v2}, Lt2/h;->b(Lcom/github/mikephil/charting/components/YAxis$AxisDependency;)F
move-result v1
iget-object v2, p0, Lr2/b;->b:Lt2/h;
check-cast v2, Lt2/a;
sget-object v3, Lcom/github/mikephil/charting/components/YAxis$AxisDependency;->RIGHT:Lcom/github/mikephil/charting/components/YAxis$AxisDependency;
invoke-virtual {v2, v3}, Lt2/h;->a(Lcom/github/mikephil/charting/components/YAxis$AxisDependency;)F
move-result v2
invoke-virtual {v0, v1, v2}, Lcom/github/mikephil/charting/components/YAxis;->a(FF)V
return-void
.end method
.method public setDrawBarShadow(Z)V
.registers 2
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->r0:Z
return-void
.end method
.method public setDrawValueAboveBar(Z)V
.registers 2
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->q0:Z
return-void
.end method
.method public setFitBars(Z)V
.registers 2
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->s0:Z
return-void
.end method
.method public setHighlightFullBarEnabled(Z)V
.registers 2
iput-boolean p1, p0, Lcom/github/mikephil/charting/charts/BarChart;->p0:Z
return-void
.end method