147 lines
4.5 KiB
Java
147 lines
4.5 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Canvas;
|
||
|
import android.graphics.Matrix;
|
||
|
import android.graphics.Paint;
|
||
|
import android.graphics.Path;
|
||
|
import android.graphics.RectF;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import o.C6354cQa;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class DGm extends YQn {
|
||
|
protected C6354cQa e;
|
||
|
private float[] f;
|
||
|
private float[] g;
|
||
|
private Path h;
|
||
|
private RectF i;
|
||
|
private RectF j;
|
||
|
private float[] l;
|
||
|
private Path m;
|
||
|
|
||
|
public DGm(DRH drh, C6354cQa c6354cQa) {
|
||
|
super(drh, c6354cQa);
|
||
|
this.m = new Path();
|
||
|
this.f = new float[2];
|
||
|
this.i = new RectF();
|
||
|
this.l = new float[2];
|
||
|
this.j = new RectF();
|
||
|
this.g = new float[4];
|
||
|
this.h = new Path();
|
||
|
this.e = c6354cQa;
|
||
|
this.b.setColor(-16777216);
|
||
|
this.b.setTextAlign(Paint.Align.CENTER);
|
||
|
this.b.setTextSize(AbstractC0810PWv.d(10.0f));
|
||
|
}
|
||
|
|
||
|
@Override // o.YQn
|
||
|
public final void c(float f, float f2) {
|
||
|
if (this.k.b.width() > 10.0f) {
|
||
|
DRH drh = this.k;
|
||
|
float f3 = drh.f;
|
||
|
float f4 = drh.c;
|
||
|
if (f3 > f4 || f4 > 1.0f) {
|
||
|
Bun bun = this.d;
|
||
|
float f5 = this.k.b.left;
|
||
|
float f6 = this.k.b.top;
|
||
|
C16382npz.d();
|
||
|
Bun bun2 = null;
|
||
|
float[] fArr = bun2.b;
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
a(f, f2);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
@Override // o.YQn
|
||
|
public final void a(float f, float f2) {
|
||
|
String str;
|
||
|
super.a(f, f2);
|
||
|
C6354cQa c6354cQa = this.e;
|
||
|
String str2 = "";
|
||
|
for (int i = 0; i < c6354cQa.m.length; i++) {
|
||
|
if (i < 0 || i >= c6354cQa.m.length) {
|
||
|
str = "";
|
||
|
} else {
|
||
|
str = c6354cQa.c().c(c6354cQa.m[i]);
|
||
|
}
|
||
|
if (str != null && str2.length() < str.length()) {
|
||
|
str2 = str;
|
||
|
}
|
||
|
}
|
||
|
this.b.setTypeface(this.e.v);
|
||
|
this.b.setTextSize(this.e.b());
|
||
|
RlR Hd_ = AbstractC0810PWv.Hd_(this.b, str2);
|
||
|
float f3 = Hd_.c;
|
||
|
float Hc_ = AbstractC0810PWv.Hc_(this.b, "Q");
|
||
|
float f4 = this.e.z;
|
||
|
RlR d = AbstractC0810PWv.d(f3, Hc_, BitmapDescriptorFactory.HUE_RED);
|
||
|
this.e.A = Math.round(f3);
|
||
|
this.e.y = Math.round(Hc_);
|
||
|
this.e.B = Math.round(d.c);
|
||
|
this.e.u = Math.round(d.a);
|
||
|
RlR.a(d);
|
||
|
RlR.a(Hd_);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void GV_(Canvas canvas, String str, float f, float f2, QFQ qfq, float f3) {
|
||
|
AbstractC0810PWv.Hf_(canvas, str, f, f2, this.b, qfq, f3);
|
||
|
}
|
||
|
|
||
|
private void e() {
|
||
|
float f = this.e.z;
|
||
|
int i = this.e.l << 1;
|
||
|
float[] fArr = new float[i];
|
||
|
for (int i2 = 0; i2 < i; i2 += 2) {
|
||
|
fArr[i2] = this.e.m[i2 / 2];
|
||
|
}
|
||
|
Matrix matrix = this.d.d;
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public void GX_(Canvas canvas) {
|
||
|
if (this.e.q && this.e.h) {
|
||
|
this.e.d();
|
||
|
this.b.setTypeface(this.e.v);
|
||
|
this.b.setTextSize(this.e.b());
|
||
|
this.b.setColor(this.e.r);
|
||
|
QFQ e = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED);
|
||
|
if (this.e.D == C6354cQa.IeS.TOP) {
|
||
|
e.a = 0.5f;
|
||
|
e.e = 1.0f;
|
||
|
float f = this.k.b.top;
|
||
|
e();
|
||
|
} else if (this.e.D == C6354cQa.IeS.TOP_INSIDE) {
|
||
|
e.a = 0.5f;
|
||
|
e.e = 1.0f;
|
||
|
float f2 = this.k.b.top;
|
||
|
int i = this.e.u;
|
||
|
e();
|
||
|
} else if (this.e.D == C6354cQa.IeS.BOTTOM) {
|
||
|
e.a = 0.5f;
|
||
|
e.e = BitmapDescriptorFactory.HUE_RED;
|
||
|
float f3 = this.k.b.bottom;
|
||
|
e();
|
||
|
} else if (this.e.D == C6354cQa.IeS.BOTTOM_INSIDE) {
|
||
|
e.a = 0.5f;
|
||
|
e.e = BitmapDescriptorFactory.HUE_RED;
|
||
|
float f4 = this.k.b.bottom;
|
||
|
int i2 = this.e.u;
|
||
|
e();
|
||
|
} else {
|
||
|
e.a = 0.5f;
|
||
|
e.e = 1.0f;
|
||
|
float f5 = this.k.b.top;
|
||
|
e();
|
||
|
e.a = 0.5f;
|
||
|
e.e = BitmapDescriptorFactory.HUE_RED;
|
||
|
float f6 = this.k.b.bottom;
|
||
|
e();
|
||
|
}
|
||
|
QFQ.b(e);
|
||
|
}
|
||
|
}
|
||
|
}
|