XAxisRendererRadarChart.smali
.class public Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;
.super Lcom/github/mikephil/charting/renderer/XAxisRenderer;
# instance fields
.field private i:Lcom/github/mikephil/charting/charts/RadarChart;
# direct methods
.method public constructor <init>(Lcom/github/mikephil/charting/utils/ViewPortHandler;Lcom/github/mikephil/charting/components/XAxis;Lcom/github/mikephil/charting/charts/RadarChart;)V
.registers 5
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Lcom/github/mikephil/charting/renderer/XAxisRenderer;-><init>(Lcom/github/mikephil/charting/utils/ViewPortHandler;Lcom/github/mikephil/charting/components/XAxis;Lcom/github/mikephil/charting/utils/Transformer;)V
iput-object p3, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
return-void
.end method
# virtual methods
.method public e(Landroid/graphics/Canvas;)V
.registers 16
iget-object v0, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v0}, Lcom/github/mikephil/charting/components/ComponentBase;->f()Z
move-result v0
if-eqz v0, :cond_ba
iget-object v0, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v0}, Lcom/github/mikephil/charting/components/AxisBase;->p()Z
move-result v0
if-nez v0, :cond_12
goto/16 :goto_ba
:cond_12
iget-object v0, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v0}, Lcom/github/mikephil/charting/components/XAxis;->t()F
move-result v0
const/high16 v1, 0x3f000000 # 0.5f
const/high16 v2, 0x3e800000 # 0.25f
invoke-static {v1, v2}, Lcom/github/mikephil/charting/utils/MPPointF;->c(FF)Lcom/github/mikephil/charting/utils/MPPointF;
move-result-object v8
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/AxisRenderer;->e:Landroid/graphics/Paint;
iget-object v2, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v2}, Lcom/github/mikephil/charting/components/ComponentBase;->c()Landroid/graphics/Typeface;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/AxisRenderer;->e:Landroid/graphics/Paint;
iget-object v2, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v2}, Lcom/github/mikephil/charting/components/ComponentBase;->b()F
move-result v2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setTextSize(F)V
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/AxisRenderer;->e:Landroid/graphics/Paint;
iget-object v2, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v2}, Lcom/github/mikephil/charting/components/ComponentBase;->a()I
move-result v2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/RadarChart;->getSliceAngle()F
move-result v9
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/RadarChart;->getFactor()F
move-result v10
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/Chart;->getCenterOffsets()Lcom/github/mikephil/charting/utils/MPPointF;
move-result-object v11
const/4 v1, 0x0
invoke-static {v1, v1}, Lcom/github/mikephil/charting/utils/MPPointF;->c(FF)Lcom/github/mikephil/charting/utils/MPPointF;
move-result-object v12
const/4 v1, 0x0
const/4 v13, 0x0
:goto_5a
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/Chart;->getData()Lcom/github/mikephil/charting/data/ChartData;
move-result-object v1
check-cast v1, Lcom/github/mikephil/charting/data/RadarData;
invoke-virtual {v1}, Lcom/github/mikephil/charting/data/ChartData;->k()Lcom/github/mikephil/charting/interfaces/datasets/IDataSet;
move-result-object v1
check-cast v1, Lcom/github/mikephil/charting/interfaces/datasets/IRadarDataSet;
invoke-interface {v1}, Lcom/github/mikephil/charting/interfaces/datasets/IDataSet;->a0()I
move-result v1
if-ge v13, v1, :cond_b1
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v1}, Lcom/github/mikephil/charting/components/AxisBase;->n()Lcom/github/mikephil/charting/formatter/ValueFormatter;
move-result-object v1
int-to-float v2, v13
iget-object v3, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
invoke-virtual {v1, v2, v3}, Lcom/github/mikephil/charting/formatter/ValueFormatter;->a(FLcom/github/mikephil/charting/components/AxisBase;)Ljava/lang/String;
move-result-object v3
mul-float v2, v2, v9
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/PieRadarChartBase;->getRotationAngle()F
move-result v1
add-float/2addr v2, v1
const/high16 v1, 0x43b40000 # 360.0f
rem-float/2addr v2, v1
iget-object v1, p0, Lcom/github/mikephil/charting/renderer/XAxisRendererRadarChart;->i:Lcom/github/mikephil/charting/charts/RadarChart;
invoke-virtual {v1}, Lcom/github/mikephil/charting/charts/RadarChart;->getYRange()F
move-result v1
mul-float v1, v1, v10
iget-object v4, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
iget v4, v4, Lcom/github/mikephil/charting/components/XAxis;->C:I
int-to-float v4, v4
const/high16 v5, 0x40000000 # 2.0f
div-float/2addr v4, v5
add-float/2addr v1, v4
invoke-static {v11, v1, v2, v12}, Lcom/github/mikephil/charting/utils/Utils;->p(Lcom/github/mikephil/charting/utils/MPPointF;FFLcom/github/mikephil/charting/utils/MPPointF;)V
iget v4, v12, Lcom/github/mikephil/charting/utils/MPPointF;->c:F
iget v1, v12, Lcom/github/mikephil/charting/utils/MPPointF;->d:F
iget-object v2, p0, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->h:Lcom/github/mikephil/charting/components/XAxis;
iget v2, v2, Lcom/github/mikephil/charting/components/XAxis;->D:I
int-to-float v2, v2
div-float/2addr v2, v5
sub-float v5, v1, v2
move-object v1, p0
move-object v2, p1
move-object v6, v8
move v7, v0
invoke-virtual/range {v1 .. v7}, Lcom/github/mikephil/charting/renderer/XAxisRenderer;->d(Landroid/graphics/Canvas;Ljava/lang/String;FFLcom/github/mikephil/charting/utils/MPPointF;F)V
add-int/lit8 v13, v13, 0x1
goto :goto_5a
:cond_b1
invoke-static {v11}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V
invoke-static {v12}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V
invoke-static {v8}, Lcom/github/mikephil/charting/utils/MPPointF;->e(Lcom/github/mikephil/charting/utils/MPPointF;)V
:cond_ba
:goto_ba
return-void
.end method