what-the-bank/sources/io/beid/beidk/ui/camera/GraphicOverlay.java

56 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.beid.beidk.ui.camera;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import io.beid.beidk.ui.camera.GraphicOverlay.RVV;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes5.dex */
public class GraphicOverlay<T extends RVV> extends View {
private float a;
public final Object b;
private int c;
public Set<T> d;
private int e;
private float g;
private int i;
/* loaded from: classes5.dex */
public static abstract class RVV {
}
@Override // android.view.View
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
synchronized (this.b) {
if (this.c != 0 && this.e != 0) {
this.a = getWidth() / this.c;
this.g = getHeight() / this.e;
}
for (T t : this.d) {
}
}
}
public final void e(int i, int i2, int i3) {
synchronized (this.b) {
this.c = i;
this.e = i2;
this.i = i3;
}
postInvalidate();
}
public GraphicOverlay(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.b = new Object();
this.a = 1.0f;
this.g = 1.0f;
this.i = 0;
this.d = new HashSet();
}
}