EllipseView.smali
.class public Lcom/horcrux/svg/EllipseView;
.super Lcom/horcrux/svg/RenderableView;
.source "EllipseView.java"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"ViewConstructor"
}
.end annotation
# instance fields
.field public mCx:Lcom/horcrux/svg/SVGLength;
.field public mCy:Lcom/horcrux/svg/SVGLength;
.field public mRx:Lcom/horcrux/svg/SVGLength;
.field public mRy:Lcom/horcrux/svg/SVGLength;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lcom/facebook/react/bridge/ReactContext;)V
.registers 2
invoke-direct {p0, p1}, Lcom/horcrux/svg/RenderableView;-><init>(Lcom/facebook/react/bridge/ReactContext;)V
return-void
.end method
# virtual methods
.method public getPath(Landroid/graphics/Canvas;Landroid/graphics/Paint;)Landroid/graphics/Path;
.registers 14
new-instance p1, Landroid/graphics/Path;
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
iget-object p2, p0, Lcom/horcrux/svg/EllipseView;->mCx:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0, p2}, Lcom/horcrux/svg/VirtualView;->relativeOnWidth(Lcom/horcrux/svg/SVGLength;)D
move-result-wide v0
iget-object p2, p0, Lcom/horcrux/svg/EllipseView;->mCy:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0, p2}, Lcom/horcrux/svg/VirtualView;->relativeOnHeight(Lcom/horcrux/svg/SVGLength;)D
move-result-wide v2
iget-object p2, p0, Lcom/horcrux/svg/EllipseView;->mRx:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0, p2}, Lcom/horcrux/svg/VirtualView;->relativeOnWidth(Lcom/horcrux/svg/SVGLength;)D
move-result-wide v4
iget-object p2, p0, Lcom/horcrux/svg/EllipseView;->mRy:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0, p2}, Lcom/horcrux/svg/VirtualView;->relativeOnHeight(Lcom/horcrux/svg/SVGLength;)D
move-result-wide v6
new-instance p2, Landroid/graphics/RectF;
sub-double v8, v0, v4
double-to-float v8, v8
sub-double v9, v2, v6
double-to-float v9, v9
add-double/2addr v0, v4
double-to-float v0, v0
add-double/2addr v2, v6
double-to-float v1, v2
invoke-direct {p2, v8, v9, v0, v1}, Landroid/graphics/RectF;-><init>(FFFF)V
sget-object v0, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
invoke-virtual {p1, p2, v0}, Landroid/graphics/Path;->addOval(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V
return-object p1
.end method
.method public setCx(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "cx"
.end annotation
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->from(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/EllipseView;->mCx:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setCy(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "cy"
.end annotation
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->from(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/EllipseView;->mCy:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setRx(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "rx"
.end annotation
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->from(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/EllipseView;->mRx:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method
.method public setRy(Lcom/facebook/react/bridge/Dynamic;)V
.registers 2
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "ry"
.end annotation
invoke-static {p1}, Lcom/horcrux/svg/SVGLength;->from(Lcom/facebook/react/bridge/Dynamic;)Lcom/horcrux/svg/SVGLength;
move-result-object p1
iput-object p1, p0, Lcom/horcrux/svg/EllipseView;->mRy:Lcom/horcrux/svg/SVGLength;
invoke-virtual {p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
.end method