101 lines
3 KiB
Smali
101 lines
3 KiB
Smali
.class public Lcom/google/android/material/shape/ShapePath$PathArcOperation;
|
|
.super Lcom/google/android/material/shape/ShapePath$PathOperation;
|
|
.source "ShapePath.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/shape/ShapePath;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "PathArcOperation"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final rectF:Landroid/graphics/RectF;
|
|
|
|
|
|
# instance fields
|
|
.field public bottom:F
|
|
|
|
.field public left:F
|
|
|
|
.field public right:F
|
|
|
|
.field public startAngle:F
|
|
|
|
.field public sweepAngle:F
|
|
|
|
.field public top:F
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->rectF:Landroid/graphics/RectF;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(FFFF)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/shape/ShapePath$PathOperation;-><init>()V
|
|
|
|
iput p1, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->left:F
|
|
|
|
iput p2, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->top:F
|
|
|
|
iput p3, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->right:F
|
|
|
|
iput p4, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->bottom:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public applyToPath(Landroid/graphics/Matrix;Landroid/graphics/Path;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->matrix:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->invert(Landroid/graphics/Matrix;)Z
|
|
|
|
invoke-virtual {p2, v0}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
sget-object v0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->rectF:Landroid/graphics/RectF;
|
|
|
|
iget v1, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->left:F
|
|
|
|
iget v2, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->top:F
|
|
|
|
iget v3, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->right:F
|
|
|
|
iget v4, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->bottom:F
|
|
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/RectF;->set(FFFF)V
|
|
|
|
sget-object v0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->rectF:Landroid/graphics/RectF;
|
|
|
|
iget v1, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->startAngle:F
|
|
|
|
iget v2, p0, Lcom/google/android/material/shape/ShapePath$PathArcOperation;->sweepAngle:F
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {p2, v0, v1, v2, v3}, Landroid/graphics/Path;->arcTo(Landroid/graphics/RectF;FFZ)V
|
|
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
return-void
|
|
.end method
|