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

📄 barcode.java

📁 遗传算法改进神经网络源程序 该小程序可以添加条形码功能到你的网页或者applet上,这个applet把大写字母和数字转换为标准的条形码。
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    }

    public static Enumeration enumerateBarcodeTypes()
    {
        return new BarcodeTypeEnumerator();
    }

    public BarEnumerator enumerateBars(int i)
    {
        return new BarEnumerator1(i);
    }

    public char[] getActualAddOnData()
    {
        return _symbol.getAddOnText(1, 0L);
    }

    public char[] getActualData()
    {
        return _symbol.getText(1, 0L);
    }

    public Rectangle getActualRect()
    {
        return _rcAll.getRectangle();
    }

    public SimpleRectangle getActualSimpleRect()
    {
        return _rcAll;
    }

    public char[] getAddOnCaption()
    {
        return _acAddOnMsg;
    }

    public char[] getAddOnData()
    {
        return _acOrigAddOnData;
    }

    public Rectangle getAddOnRect()
    {
        return _rcAddOn.getRectangle();
    }

    public SimpleRectangle getAddOnSimpleRect()
    {
        return _rcAddOn;
    }

    public int getAddOnTextAlign()
    {
        return _addOnTextAlign;
    }

    public Color getBackColor()
    {
        return _clrBack.getColor();
    }

    public SimpleColor getBackSimpleColor()
    {
        return _clrBack;
    }

    public int getBarTypeCount()
    {
        return _symbol.getNumBarTypes();
    }

    public int getBarTypeWidth(int i)
    {
        return _symbol.getBarExt(i);
    }

    public static int getBarcodeDefDrawFlags(int i)
    {
        if(i == 22 || i == 46 || i == 31 || i == 56)
            return 32;
        return i != 6 && i != 4 ? 0 : 0x80000;
    }

    public static int getBarcodeDrawFlagsMask(int i)
    {
        int j = 0x800809d0;
        j = ~j;
        switch(i)
        {
        case 4: // '\004'
        case 6: // '\006'
            j |= 0x80000;
            break;

        case 3: // '\003'
        case 9: // '\t'
            j |= 0x810;
            break;

        case 1: // '\001'
        case 2: // '\002'
        case 39: // '\''
        case 41: // ')'
            j |= 0x10;
            break;

        case 14: // '\016'
        case 15: // '\017'
        case 16: // '\020'
        case 17: // '\021'
            j |= 0x9d0;
            j |= 0x80000000;
            break;

        case 10: // '\n'
        case 11: // '\013'
        case 12: // '\f'
        case 13: // '\r'
        case 40: // '('
        case 42: // '*'
            j |= 0x1d0;
            j |= 0x80000000;
            break;

        case 22: // '\026'
        case 31: // '\037'
        case 46: // '.'
        case 56: // '8'
            j &= 0xfffbf9df;
            break;
        }
        return j;
    }

    public int getBarcodeType()
    {
        return _symbol.getBarcodeType();
    }

    public char[] getCaption()
    {
        return _acMsg;
    }

    public int getCheckCharShowMode()
    {
        return _checkCharShowMode;
    }

    public char[] getCheckChars()
    {
        return _symbol.getCheckchars();
    }

    public int getClearArea(int i)
    {
        return _symbol.getMargin(i);
    }

    public int getClearAreaBottom()
    {
        return getClearArea(4);
    }

    public int getClearAreaLeft()
    {
        return getClearArea(1);
    }

    public int getClearAreaMiddle()
    {
        return getClearArea(5);
    }

    public int getClearAreaRight()
    {
        return getClearArea(3);
    }

    public int getClearAreaTop()
    {
        return getClearArea(2);
    }

    public char[] getData()
    {
        return _acOrigData;
    }

    public int getDefDrawFlags()
    {
        return getBarcodeDefDrawFlags(getBarcodeType());
    }

    public char[] getDefaultCaption()
    {
        return getDefaultCaption(getDrawingAttributes());
    }

    char[] getDefaultCaption(long l)
    {
        return _symbol.getText(2, l);
    }

    public char[] getDisplayData()
    {
        return getFullData();
    }

    public long getDrawFlagsFromProperties()
    {
        return getDrawingAttributes();
    }

    public int getDrawFlagsMask()
    {
        return getBarcodeDrawFlagsMask(getBarcodeType());
    }

    long getDrawingAttributes()
    {
        long l = 0L;
        if(_checkCharShowMode != 0)
            if(_checkCharShowMode == 1)
                l |= 0x2000000L;
            else
            if(_checkCharShowMode == 2)
                l |= 0x4000000L;
        if(_textAlign == 0)
            l |= 512L;
        else
        if(_textAlign == 1)
            l |= 1024L;
        else
        if(_textAlign == 2)
            l |= 32L;
        if(_addOnTextAlign == 0)
            l |= 128L;
        else
        if(_addOnTextAlign == 1)
            l |= 256L;
        else
        if(_addOnTextAlign == 2)
            l |= 64L;
        if(!_bPixelAlign)
            l |= 0x20000L;
        if(!_stretchText)
            l |= 0x40000L;
        if(_horzAlign == 0)
            l |= 1L;
        else
        if(_horzAlign == 1)
            l |= 4L;
        else
        if(_horzAlign == 2)
            l |= 2L;
        if(_vertAlign == 0)
            l |= 8192L;
        else
        if(_vertAlign == 1)
            l |= 32768L;
        else
        if(_vertAlign == 2)
            l |= 16384L;
        if(_uniBarHeight)
            l |= 16L;
        if(_showCode39StartStop)
            l |= 0x80000L;
        if(!_upcSmallFont)
            l |= 2048L;
        if(_retainAspectRatio)
            l |= 4096L;
        l |= 0x400000L;
        if((_bDataInvalid || _bAddOnDataInvalid) && _invalidDataAction == 0)
            l |= 0x1000000L;
        else
        if((_bDataInvalid || _bAddOnDataInvalid) && _invalidDataAction == 1)
            l |= 0x800000L;
        return l;
    }

    public String getExtraText()
    {
        if(_license.getLicenseType() == 2 || _license.getLicenseType() == 5)
        {
            if(_extraText.startsWith(_extraTextPrefix))
            {
                String s = _extraText.substring(_extraTextPrefix.length());
                if(s.startsWith("\r\n"))
                    return s.substring(2);
                if(s.startsWith("\n"))
                    return s.substring(1);
                else
                    return s;
            } else
            {
                return _extraText;
            }
        } else
        {
            return _extraText;
        }
    }

    public int getExtraTextPosition()
    {
        return _extraTextPosition != -1 ? _extraTextPosition : 0;
    }

    public boolean getFigureTransparent()
    {
        return _figureTransparent;
    }

    public Font getFont()
    {
        return _font.realizeFont();
    }

    public Color getForeColor()
    {
        return _clrFore.getColor();
    }

    public SimpleColor getForeSimpleColor()
    {
        return _clrFore;
    }

    public char[] getFullData()
    {
        return _symbol.getText(0, 0L);
    }

    public int getHorzAlign()
    {
        return _horzAlign;
    }

    public int getInterCharSpace()
    {
        return _symbol.getInterCharExt();
    }

    public SimpleFont getInternalDefaultFont()
    {
        return _defaultFont;
    }

    public SimpleFont getInternalFont()
    {
        return _font;
    }

    public int getInvalidDataAction()
    {
        return _invalidDataAction;
    }

    public String getLicenseInfo(String s)
    {
        return "Barcode/JSP V4.0 (c) 1999-2005 Bokai Corporation\nhttp://www.bokai.com/\n\n" + _license.getLicenseText(s);
    }

    public Rectangle getMainBarRect()
    {
        return _rcMainBar.getRectangle();
    }

    public SimpleRectangle getMainBarSimpleRect()
    {
        return _rcMainBar;
    }

⌨️ 快捷键说明

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