package com.icod.yk_printer_test.utils;

/**
 * Created by crf on 2018/9/12.
 */
public class PrintParamManager {


    private boolean is58Printer=true;
    public final static int Print_58_width=380;
    public final static int Print_80_width=580;
    private boolean isPrintAfterCut;
    private boolean isPrintBeforeCut;

    public boolean isIs58Printer() {
        return is58Printer;
    }

    public void setIs58Printer(boolean is58Printer) {
        this.is58Printer = is58Printer;
    }

    public boolean isPrintAfterCut() {
        return isPrintAfterCut;
    }

    public void setPrintAfterCut(boolean printAfterCut) {
        isPrintAfterCut = printAfterCut;
    }

    public boolean isPrintBeforeCut() {
        return isPrintBeforeCut;
    }

    public void setPrintBeforeCut(boolean printBeforeCut) {
        isPrintBeforeCut = printBeforeCut;
    }

    public boolean isPrintBeforInit() {
        return isPrintBeforInit;
    }

    public void setPrintBeforInit(boolean printBeforInit) {
        isPrintBeforInit = printBeforInit;
    }

    private boolean isPrintBeforInit;
    private PrintParamManager(){};
    private volatile static PrintParamManager mPrintParamManager;
    public static synchronized PrintParamManager getInstance(){
        if (mPrintParamManager==null){
            mPrintParamManager=new PrintParamManager();
        }
return mPrintParamManager;
    }



}
