⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datamatrix.java

📁 著名IDAutomation公司的JAVA条码控件源码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
            29
        }, {
            30
        }, {
            31
        }, {
            32
        }, {
            33
        }, {
            34
        }, {
            35
        }, {
            36
        }, {
            37
        }, {
            38
        }, {
            39
        }, {
            1, 22
        }, {
            1, 23
        }, {
            1, 24
        }, {
            1, 25
        }, {
            1, 26
        }, {
            2, 0
        }, {
            2, 1
        }, {
            2, 2
        }, {
            2, 3
        }, {
            2, 4
        }, {
            2, 5
        }, {
            2, 6
        }, {
            2, 7
        }, {
            2, 8
        }, {
            2, 9
        }, {
            2, 10
        }, {
            2, 11
        }, {
            2, 12
        }, {
            2, 13
        }, {
            2, 14
        }, {
            2, 15
        }, {
            2, 16
        }, {
            2, 17
        }, {
            2, 18
        }, {
            2, 19
        }, {
            2, 20
        }, {
            2, 21
        }, {
            2, 22
        }, {
            2, 23
        }, {
            2, 24
        }, {
            2, 25
        }, {
            2, 26
        }, {
            2, 27
        }, {
            2, 28
        }, {
            2, 29
        }, {
            2, 30
        }, {
            2, 31
        }, {
            1, 30, 0, 0
        }, {
            1, 30, 0, 1
        }, {
            1, 30, 0, 2
        }, {
            1, 30, 0, 3
        }, {
            1, 30, 0, 4
        }, {
            1, 30, 0, 5
        }, {
            1, 30, 0, 6
        }, {
            1, 30, 0, 7
        }, {
            1, 30, 0, 8
        }, {
            1, 30, 0, 9
        }, {
            1, 30, 0, 10
        }, {
            1, 30, 0, 11
        }, {
            1, 30, 0, 12
        }, {
            1, 30, 0, 13
        }, {
            1, 30, 0, 14
        }, {
            1, 30, 0, 15
        }, {
            1, 30, 0, 16
        }, {
            1, 30, 0, 17
        }, {
            1, 30, 0, 18
        }, {
            1, 30, 0, 19
        }, {
            1, 30, 0, 20
        }, {
            1, 30, 0, 21
        }, {
            1, 30, 0, 22
        }, {
            1, 30, 0, 23
        }, {
            1, 30, 0, 24
        }, {
            1, 30, 0, 25
        }, {
            1, 30, 0, 26
        }, {
            1, 30, 0, 27
        }, {
            1, 30, 0, 28
        }, {
            1, 30, 0, 29
        }, {
            1, 30, 0, 30
        }, {
            1, 30, 0, 31
        }, {
            1, 30, 3
        }, {
            1, 30, 1, 0
        }, {
            1, 30, 1, 1
        }, {
            1, 30, 1, 2
        }, {
            1, 30, 1, 3
        }, {
            1, 30, 1, 4
        }, {
            1, 30, 1, 5
        }, {
            1, 30, 1, 6
        }, {
            1, 30, 1, 7
        }, {
            1, 30, 1, 8
        }, {
            1, 30, 1, 9
        }, {
            1, 30, 1, 10
        }, {
            1, 30, 1, 11
        }, {
            1, 30, 1, 12
        }, {
            1, 30, 1, 13
        }, {
            1, 30, 1, 14
        }, {
            1, 30, 4
        }, {
            1, 30, 5
        }, {
            1, 30, 6
        }, {
            1, 30, 7
        }, {
            1, 30, 8
        }, {
            1, 30, 9
        }, {
            1, 30, 10
        }, {
            1, 30, 11
        }, {
            1, 30, 12
        }, {
            1, 30, 13
        }, {
            1, 30, 1, 15
        }, {
            1, 30, 1, 16
        }, {
            1, 30, 1, 17
        }, {
            1, 30, 1, 18
        }, {
            1, 30, 1, 19
        }, {
            1, 30, 1, 20
        }, {
            1, 30, 1, 21
        }, {
            1, 30, 14
        }, {
            1, 30, 15
        }, {
            1, 30, 16
        }, {
            1, 30, 17
        }, {
            1, 30, 18
        }, {
            1, 30, 19
        }, {
            1, 30, 20
        }, {
            1, 30, 21
        }, {
            1, 30, 22
        }, {
            1, 30, 23
        }, {
            1, 30, 24
        }, {
            1, 30, 25
        }, {
            1, 30, 26
        }, {
            1, 30, 27
        }, {
            1, 30, 28
        }, {
            1, 30, 29
        }, {
            1, 30, 30
        }, {
            1, 30, 31
        }, {
            1, 30, 32
        }, {
            1, 30, 33
        }, {
            1, 30, 34
        }, {
            1, 30, 35
        }, {
            1, 30, 36
        }, {
            1, 30, 37
        }, {
            1, 30, 38
        }, {
            1, 30, 39
        }, {
            1, 30, 1, 22
        }, {
            1, 30, 1, 23
        }, {
            1, 30, 1, 24
        }, {
            1, 30, 1, 25
        }, {
            1, 30, 1, 26
        }, {
            1, 30, 2, 0
        }, {
            1, 30, 2, 1
        }, {
            1, 30, 2, 2
        }, {
            1, 30, 2, 3
        }, {
            1, 30, 2, 4
        }, {
            1, 30, 2, 5
        }, {
            1, 30, 2, 6
        }, {
            1, 30, 2, 7
        }, {
            1, 30, 2, 8
        }, {
            1, 30, 2, 9
        }, {
            1, 30, 2, 10
        }, {
            1, 30, 2, 11
        }, {
            1, 30, 2, 12
        }, {
            1, 30, 2, 13
        }, {
            1, 30, 2, 14
        }, {
            1, 30, 2, 15
        }, {
            1, 30, 2, 16
        }, {
            1, 30, 2, 17
        }, {
            1, 30, 2, 18
        }, {
            1, 30, 2, 19
        }, {
            1, 30, 2, 20
        }, {
            1, 30, 2, 21
        }, {
            1, 30, 2, 22
        }, {
            1, 30, 2, 23
        }, {
            1, 30, 2, 24
        }, {
            1, 30, 2, 25
        }, {
            1, 30, 2, 26
        }, {
            1, 30, 2, 27
        }, {
            1, 30, 2, 28
        }, {
            1, 30, 2, 29
        }, {
            1, 30, 2, 30
        }, {
            1, 30, 2, 31
        }
    };

    public DataMatrix()
    {
        code = "NO DATA";
        marginCM = 0.059999999999999998D;
        leftMarginPixels = 0;
        topMarginPixels = 0;
        endOfCode = 0;
        backColor = Color.white;
        codeText = "";
        narrowBarPixels = 0;
        widthBarPixels = 0;
        narrowBarCM = 0.0D;
        widthBarCM = 0.0D;
        resolution = 38;
        barHeightPixels = 0;
        N = 2D;
        X = 0.059999999999999998D;
        width = 140;
        height = 140;
        pWidth = width;
        pHeight = height;
        autoSize = true;
        textFont = new Font("Arial", 0, 11);
        fontColor = Color.black;
        barColor = Color.black;
        I = 1.0D;
        H = 0.45000000000000001D;
        L = 0.0D;
        rotate = 0;
        currentX = 0;
        currentY = 0;
        extraHeight = 0;
        dotPixels = 0;
        margin = 0;
        processTilde = false;
        encoding = E_ASCII;
        reBuild = true;
        internalCode = "";
        preferredFormat = -1;
        currentEncoding = E_ASCII;
        C49rest = 0;
    }

    public void setDataToEncode(String s)
    {
        code = s;
        reBuild = true;
        invalidate();
    }

    public String getDataToEncode()
    {
        return code;
    }

    public void setMarginCM(double d)
    {
        marginCM = d;
        reBuild = true;
        invalidate();
    }

    public double getMarginCM()
    {
        return marginCM;
    }

    public void setBackground(Color color)
    {
        backColor = color;
        invalidate();
    }

    public Color getBackground()
    {
        return backColor;
    }

    public void setPixelsPerCM(int i)
    {
        resolution = i;
        invalidate();
    }

    public int getPixelsPerCM()
    {
        return resolution;
    }

    public void setXDimensionCM(double d)
    {
        X = d;
        reBuild = true;
        invalidate();
    }

    public double getXDimensionCM()
    {
        return X;
    }

    public void setAutoSize(boolean flag)
    {
        autoSize = flag;
        invalidate();
    }

    public boolean getAutoSize()
    {
        return autoSize;
    }

    public Dimension getPreferredSize()
    {
        return new Dimension(pWidth, pHeight);
    }

    public Dimension getMinimumSize()
    {
        Dimension dimension = new Dimension(8, 8);
        return dimension;
    }

    public void setForeground(Color color)
    {
        barColor = color;
        invalidate();
    }

    public Color getForeground()
    {
        return barColor;
    }

    public void setRotationAngle(int i)
    {
        rotate = i;
        invalidate();
    }

    public int getRotationAngle()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -