package com.bytedance.ies.nle.editor_jni;

import X.AnonymousClass50Q;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public class NLEStyCanvas extends NLENode {
    public transient long LIZ;
    public transient boolean LIZIZ;

    static {
        Covode.recordClassIndex(29881);
    }

    public void finalize() {
        delete();
    }

    public NLEStyCanvas() {
        this(NLEEditorJniJNI.new_NLEStyCanvas());
        MethodCollector.i(16447);
        MethodCollector.o(16447);
    }

    public final long LIZIZ() {
        MethodCollector.i(14797);
        long NLEStyCanvas_getColor = NLEEditorJniJNI.NLEStyCanvas_getColor(this.LIZ, this);
        MethodCollector.o(14797);
        return NLEStyCanvas_getColor;
    }

    public final float LIZLLL() {
        MethodCollector.i(15416);
        float NLEStyCanvas_getBlurRadius = NLEEditorJniJNI.NLEStyCanvas_getBlurRadius(this.LIZ, this);
        MethodCollector.o(15416);
        return NLEStyCanvas_getBlurRadius;
    }

    public final long LJ() {
        MethodCollector.i(15602);
        long NLEStyCanvas_getStartColor = NLEEditorJniJNI.NLEStyCanvas_getStartColor(this.LIZ, this);
        MethodCollector.o(15602);
        return NLEStyCanvas_getStartColor;
    }

    public final long LJFF() {
        MethodCollector.i(15796);
        long NLEStyCanvas_getEndColor = NLEEditorJniJNI.NLEStyCanvas_getEndColor(this.LIZ, this);
        MethodCollector.o(15796);
        return NLEStyCanvas_getEndColor;
    }

    public final boolean LJI() {
        MethodCollector.i(15978);
        boolean NLEStyCanvas_getAntialiasing = NLEEditorJniJNI.NLEStyCanvas_getAntialiasing(this.LIZ, this);
        MethodCollector.o(15978);
        return NLEStyCanvas_getAntialiasing;
    }

    public final long LJII() {
        MethodCollector.i(16141);
        long NLEStyCanvas_getBorderColor = NLEEditorJniJNI.NLEStyCanvas_getBorderColor(this.LIZ, this);
        MethodCollector.o(16141);
        return NLEStyCanvas_getBorderColor;
    }

    public final long LJIIIIZZ() {
        MethodCollector.i(16445);
        long NLEStyCanvas_getBorderWidth = NLEEditorJniJNI.NLEStyCanvas_getBorderWidth(this.LIZ, this);
        MethodCollector.o(16445);
        return NLEStyCanvas_getBorderWidth;
    }

    public final AnonymousClass50Q LIZ() {
        MethodCollector.i(13641);
        AnonymousClass50Q swigToEnum = AnonymousClass50Q.swigToEnum(NLEEditorJniJNI.NLEStyCanvas_getType(this.LIZ, this));
        MethodCollector.o(13641);
        return swigToEnum;
    }

    public final NLEResourceNode LIZJ() {
        MethodCollector.i(15236);
        long NLEStyCanvas_getImage = NLEEditorJniJNI.NLEStyCanvas_getImage(this.LIZ, this);
        if (NLEStyCanvas_getImage == 0) {
            MethodCollector.o(15236);
            return null;
        }
        NLEResourceNode nLEResourceNode = new NLEResourceNode(NLEStyCanvas_getImage);
        MethodCollector.o(15236);
        return nLEResourceNode;
    }

    public NLENode clone() {
        MethodCollector.i(13637);
        long NLEStyCanvas_clone = NLEEditorJniJNI.NLEStyCanvas_clone(this.LIZ, this);
        if (NLEStyCanvas_clone == 0) {
            MethodCollector.o(13637);
            return null;
        }
        NLENode nLENode = new NLENode(NLEStyCanvas_clone, true);
        MethodCollector.o(13637);
        return nLENode;
    }

    public synchronized void delete() {
        MethodCollector.i(13635);
        long j = this.LIZ;
        if (j != 0) {
            if (this.LIZIZ) {
                this.LIZIZ = false;
                NLEEditorJniJNI.delete_NLEStyCanvas(j);
            }
            this.LIZ = 0;
        }
        super.delete();
        MethodCollector.o(13635);
    }

    public static long LIZ(NLEStyCanvas nLEStyCanvas) {
        if (nLEStyCanvas == null) {
            return 0;
        }
        return nLEStyCanvas.LIZ;
    }

    public void swigSetCMemOwn(boolean z) {
        this.LIZIZ = z;
        super.swigSetCMemOwn(z);
    }

    public final void LIZ(long j) {
        MethodCollector.i(13643);
        NLEEditorJniJNI.NLEStyCanvas_setColor(this.LIZ, this, j);
        MethodCollector.o(13643);
    }

    public NLEStyCanvas(long j) {
        super(NLEEditorJniJNI.NLEStyCanvas_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(18967);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(18967);
    }

    public final void LIZIZ(long j) {
        MethodCollector.i(16305);
        NLEEditorJniJNI.NLEStyCanvas_setBorderWidth(this.LIZ, this, j);
        MethodCollector.o(16305);
    }

    public final void LIZ(AnonymousClass50Q r5) {
        MethodCollector.i(13638);
        NLEEditorJniJNI.NLEStyCanvas_setType(this.LIZ, this, r5.swigValue());
        MethodCollector.o(13638);
    }

    public final void LIZ(NLEResourceNode nLEResourceNode) {
        MethodCollector.i(15003);
        NLEResourceNode nLEResourceNode2 = nLEResourceNode;
        NLEEditorJniJNI.NLEStyCanvas_setImage(this.LIZ, this, NLEResourceNode.LIZ(nLEResourceNode2), nLEResourceNode2);
        MethodCollector.o(15003);
    }
}
