亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdainputpanel.java

?? 很好的UI界面源碼..還有自己的輸入法,可以更換風格.可以學習和使用
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
                                isInput = true;                            }                        }                    }                }                //小寫字母                if (ImeType == imLowerCase || ImeType == imUpperCase) {                    if (numChars != null) {                        selectedChar = numChars[charIndex];                        inputVisibleChar();                        charsPanel.visible = false;                        numChars = null;                    }                }            }            //空格            if (inChar == ' ' || inChar == ' ') {            }            if (isVisible()) {                repaintControl();            } else {                if (form != null) {                    form.repaintControl();                }            }        }        //翻頁        private void priorPage() {            if (pageNo > 1) {                pageNo--;                selectedHanziIndex = (pageNo - 1) * 8;            }        }        private void nextpage() {            if (pageNo < pageCount) {                pageNo++;                selectedHanziIndex = (pageNo - 1) * 8;            }        }        //設置大小        protected void setSize(int colNum, int rowNum) {            setWidth(30 * colNum);            setHeight(getFont().getHeight() * rowNum);        }        public void paint() {            if (!IsCanPaint()) {                return;            }            Graphics g = form.getGraphics();            g.setFont(getFont());            SetClip(g);            //輸入內容            if (ImeType == imPinYin) {                //畫框                paintRect(g);                paintInputPYChars(g);                paintHanzi(g);                //翻頁                paintPages(g);            }            if (ImeType == imLowerCase || ImeType == imUpperCase) {                //畫框                paintRect(g);                //畫選擇的一鍵多值                paintCase(g);            }        }        //根據當前的組件輸入點位置畫輸入內容顯示框和選擇框        public void getCursorPosInForm() {            SDABaseEdit control = null;            if (form != null) {                if (form.focusControl != null) {                    if (form.focusControl instanceof SDABaseEdit) {                        control = (SDABaseEdit) form.focusControl;                        control.setCursorVisible();                        oraX = control.getCursorX() + 2;                        oraY = control.getCursorY();                    }                }            }        }        //畫        private void paintRect(Graphics g) {            g.setColor(backColor);            fillRect(g, 0, 0, width, height);            g.setColor(foreColor);            drawRect(g, 0, 0, width, height);        }        //畫一鍵多字母        private void paintCase(Graphics g) {            Font ft = getFont();            int fontHeight = ft.getHeight();            if (ImeType == imLowerCase || ImeType == imUpperCase) {                if (numChars != null) {                    for (int i = 0; i < numChars.length; i++) {                        if (i == charIndex) {                            g.setColor(selectedBackColor);                            fillRect(g, 1, fontHeight * i + 1, width - 1, fontHeight - 1);                            g.setColor(selectedFontColor);                            drawString(g, String.valueOf(numChars[i]), (width - ft.charWidth(numChars[i])) / 2, fontHeight * i);                        } else {                            g.setColor(foreColor);                            drawString(g, String.valueOf(numChars[i]), (width - ft.charWidth(numChars[i])) / 2, fontHeight * i);                        }                    }                }            }        }        //畫翻頁        private void paintPages(Graphics g) {            int fontHeight = getFont().getHeight();            g.setColor(pageScrollBarColor);            fillRect(g, 0, 5 * fontHeight, width, fontHeight);            g.setColor(pageScrollBarFontColor);            drawRect(g, 0, 5 * fontHeight, width, fontHeight);            //計算頁碼            pageCount = (hanziCount % 8 > 0) ? hanziCount / 8 + 1 : hanziCount / 8;            if (pageCount == 0) {                pageNo = 0;            } else {                if (pageNo == 0) {                    pageNo = 1;                }            }            drawString(g, pageNo + "/" + pageCount, 1, 5 * getFont().getHeight());            //箭頭            if (pageNo > 1) {                fillTriangle(g, width / 2 + width / 8 - 2, 5 * fontHeight + fontHeight / 2,                        width / 2 + width / 8 + 2, 5 * fontHeight + fontHeight / 2 - 4,                        width / 2 + width / 8 + 2, 5 * fontHeight + fontHeight / 2 + 4);            }            if (pageCount > pageNo) {                fillTriangle(g, width - width / 8 + 2, 5 * fontHeight + fontHeight / 2,                        width - width / 8 - 2, 5 * fontHeight + fontHeight / 2 - 4,                        width - width / 8 - 2, 5 * fontHeight + fontHeight / 2 + 4);            }        }        //畫輸入內容(拼音輸入字母)        private void paintInputPYChars(Graphics g) {            Font ft = getFont();            int fontHeight = ft.getHeight();            String inString = inputChars.toString();            g.setColor(inputBarColor);            fillRect(g, 0, 0, width, fontHeight);            g.setColor(foreColor);            drawRect(g, 0, 0, width, fontHeight);            drawString(g, inString, 2, 0);            //畫光標            if (isInput) {                if (cursorPos > -1 && cursorPos < inString.length() + 1) {                    //System.out.println(inString.substring(0, cursorPos));                    drawLine(g, ft.stringWidth(inString.substring(0, cursorPos)) + 2, 2, ft.stringWidth(inString.substring(0, cursorPos)) + 2, fontHeight - 3);                }            }            //畫未選擇的一鍵多字母            if (numChars != null && numChars.length > 0) {                drawString(g, String.valueOf(numChars), width - ft.charsWidth(numChars, 0, numChars.length) - 1, 0);                //根據索引畫選擇的                g.setColor(selectedBackColor);                fillRect(g, width - ft.charsWidth(numChars, charIndex, numChars.length - charIndex) - 1, 1, ft.charWidth(numChars[charIndex]), fontHeight - 1);                g.setColor(selectedFontColor);                drawString(g, String.valueOf(numChars[charIndex]), width - ft.charsWidth(numChars, charIndex, numChars.length - charIndex) - 1, 0);            }        }        //切換選擇的一鍵多字母        public void nextChar() {            if (numChars != null) {                if (charIndex < numChars.length - 1) {                    charIndex++;                }            }        }        public void priorChar() {            if (numChars != null) {                if (charIndex > 0) {                    charIndex--;                }            }        }        //畫漢字選擇        private void paintHanzi(Graphics g) {            int fontHeight = getFont().getHeight();            g.setColor(backColor);            fillRect(g, 0, fontHeight, width, 4 * fontHeight);            g.setColor(foreColor);            drawRect(g, 0, fontHeight, width, 4 * fontHeight);            //中間分隔條,顯示兩列漢字            g.setColor(borderColor);            drawLine(g, width / 2, fontHeight, width / 2, 5 * fontHeight);            //查詢對應漢字            hanziChars = Spell2Chars.getSpell2Chars(inputChars);            hanziCount = 0;            if (hanziChars != null) {                //計算漢字數目                hanziCount = hanziChars.length;                if (selectedHanziIndex >= hanziCount) {                    selectedHanziIndex = 0;                }                if (pageNo == 0) {                    pageNo = 1;                }                //畫漢字                int HanziLine = 1;                int index = 1;                for (int i = (pageNo - 1) * 8; i < hanziChars.length; i++) {                    //左邊的                    if (!isInput) {                        if (i == selectedHanziIndex) {                            g.setColor(selectedBackColor);                            fillRect(g, 1, HanziLine * fontHeight + 1, width / 2 - 1, fontHeight - 1);                            g.setColor(selectedFontColor);                            drawString(g, index + ":" + hanziChars[i], 2, HanziLine * fontHeight);                        } else {                            g.setColor(foreColor);                            drawString(g, index + ":" + hanziChars[i], 2, HanziLine * fontHeight);                        }                    } else {                        g.setColor(foreColor);                        drawString(g, index + ":" + hanziChars[i], 2, HanziLine * fontHeight);                    }                    //右邊的                    if (!isInput) {                        if (i + 4 < hanziChars.length) {                            if (i + 4 == selectedHanziIndex) {                                g.setColor(selectedBackColor);                                fillRect(g, width / 2 + 1, HanziLine * fontHeight + 1, width / 2 - 1, fontHeight - 1);                                g.setColor(selectedFontColor);                                drawString(g, index + 4 + ":" + hanziChars[i + 4], 2 + width / 2, HanziLine * fontHeight);                            } else {                                g.setColor(foreColor);                                drawString(g, index + 4 + ":" + hanziChars[i + 4], 2 + width / 2, HanziLine * fontHeight);                            }                        }                    } else {                        if (i + 4 < hanziChars.length) {                            g.setColor(foreColor);                            drawString(g, index + 4 + ":" + hanziChars[i + 4], 2 + width / 2, HanziLine * fontHeight);                        }                    }                    if (i >= (pageNo - 1) * 8 + 3) {                        return;                    }                    index++;                    HanziLine++;                }            }        }    }    protected SDAInputPanel() {        super();        setVisible(false);        setLeft(0);        setTop(0);        setWidth(200);        setHeight(getFont().getHeight() * 4);        super.setDock(SDAConsts.dsBottom);        tabStop = false;        backColor = SDAConsts.clWhite;        foreColor = SDAConsts.clBlack;        charsPanel = new inputCharsPanel();        hashLowerKeyChars = new Hashtable();        hashUpperKeyChars = new Hashtable();        //拼音        inputChars = new StringBuffer();        selectedChars = new StringBuffer();        setOnPointerReleased(new PointerEvent() {            public void Event(SDABaseControl ctrl, int x, int y) {                doPointerReleased(x, y);            }        });        setOnPointerReleased(new PointerEvent() {            public void Event(SDABaseControl ctrl, int x, int y) {                doPointerReleased(x, y);            }        });        //字符內容        UpperCaseChars = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',            'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'        };        SBCUpperCaseChars = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',            'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'        };        LowerCaseChars =                new char[]{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',            'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'        };        SBCLowerCaseChars =                new char[]{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',            'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'        };        DigitChars =                new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};        SBCDigitChars =                new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};        PointChars =                new char[]{'`', ';', '.', ',', '\'', '.', '/', '~', '!', '@', '#', '%', '^', '&',            '*', '(', ')', '_', '+', '{', '}', '[', ']', ':', '"', '<', '>', '?', ' '        };        SBCPointChars =                new char[]{'`', ';', '.', ',', ''', '。', '/', '~', '!', '@', '#', '%', '^', '&',            '*', '(', ')', '_', '+', '{', '}', '[', ']', ':', '"', '<', '>', '?', ' '        };        SymbolChars =                new char[]{'\\', '%', '=', '±', '/', '-', '+', '¥', '€', '£', '$', '(', ')',            '◎', '『', '』', '○', '「', '」', '●', '《', '》', '§', '】', '【', '※'        };        SBCSymbolChars =                new char[]{'\', '%', '=', '±', '/', '-', '+', '¥', '€', '£', '$', '(', ')',            '◎', '『', '』', '○', '「', '」', '●', '《', '》', '§', '】', '【', '※'        };        //鍵盤一鍵多字母組合        setKeyChars('2', new char[]{'a', 'b', 'c'}, new char[]{'A', 'B', 'C'});        setKeyChars('3', new char[]{'d', 'e', 'f'}, new char[]{'D', 'E', 'F'});        setKeyChars('4', new char[]{'g', 'h', 'i'}, new char[]{'G', 'H', 'I'});        setKeyChars('5', new char[]{'j', 'k', 'l'}, new char[]{'J', 'K', 'L'});        setKeyChars('6', new char[]{'m', 'n', 'o'}, new char[]{'M', 'N', 'O'});        setKeyChars('7', new char[]{'p', 'q', 'r', 's'}, new char[]{'P', 'Q', 'R', 'S'});        setKeyChars('8', new char[]{'t', 'u', 'v'}, new char[]{'T', 'U', 'V'});        setKeyChars('9', new char[]{'w', 'x', 'y', 'z'}, new char[]{'W', 'X', 'Y', 'Z'});    }//字母組合    public void setKeyChars(char ch, char[] lowerArrayChar, char[] UpperArrayChar) {        hashLowerKeyChars.put(String.valueOf(ch), lowerArrayChar);        hashUpperKeyChars.put(String.valueOf(ch), UpperArrayChar);    }//獲取輸入的char對應的數組    protected char[] getLowerKeyChars(char ch) {        charIndex = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧洲997久久综合| 色婷婷综合久久久中文字幕| 亚洲在线成人精品| 欧美国产1区2区| 国产亚洲va综合人人澡精品| 日韩精品一区国产麻豆| 一区二区激情视频| 国产一区二区福利视频| 久久精品夜夜夜夜久久| 99re这里只有精品首页| 亚洲在线观看免费视频| 亚洲综合免费观看高清完整版在线 | 欧美无人高清视频在线观看| 夜夜嗨av一区二区三区中文字幕| 9l国产精品久久久久麻豆| 亚洲精品成人天堂一二三| 丝袜诱惑亚洲看片| 欧美精品久久99| 国产精品第五页| 欧美激情一区二区三区不卡| 亚洲图片激情小说| 亚洲女人的天堂| 亚洲精品久久嫩草网站秘色| 亚洲蜜臀av乱码久久精品蜜桃| 一区二区三区日韩在线观看| 国产精品乡下勾搭老头1| 久久99精品国产.久久久久| 91视视频在线观看入口直接观看www | 免费精品视频在线| 久久精品免费看| 国产成a人亚洲精| 99精品久久99久久久久| 欧美精品电影在线播放| 日本一区二区三区在线不卡| 亚洲国产aⅴ天堂久久| 另类中文字幕网| 色呦呦国产精品| 精品久久一区二区| 亚洲最新视频在线播放| 激情丁香综合五月| 欧美三级日本三级少妇99| 欧美大尺度电影在线| 中文字幕欧美激情| 麻豆精品视频在线观看视频| 成人黄动漫网站免费app| 欧美久久一区二区| 国产精品欧美一区喷水| 美女一区二区在线观看| 色婷婷狠狠综合| 国产欧美日韩在线| 美腿丝袜亚洲综合| 在线观看91精品国产入口| 国产欧美精品在线观看| 日本中文字幕一区二区视频| 91麻豆产精品久久久久久 | 国产一本一道久久香蕉| 91论坛在线播放| 中文字幕不卡在线| 国产在线麻豆精品观看| 在线播放亚洲一区| 一区二区三区久久| 成人免费电影视频| 久久免费看少妇高潮| 热久久国产精品| 欧美婷婷六月丁香综合色| 中文字幕精品一区二区三区精品 | 精品在线一区二区三区| 欧美三级中文字幕在线观看| 亚洲欧美在线aaa| 高清不卡一二三区| 国产色综合久久| 国产传媒日韩欧美成人| 精品理论电影在线观看 | 欧美一区二区三区视频在线| 亚洲一区二区精品视频| 欧美在线一二三| 亚洲精品美国一| 91久久线看在观草草青青| 国产精品久久久久国产精品日日| 国产99久久久国产精品潘金| 欧美激情综合五月色丁香小说| 国产精品一区在线观看你懂的| 日韩欧美在线影院| 蜜桃久久久久久久| 精品久久久久久久久久久院品网| 毛片一区二区三区| 国产午夜精品美女毛片视频| 成人一区二区三区| 中文字幕字幕中文在线中不卡视频| 成人av网站免费| 一级女性全黄久久生活片免费| 欧美中文字幕一区二区三区亚洲| 亚洲综合免费观看高清完整版| 欧美性生活久久| 麻豆专区一区二区三区四区五区| 欧美精品一区二区三区蜜臀| 国产一区二区在线电影| 中文字幕亚洲一区二区va在线| 在线观看国产日韩| 久久 天天综合| 亚洲视频1区2区| 久久久久久久久岛国免费| 国产黄色精品视频| 亚洲蜜臀av乱码久久精品蜜桃| 欧美疯狂做受xxxx富婆| 国产中文字幕一区| 夜色激情一区二区| 欧美草草影院在线视频| 99精品国产视频| 男人的j进女人的j一区| 国产精品久久久久久久第一福利| 欧洲av在线精品| 久久成人久久爱| 综合激情网...| 精品欧美一区二区三区精品久久| 99国产精品久久久久久久久久久| 日日夜夜精品视频天天综合网| 久久久不卡网国产精品二区 | 777午夜精品免费视频| 国内外成人在线| 亚洲成人你懂的| 成人欧美一区二区三区小说| 日韩三级电影网址| 91精品1区2区| 成人午夜电影久久影院| 日本美女视频一区二区| 亚洲男人的天堂在线aⅴ视频| 精品国产第一区二区三区观看体验| 91亚洲精品久久久蜜桃| 国产成人精品亚洲午夜麻豆| 日日夜夜免费精品视频| 一区二区三区四区在线免费观看| 欧美国产97人人爽人人喊| 欧美一级久久久久久久大片| 欧美在线你懂的| 91网站最新地址| 国产99精品国产| 韩国三级在线一区| 奇米精品一区二区三区在线观看| 一区二区三区免费| 国产精品盗摄一区二区三区| 国产日韩精品视频一区| 日韩精品一区二区在线| 777欧美精品| 欧美日韩不卡一区| 欧美色区777第一页| 色av综合在线| 日本韩国欧美三级| 色婷婷av一区二区三区软件| 91原创在线视频| 91网上在线视频| 91麻豆视频网站| 欧美自拍丝袜亚洲| 欧美亚洲国产怡红院影院| 色偷偷一区二区三区| 色婷婷久久久久swag精品| 在线观看日产精品| 欧美日韩国产免费一区二区| 欧美日韩免费观看一区二区三区| 欧美亚洲综合色| 欧美乱妇一区二区三区不卡视频| 欧美日韩免费在线视频| 欧美一区二区三区啪啪| 欧美成人激情免费网| 国产午夜精品福利| 国产精品久久久久久久裸模| 亚洲日本免费电影| 亚洲图片一区二区| 美女视频一区二区| 国产精品一二三四| av综合在线播放| 欧美日韩国产成人在线91| 欧美一区二区性放荡片| 久久久另类综合| 亚洲免费观看在线视频| 婷婷中文字幕一区三区| 另类小说图片综合网| 99久久久国产精品免费蜜臀| 色婷婷激情久久| 精品999久久久| 亚洲精品第一国产综合野| 日日夜夜精品视频天天综合网| 国产永久精品大片wwwapp | 亚洲一区二区三区视频在线| 午夜免费欧美电影| 国产成人精品免费| 欧美在线免费观看视频| 久久综合中文字幕| 亚洲欧美一区二区三区孕妇| 日韩中文欧美在线| 成人一区二区三区在线观看| 欧美日韩五月天| 日本一区二区在线不卡| 日韩av一区二区在线影视| 成a人片亚洲日本久久| 欧美一级黄色片| 亚洲美女免费视频| 国产精品白丝av| 欧美老肥妇做.爰bbww视频| 亚洲丝袜美腿综合|