.class public Lcom/example/linechartlibrary/SimpleAxisValueFormatter; .super Ljava/lang/Object; .source "SimpleAxisValueFormatter.java" # interfaces .implements Lcom/example/linechartlibrary/AxisValueFormatter; # instance fields .field private valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; # direct methods .method public constructor ()V .registers 2 .line 10 invoke-direct {p0}, Ljava/lang/Object;->()V .line 8 new-instance v0, Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-direct {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->()V iput-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; .line 11 invoke-virtual {v0}, Lcom/example/linechartlibrary/ValueFormatterHelper;->determineDecimalSeparator()V return-void .end method .method public constructor (I)V .registers 3 .line 15 invoke-direct {p0}, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->()V .line 16 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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 formatValueForAutoGeneratedAxis([CFI)I .registers 5 .line 28 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1, p2, p3}, Lcom/example/linechartlibrary/ValueFormatterHelper;->formatFloatValueWithPrependedAndAppendedText([CFI)I move-result p1 return p1 .end method .method public formatValueForManualAxis([CLcom/example/linechartlibrary/AxisValue;)I .registers 5 .line 21 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; .line 22 invoke-virtual {p2}, Lcom/example/linechartlibrary/AxisValue;->getValue()F move-result v1 invoke-virtual {p2}, Lcom/example/linechartlibrary/AxisValue;->getLabelAsChars()[C move-result-object p2 .line 21 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 43 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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 34 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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 61 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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 52 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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/SimpleAxisValueFormatter; .registers 3 .line 47 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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/SimpleAxisValueFormatter; .registers 3 .line 38 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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/SimpleAxisValueFormatter; .registers 3 .line 65 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->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/SimpleAxisValueFormatter; .registers 3 .line 56 iget-object v0, p0, Lcom/example/linechartlibrary/SimpleAxisValueFormatter;->valueFormatterHelper:Lcom/example/linechartlibrary/ValueFormatterHelper; invoke-virtual {v0, p1}, Lcom/example/linechartlibrary/ValueFormatterHelper;->setPrependedText([C)Lcom/example/linechartlibrary/ValueFormatterHelper; return-object p0 .end method