what-the-bank/sources/com/kofax/kmc/ken/engines/data/BoundingRect.java

105 lines
2.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.ken.engines.data;
import android.graphics.Rect;
import com.kofax.BuildConfig;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcException;
import o.gjJ;
/* loaded from: classes3.dex */
public class BoundingRect {
private Rect rect;
public BoundingRect() {
Rect rect = new Rect();
this.rect = rect;
rect.setEmpty();
}
public BoundingRect(BoundingRect boundingRect) {
Rect rect = new Rect();
this.rect = rect;
rect.set(boundingRect.rect);
}
public BoundingRect(int i, int i2, int i3, int i4) {
this.rect = new Rect();
set(i, i2, i3, i4);
}
public int getRectBottom() {
return this.rect.bottom;
}
public void setRectBottom(int i) {
this.rect.bottom = i;
}
public int getRectLeft() {
return this.rect.left;
}
public void setRectLeft(int i) {
this.rect.left = i;
}
public int getRectRight() {
return this.rect.right;
}
public void setRectRight(int i) {
this.rect.right = i;
}
public int getRectTop() {
return this.rect.top;
}
public void setRectTop(int i) {
this.rect.top = i;
}
public int height() {
return this.rect.height();
}
public void set(int i, int i2, int i3, int i4) {
setRectRight(i3);
setRectLeft(i);
setRectBottom(i4);
setRectTop(i2);
}
public void set(BoundingRect boundingRect) {
this.rect.set(boundingRect.rect);
}
public void setEmpty() {
this.rect.setEmpty();
}
public String toString() {
return this.rect.toString();
}
public int width() {
return this.rect.width();
}
/* loaded from: classes3.dex */
public class FriendBR {
final BoundingRect cv;
public FriendBR(BoundingRect boundingRect, String str) throws KmcException {
this.cv = boundingRect;
if (!gjJ.c((CharSequence) str, (CharSequence) BuildConfig.APPLICATION_ID)) {
throw new KmcException(ErrorInfo.KMC_GN_UNSUPPORTED_OPERATION);
}
}
public boolean isValid() {
return this.cv.rect.left <= this.cv.rect.right && this.cv.rect.top <= this.cv.rect.bottom;
}
}
}