package com.kmall.common.utils.print.ticket.doc;

import javax.print.attribute.Size2DSyntax;
import javax.print.attribute.standard.MediaSize;
import javax.print.attribute.standard.MediaSizeName;

/**
 * @author Scott Chen
 * @since 1.0
 * 2018-10-29
 */
public class ThermalMediaSize extends MediaSize {

    private static final long serialVersionUID = 7004676280394045459L;

    public ThermalMediaSize(int x, int y, int units, MediaSizeName media) {
        super(x, y, units, media);
    }


    public final static class TP{

        /**
         * 57mm
         * 80 X 297
         */
        public static final ThermalMediaSize T57
                = new ThermalMediaSize(57, 297, Size2DSyntax.MM,
                ThermalMediaSizeName.TP_57);

        /**
         * 80mm
         * 80 X 297
         */
        public static final ThermalMediaSize T80
                = new ThermalMediaSize(80, 297, Size2DSyntax.MM,
                ThermalMediaSizeName.TP_80);

        private TP(){}

    }


    static {
        ThermalMediaSize TP57 = TP.T57;
        ThermalMediaSize TP80 = TP.T80;
    }

}

