package com.bytedance.adsdk.ugeno.fm;

import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.view.View;

/* JADX INFO: loaded from: classes.dex */
public class wu implements wsy {
    private float ajl;
    private View fm;
    private float jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private float f6355lb;
    private float ro;
    private float yz;

    public wu(View view) {
        this.fm = view;
    }

    public float fm() {
        return this.ro;
    }

    @Override // com.bytedance.adsdk.ugeno.fm.wsy
    public float getRipple() {
        return this.f6355lb;
    }

    @Override // com.bytedance.adsdk.ugeno.fm.wsy
    public float getRubIn() {
        return this.ajl;
    }

    @Override // com.bytedance.adsdk.ugeno.fm.wsy
    public float getShine() {
        return this.yz;
    }

    @Override // com.bytedance.adsdk.ugeno.fm.wsy
    public float getStretch() {
        return this.jnr;
    }

    public void jnr(float f10) {
        this.ajl = f10;
        this.fm.postInvalidate();
    }

    public void lb(float f10) {
        View view = this.fm;
        if (view == null) {
            return;
        }
        this.yz = f10;
        view.postInvalidate();
    }

    public void ro(float f10) {
        View view = this.fm;
        if (view == null) {
            return;
        }
        this.f6355lb = f10;
        view.postInvalidate();
    }

    public void yz(float f10) {
        this.jnr = f10;
        this.fm.postInvalidate();
    }

    public void fm(float f10) {
        View view = this.fm;
        if (view == null) {
            return;
        }
        this.ro = f10;
        Drawable background = view.getBackground();
        if (background instanceof GradientDrawable) {
            ((GradientDrawable) background).setCornerRadius(f10);
        }
    }

    public void fm(int i10) {
        View view = this.fm;
        if (view == null) {
            return;
        }
        Drawable background = view.getBackground();
        if (background instanceof GradientDrawable) {
            ((GradientDrawable) background).setColor(i10);
        } else if (background instanceof ColorDrawable) {
            ((ColorDrawable) background.mutate()).setColor(i10);
        }
    }
}
