package ඓ.ᕣ.K.K.ᕣ;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.text.TextUtils;
import android.view.animation.AccelerateInterpolator;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.ᕣ.K  reason: contains not printable characters */
/* compiled from: TextBuilder */
public class C0741 extends AbstractC0747 {

    /* renamed from: ᨨ  reason: contains not printable characters */
    public String f3761;

    /* renamed from: 㳳  reason: contains not printable characters */
    public int f3762 = 0;

    /* renamed from: 㿎  reason: contains not printable characters */
    public Paint f3763;

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    public void onAnimationRepeat(Animator animator) {
        String str = this.f3761;
        if (str != null && !str.isEmpty()) {
            int i = this.f3762 + 1;
            this.f3762 = i;
            if (i > this.f3761.toCharArray().length) {
                this.f3762 = 0;
            }
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2163(Context context) {
        this.f3763 = new Paint(1);
        this.f3763.setColor(-16777216);
        this.f3763.setDither(true);
        this.f3763.setFilterBitmap(true);
        this.f3763.setTextSize(this.f3803);
        this.f3763.setStyle(Paint.Style.FILL);
        this.f3763.setTextAlign(Paint.Align.LEFT);
        this.f3761 = "Zyao89";
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2164(int i) {
        this.f3763.setAlpha(i);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2170() {
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2165(ValueAnimator valueAnimator) {
        valueAnimator.setDuration(AbstractC0747.m2197((double) (((float) m2201()) * 0.3f)));
        valueAnimator.setInterpolator(new AccelerateInterpolator());
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2166(ValueAnimator valueAnimator, float f) {
        this.f3763.setAlpha(((int) (f * 155.0f)) + 100);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2168(ColorFilter colorFilter) {
        this.f3763.setColorFilter(colorFilter);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2169(String str) {
        if (!TextUtils.isEmpty(str)) {
            float measureText = this.f3763.measureText(str);
            float f = this.f3802;
            if (measureText >= f) {
                this.f3763.setTextSize(f / (measureText / this.f3803));
            }
            this.f3761 = str;
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2167(Canvas canvas) {
        String str = this.f3761;
        if (str != null && !str.isEmpty()) {
            int length = this.f3761.toCharArray().length;
            float measureText = this.f3763.measureText(this.f3761, 0, length);
            Paint paint = new Paint(this.f3763);
            paint.setAlpha(100);
            float f = measureText / 2.0f;
            canvas.drawText(this.f3761, 0, length, m2199() - f, m2198(), paint);
            canvas.drawText(this.f3761, 0, this.f3762, m2199() - f, m2198(), this.f3763);
        }
    }
}
