.class public Lcom/example/linechartlibrary/PointValue; .super Ljava/lang/Object; .source "PointValue.java" # instance fields .field private diffX:F .field private diffY:F .field private label:[C .field private labelColor:I .field private labelTextSize:I .field private originX:F .field private originY:F .field private x:F .field private y:F # direct methods .method public constructor ()V .registers 3 .line 25 invoke-direct {p0}, Ljava/lang/Object;->()V const/high16 v0, -0x1000000 .line 22 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelColor:I .line 23 invoke-static {}, Lcom/example/linechartlibrary/MyApp;->getInstance()Landroid/content/Context; move-result-object v0 const/high16 v1, 0x41600000 # 14.0f invoke-static {v0, v1}, Lcom/example/linechartlibrary/CommonUtils;->dp2px(Landroid/content/Context;F)I move-result v0 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelTextSize:I const/4 v0, 0x0 .line 26 invoke-virtual {p0, v0, v0}, Lcom/example/linechartlibrary/PointValue;->set(FF)Lcom/example/linechartlibrary/PointValue; return-void .end method .method public constructor (FF)V .registers 5 .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V const/high16 v0, -0x1000000 .line 22 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelColor:I .line 23 invoke-static {}, Lcom/example/linechartlibrary/MyApp;->getInstance()Landroid/content/Context; move-result-object v0 const/high16 v1, 0x41600000 # 14.0f invoke-static {v0, v1}, Lcom/example/linechartlibrary/CommonUtils;->dp2px(Landroid/content/Context;F)I move-result v0 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelTextSize:I .line 30 invoke-virtual {p0, p1, p2}, Lcom/example/linechartlibrary/PointValue;->set(FF)Lcom/example/linechartlibrary/PointValue; return-void .end method .method public constructor (Lcom/example/linechartlibrary/PointValue;)V .registers 4 .line 33 invoke-direct {p0}, Ljava/lang/Object;->()V const/high16 v0, -0x1000000 .line 22 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelColor:I .line 23 invoke-static {}, Lcom/example/linechartlibrary/MyApp;->getInstance()Landroid/content/Context; move-result-object v0 const/high16 v1, 0x41600000 # 14.0f invoke-static {v0, v1}, Lcom/example/linechartlibrary/CommonUtils;->dp2px(Landroid/content/Context;F)I move-result v0 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->labelTextSize:I .line 34 iget v0, p1, Lcom/example/linechartlibrary/PointValue;->x:F iget v1, p1, Lcom/example/linechartlibrary/PointValue;->y:F invoke-virtual {p0, v0, v1}, Lcom/example/linechartlibrary/PointValue;->set(FF)Lcom/example/linechartlibrary/PointValue; .line 35 iget-object p1, p1, Lcom/example/linechartlibrary/PointValue;->label:[C iput-object p1, p0, Lcom/example/linechartlibrary/PointValue;->label:[C return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .registers 6 const/4 v0, 0x1 if-ne p0, p1, :cond_4 return v0 :cond_4 const/4 v1, 0x0 if-eqz p1, :cond_62 .line 118 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 if-eq v2, v3, :cond_12 goto :goto_62 .line 120 :cond_12 check-cast p1, Lcom/example/linechartlibrary/PointValue; .line 122 iget v2, p1, Lcom/example/linechartlibrary/PointValue;->diffX:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_1f return v1 .line 123 :cond_1f iget v2, p1, Lcom/example/linechartlibrary/PointValue;->diffY:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_2a return v1 .line 124 :cond_2a iget v2, p1, Lcom/example/linechartlibrary/PointValue;->originX:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->originX:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_35 return v1 .line 125 :cond_35 iget v2, p1, Lcom/example/linechartlibrary/PointValue;->originY:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->originY:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_40 return v1 .line 126 :cond_40 iget v2, p1, Lcom/example/linechartlibrary/PointValue;->x:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->x:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_4b return v1 .line 127 :cond_4b iget v2, p1, Lcom/example/linechartlibrary/PointValue;->y:F iget v3, p0, Lcom/example/linechartlibrary/PointValue;->y:F invoke-static {v2, v3}, Ljava/lang/Float;->compare(FF)I move-result v2 if-eqz v2, :cond_56 return v1 .line 128 :cond_56 iget-object v2, p0, Lcom/example/linechartlibrary/PointValue;->label:[C iget-object p1, p1, Lcom/example/linechartlibrary/PointValue;->label:[C invoke-static {v2, p1}, Ljava/util/Arrays;->equals([C[C)Z move-result p1 if-nez p1, :cond_61 return v1 :cond_61 return v0 :cond_62 :goto_62 return v1 .end method .method public finish()V .registers 4 .line 44 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->originX:F iget v1, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F add-float/2addr v0, v1 iget v1, p0, Lcom/example/linechartlibrary/PointValue;->originY:F iget v2, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F add-float/2addr v1, v2 invoke-virtual {p0, v0, v1}, Lcom/example/linechartlibrary/PointValue;->set(FF)Lcom/example/linechartlibrary/PointValue; return-void .end method .method public getLabel()[C .registers 2 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 77 iget-object v0, p0, Lcom/example/linechartlibrary/PointValue;->label:[C return-object v0 .end method .method public getLabelAsChars()[C .registers 2 .line 86 iget-object v0, p0, Lcom/example/linechartlibrary/PointValue;->label:[C return-object v0 .end method .method public getLabelColor()I .registers 2 .line 99 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->labelColor:I return v0 .end method .method public getLabelTextSize()I .registers 2 .line 107 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->labelTextSize:I return v0 .end method .method public getX()F .registers 2 .line 68 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->x:F return v0 .end method .method public getY()F .registers 2 .line 72 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->y:F return v0 .end method .method public hashCode()I .registers 6 .line 135 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->x:F const/4 v1, 0x0 cmpl-float v2, v0, v1 const/4 v3, 0x0 if-eqz v2, :cond_d invoke-static {v0}, Ljava/lang/Float;->floatToIntBits(F)I move-result v0 goto :goto_e :cond_d move v0, v3 :goto_e mul-int/lit8 v0, v0, 0x1f .line 136 iget v2, p0, Lcom/example/linechartlibrary/PointValue;->y:F cmpl-float v4, v2, v1 if-eqz v4, :cond_1b invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I move-result v2 goto :goto_1c :cond_1b move v2, v3 :goto_1c add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f .line 137 iget v2, p0, Lcom/example/linechartlibrary/PointValue;->originX:F cmpl-float v4, v2, v1 if-eqz v4, :cond_2a invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I move-result v2 goto :goto_2b :cond_2a move v2, v3 :goto_2b add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f .line 138 iget v2, p0, Lcom/example/linechartlibrary/PointValue;->originY:F cmpl-float v4, v2, v1 if-eqz v4, :cond_39 invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I move-result v2 goto :goto_3a :cond_39 move v2, v3 :goto_3a add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f .line 139 iget v2, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F cmpl-float v4, v2, v1 if-eqz v4, :cond_48 invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I move-result v2 goto :goto_49 :cond_48 move v2, v3 :goto_49 add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f .line 140 iget v2, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F cmpl-float v1, v2, v1 if-eqz v1, :cond_57 invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I move-result v1 goto :goto_58 :cond_57 move v1, v3 :goto_58 add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f .line 141 iget-object v1, p0, Lcom/example/linechartlibrary/PointValue;->label:[C if-eqz v1, :cond_63 invoke-static {v1}, Ljava/util/Arrays;->hashCode([C)I move-result v3 :cond_63 add-int/2addr v0, v3 return v0 .end method .method public set(FF)Lcom/example/linechartlibrary/PointValue; .registers 3 .line 48 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->x:F .line 49 iput p2, p0, Lcom/example/linechartlibrary/PointValue;->y:F .line 50 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->originX:F .line 51 iput p2, p0, Lcom/example/linechartlibrary/PointValue;->originY:F const/4 p1, 0x0 .line 52 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F .line 53 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F return-object p0 .end method .method public setLabel(Ljava/lang/String;)Lcom/example/linechartlibrary/PointValue; .registers 2 .line 81 invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C move-result-object p1 iput-object p1, p0, Lcom/example/linechartlibrary/PointValue;->label:[C return-object p0 .end method .method public setLabel([C)Lcom/example/linechartlibrary/PointValue; .registers 2 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 91 iput-object p1, p0, Lcom/example/linechartlibrary/PointValue;->label:[C return-object p0 .end method .method public setLabelColor(I)Lcom/example/linechartlibrary/PointValue; .registers 2 .line 95 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->labelColor:I return-object p0 .end method .method public setLabelTextsize(I)Lcom/example/linechartlibrary/PointValue; .registers 2 .line 103 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->labelTextSize:I return-object p0 .end method .method public setTarget(FF)Lcom/example/linechartlibrary/PointValue; .registers 5 .line 61 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->x:F iget v1, p0, Lcom/example/linechartlibrary/PointValue;->y:F invoke-virtual {p0, v0, v1}, Lcom/example/linechartlibrary/PointValue;->set(FF)Lcom/example/linechartlibrary/PointValue; .line 62 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->originX:F sub-float/2addr p1, v0 iput p1, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F .line 63 iget p1, p0, Lcom/example/linechartlibrary/PointValue;->originY:F sub-float/2addr p2, p1 iput p2, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F return-object p0 .end method .method public toString()Ljava/lang/String; .registers 3 .line 112 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "PointValue [x=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget v1, p0, Lcom/example/linechartlibrary/PointValue;->x:F invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", y=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lcom/example/linechartlibrary/PointValue;->y:F invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "]" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public update(F)V .registers 4 .line 39 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->originX:F iget v1, p0, Lcom/example/linechartlibrary/PointValue;->diffX:F mul-float/2addr v1, p1 add-float/2addr v0, v1 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->x:F .line 40 iget v0, p0, Lcom/example/linechartlibrary/PointValue;->originY:F iget v1, p0, Lcom/example/linechartlibrary/PointValue;->diffY:F mul-float/2addr v1, p1 add-float/2addr v0, v1 iput v0, p0, Lcom/example/linechartlibrary/PointValue;->y:F return-void .end method