.class public Lcom/example/linechartlibrary/SimpleLineChartValueFormatter; .super Ljava/lang/Object; .source "SimpleLineChartValueFormatter.java" # interfaces .implements Lcom/example/linechartlibrary/LineChartValueFormatter; # instance fields .field private valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; # direct methods .method public constructor ()V .registers 2 .line 12 invoke-direct {p0}, Ljava/lang/Object;->()V .line 10 new-instance v0, Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-direct {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->()V iput-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; .line 13 invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->determineDecimalSeparator()V return-void .end method .method public constructor (I)V .registers 3 .line 17 invoke-direct {p0}, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->()V .line 18 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setDecimalDigitsNumber(I)Lcom/example/linechartlibrary/ValueFormatterHelper; return-void .end method # virtual methods .method public formatChartValue([CLcom/example/linechartlibrary/PointValue;)I .registers 5 .line 23 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {p2}, Lcom/example/linechartlibrary/PointValue;->getY()F move-result v1 .line 24 invoke-virtual {p2}, Lcom/example/linechartlibrary/PointValue;->getLabelAsChars()[C move-result-object p2 .line 23 invoke-virtual {v0, p1, v1, p2}, Lcom/example/linechartlibrary/ValueFormatterHelper;->formatFloatValueWithPrependedAndAppendedText([CF[C)I move-result p1 return p1 .end method .method public getAppendedText()[C .registers 2 .line 37 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->getAppendedText()[C move-result-object v0 return-object v0 .end method .method public getDecimalDigitsNumber()I .registers 2 .line 28 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->getDecimalDigitsNumber()I move-result v0 return v0 .end method .method public getDecimalSeparator()C .registers 2 .line 55 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->getDecimalSeparator()C move-result v0 return v0 .end method .method public getPrependedText()[C .registers 2 .line 46 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->getPrependedText()[C move-result-object v0 return-object v0 .end method .method public setAppendedText([C)Lcom/example/linechartlibrary/SimpleLineChartValueFormatter; .registers 3 .line 41 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setAppendedText([C)Lcom/example/linechartlibrary/ValueFormatterHelper; return-object p0 .end method .method public setDecimalDigitsNumber(I)Lcom/example/linechartlibrary/SimpleLineChartValueFormatter; .registers 3 .line 32 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setDecimalDigitsNumber(I)Lcom/example/linechartlibrary/ValueFormatterHelper; return-object p0 .end method .method public setDecimalSeparator(C)Lcom/example/linechartlibrary/SimpleLineChartValueFormatter; .registers 3 .line 59 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setDecimalSeparator(C)Lcom/example/linechartlibrary/ValueFormatterHelper; return-object p0 .end method .method public setPrependedText([C)Lcom/example/linechartlibrary/SimpleLineChartValueFormatter; .registers 3 .line 50 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleLineChartValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setPrependedText([C)Lcom/example/linechartlibrary/ValueFormatterHelper; return-object p0 .end method