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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? pdfchunk.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
                        value = " ";                    }                    PdfChunk pc = new PdfChunk(returnValue, this);                    return pc;                }                currentWidth += font.width(character);                if (character == ' ') {                    lastSpace = currentPosition + 1;                    lastSpaceWidth = currentWidth;                }                if (currentWidth > width)                    break;                // if a split-character is encountered, the splitPosition is altered                if (splitCharacter.isSplitCharacter(character))                    splitPosition = currentPosition + 1;                currentPosition++;            }        }                // if all the characters fit in the total width, null is returned (there is no overflow)        if (currentPosition == length) {            return null;        }        // otherwise, the string has to be truncated        if (splitPosition < 0) {            String returnValue = value;            value = "";            PdfChunk pc = new PdfChunk(returnValue, this);            return pc;        }        if (lastSpace > splitPosition && splitCharacter.isSplitCharacter(' '))            splitPosition = lastSpace;        if (hyphenationEvent != null && lastSpace < currentPosition) {            int wordIdx = getWord(value, lastSpace);            if (wordIdx > lastSpace) {                String pre = hyphenationEvent.getHyphenatedWordPre(value.substring(lastSpace, wordIdx), font.getFont(), font.size(), width - lastSpaceWidth);                String post = hyphenationEvent.getHyphenatedWordPost();                if (post.length() > 0) {                    String returnValue = post + value.substring(wordIdx);                    value = trim(value.substring(0, lastSpace) + pre);                    PdfChunk pc = new PdfChunk(returnValue, this);                    return pc;                }            }        }        String returnValue = value.substring(splitPosition);        value = trim(value.substring(0, splitPosition));        PdfChunk pc = new PdfChunk(returnValue, this);        return pc;    }    /** * Truncates this <CODE>PdfChunk</CODE> if it's too long for the given width. * <P> * Returns <VAR>null</VAR> if the <CODE>PdfChunk</CODE> wasn't truncated. * * @param		width		a given width * @return		the <CODE>PdfChunk</CODE> that doesn't fit into the width. */        PdfChunk truncate(float width) {        if (image != null) {            if (image.scaledWidth() > width) {                PdfChunk pc = new PdfChunk("", this);                value = "";                attributes.remove(Chunk.IMAGE);                image = null;                font = PdfFont.getDefaultFont();                return pc;            }            else                return null;        }                int currentPosition = 0;        float currentWidth = 0;                // it's no use trying to split if there isn't even enough place for a space        if (width < font.width()) {            String returnValue = value.substring(1);            value = value.substring(0, 1);            PdfChunk pc = new PdfChunk(returnValue, this);            return pc;        }                // loop over all the characters of a string        // or until the totalWidth is reached        int length = value.length();        char character;        while (currentPosition < length) {            // the width of every character is added to the currentWidth            character = value.charAt(currentPosition);            currentWidth += font.width(character);            if (currentWidth > width)                break;            currentPosition++;        }                // if all the characters fit in the total width, null is returned (there is no overflow)        if (currentPosition == length) {            return null;        }                // otherwise, the string has to be truncated        //currentPosition -= 2;        // we have to chop off minimum 1 character from the chunk        if (currentPosition == 0) {            currentPosition = 1;        }        String returnValue = value.substring(currentPosition);        value = value.substring(0, currentPosition);        PdfChunk pc = new PdfChunk(returnValue, this);        return pc;    }        // methods to retrieve the membervariables    /** * Returns the font of this <CODE>Chunk</CODE>. * * @return	a <CODE>PdfFont</CODE> */        PdfFont font() {        return font;    }    /** * Returns the color of this <CODE>Chunk</CODE>. * * @return	a <CODE>Color</CODE> */        Color color() {        return (Color)noStroke.get(Chunk.COLOR);    }    /** * Returns the width of this <CODE>PdfChunk</CODE>. * * @return	a width */        float width() {        if (image != null)            return image.scaledWidth();        return font.getFont().getWidthPoint(value, font.size());    }    /** * Checks if the <CODE>PdfChunk</CODE> split was caused by a newline. * @return <CODE>true</CODE> if the <CODE>PdfChunk</CODE> split was caused by a newline. */        public boolean isNewlineSplit()    {        return newlineSplit;    }    /** * Gets the width of the <CODE>PdfChunk</CODE> taking into account the * extra character and word spacing. * @param charSpacing the extra character spacing * @param wordSpacing the extra word spacing * @return the calculated width */        public float getWidthCorrected(float charSpacing, float wordSpacing)    {        if (image != null) {            return image.scaledWidth() + charSpacing;        }        int numberOfSpaces = 0;        int idx = -1;        while ((idx = value.indexOf(' ', idx + 1)) >= 0)            ++numberOfSpaces;        return font.getFont().getWidthPoint(value, font.size()) + value.length() * charSpacing + numberOfSpaces * wordSpacing;    }    /** * Trims the last space. * @return the width of the space trimmed, otherwise 0 */        public float trimLastSpace()    {        BaseFont ft = font.getFont();        if (ft.getFontType() == BaseFont.FONT_TYPE_CJK && ft.getUnicodeEquivalent(' ') != ' ') {            if (value.length() > 1 && value.endsWith("\u0001")) {                value = value.substring(0, value.length() - 1);                return font.width('\u0001');            }        }        else {            if (value.length() > 1 && value.endsWith(" ")) {                value = value.substring(0, value.length() - 1);                return font.width(' ');            }        }        return 0;    }    /** * Gets an attribute. The search is made in <CODE>attributes</CODE> * and <CODE>noStroke</CODE>. * @param name the attribute key * @return the attribute value or null if not found */        Object getAttribute(String name)    {        if (attributes.containsKey(name))            return attributes.get(name);        return noStroke.get(name);    }    /** *Checks if the attribute exists. * @param name the attribute key * @return <CODE>true</CODE> if the attribute exists */        boolean isAttribute(String name)    {        if (attributes.containsKey(name))            return true;        return noStroke.containsKey(name);    }    /** * Checks if this <CODE>PdfChunk</CODE> needs some special metrics handling. * @return <CODE>true</CODE> if this <CODE>PdfChunk</CODE> needs some special metrics handling. */        boolean isStroked()    {        return (attributes.size() > 0);    }    /** * Checks if there is an image in the <CODE>PdfChunk</CODE>. * @return <CODE>true</CODE> if an image is present */        boolean isImage()    {        return image != null;    }    /** * Gets the image in the <CODE>PdfChunk</CODE>. * @return the image or <CODE>null</CODE> */        Image getImage()    {        return image;    }    /** * Sets the image offset in the x direction * @param  offsetX the image offset in the x direction */        void setImageOffsetX(float offsetX)    {        this.offsetX = offsetX;    }    /** * Gets the image offset in the x direction * @return the image offset in the x direction */        float getImageOffsetX()    {        return offsetX;    }    /** * Sets the image offset in the y direction * @param  offsetY the image offset in the y direction */        void setImageOffsetY(float offsetY)    {        this.offsetY = offsetY;    }    /** * Gets the image offset in the y direction * @return Gets the image offset in the y direction */        float getImageOffsetY()    {        return offsetY;    }    /** * sets the value. */        void setValue(String value)    {        this.value = value;    }    public String toString() {        return value;    }    /**     * Tells you if this string is in Chinese, Japanese, Korean or Identity-H.     */        boolean isSpecialEncoding() {        return encoding.equals(CJKFont.CJK_ENCODING) || encoding.equals(BaseFont.IDENTITY_H);    }        /**     * Gets the encoding of this string.     *     * @return		a <CODE>String</CODE>     */        String getEncoding() {        return encoding;    }    int length() {        return value.length();    }/** * Checks if a character can be used to split a <CODE>PdfString</CODE>. * <P> * for the moment every character less than or equal to SPACE and the character '-' are 'splitCharacters'. * * @param	c		the character that has to be checked * @return	<CODE>true</CODE> if the character can be used to split a string, <CODE>false</CODE> otherwise */    public boolean isSplitCharacter(char c)    {        if (c <= ' ' || c == '-') {            return true;        }        if (c < 0x2e80)            return false;        return ((c >= 0x2e80 && c < 0xd7a0)        || (c >= 0xf900 && c < 0xfb00)        || (c >= 0xfe30 && c < 0xfe50)        || (c >= 0xff61 && c < 0xffa0));    }        boolean isExtSplitCharacter(char c) {        return splitCharacter.isSplitCharacter(c);    }    /** * Removes all the <VAR>' '</VAR> and <VAR>'-'</VAR>-characters on the right of a <CODE>String</CODE>. * <P> * @param	string		the <CODE>String<CODE> that has to be trimmed. * @return	the trimmed <CODE>String</CODE> */        String trim(String string) {        BaseFont ft = font.getFont();        if (ft.getFontType() == BaseFont.FONT_TYPE_CJK && ft.getUnicodeEquivalent(' ') != ' ') {            while (string.endsWith("\u0001")) {                string = string.substring(0, string.length() - 1);            }        }        else {            while (string.endsWith(" ") || string.endsWith("\t")) {                string = string.substring(0, string.length() - 1);            }        }        return string;    }    public boolean changeLeading() {        return changeLeading;    }        float getCharWidth(char c) {        if (noPrint(c))            return 0;        return font.width(c);    }        public static boolean noPrint(char c) {        return ((c >= 0x200b && c <= 0x200f) || (c >= 0x202a && c <= 0x202e));    }    }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久草在线在线精品观看| 成av人片一区二区| 在线观看国产一区二区| 精品一区二区三区在线播放视频| 亚洲综合色自拍一区| 亚洲码国产岛国毛片在线| 国产精品沙发午睡系列990531| 国产欧美精品区一区二区三区| 精品国产乱码久久久久久老虎 | 欧美性色aⅴ视频一区日韩精品| 99久久99久久久精品齐齐| av不卡一区二区三区| 色综合天天做天天爱| 在线中文字幕一区二区| 欧美日韩一区二区三区免费看| 欧美性大战久久久久久久蜜臀| 欧美日韩视频不卡| 精品久久久久久综合日本欧美| 精品毛片乱码1区2区3区| 久久九九全国免费| 亚洲欧美一区二区久久| 亚洲国产综合在线| 韩国成人福利片在线播放| 国产99久久久久久免费看农村| 成人黄色在线看| 在线免费亚洲电影| 精品日韩99亚洲| 国产精品久久久一本精品| 亚洲一区精品在线| 久久成人免费网| 99re热这里只有精品免费视频| 欧美性猛交xxxx黑人交 | 久久91精品久久久久久秒播| 国产在线乱码一区二区三区| 99视频一区二区三区| 欧美日韩aaaaa| 国产丝袜在线精品| 亚洲成人av电影在线| 国产一区二区三区四区五区美女 | 奇米777欧美一区二区| 国产激情91久久精品导航| 色综合天天性综合| 欧美一区2区视频在线观看| 欧美国产日产图区| 奇米精品一区二区三区四区 | 紧缚捆绑精品一区二区| 91亚洲精品乱码久久久久久蜜桃| 在线播放中文一区| 亚洲欧洲成人av每日更新| 久久福利资源站| 欧美人与性动xxxx| 亚洲激情综合网| 国产成人99久久亚洲综合精品| 欧美日韩国产区一| 伊人夜夜躁av伊人久久| 国产成人精品一区二区三区网站观看| 欧美精选一区二区| 亚洲最大成人网4388xx| 成人app下载| 国产欧美一区在线| 国产精品一区免费视频| 精品国产电影一区二区| 日韩高清在线观看| 欧美日韩在线播放一区| 亚洲精品高清在线| 成人高清视频免费观看| 久久精品视频一区二区三区| 午夜婷婷国产麻豆精品| 99久久99精品久久久久久| 国产精品2024| 国产欧美精品一区| 日本在线不卡一区| 欧美三级乱人伦电影| 国产精品的网站| 国产精品911| 久久夜色精品国产噜噜av| 亚洲视频在线一区| 美女在线视频一区| 欧美日韩国产综合视频在线观看| 中文字幕av一区二区三区免费看 | 日韩欧美一区二区免费| 亚洲国产cao| 欧美亚一区二区| 亚洲欧美日韩精品久久久久| 国产福利91精品一区| www日韩大片| 激情欧美一区二区| 久久综合九色综合97婷婷| 精品一区二区三区免费毛片爱| 欧美午夜精品理论片a级按摩| 国产日韩成人精品| av一本久道久久综合久久鬼色| 久久亚洲免费视频| 国产精品白丝av| 中文字幕免费一区| 国产精品一二三区| 亚洲伦理在线免费看| 一本一本久久a久久精品综合麻豆| 国产精品国产三级国产普通话99| 国产成人免费视频| 国产精品美女视频| 91国偷自产一区二区开放时间 | 日韩**一区毛片| 欧美大度的电影原声| 美国十次了思思久久精品导航| 欧美mv日韩mv国产网站app| 理论电影国产精品| 久久久久亚洲综合| 99久久99久久综合| 日本视频在线一区| 亚洲精品在线观看视频| www.成人网.com| 亚洲va国产va欧美va观看| 欧美一区二区三区日韩| 国产又粗又猛又爽又黄91精品| 中文字幕精品三区| 欧美伊人久久大香线蕉综合69| 亚洲一区二区精品视频| 宅男噜噜噜66一区二区66| 国产精品99精品久久免费| 国产精品天美传媒| 欧美伦理电影网| 高清不卡一区二区在线| 亚洲福利视频一区| 欧美成人猛片aaaaaaa| 国产91精品在线观看| 亚洲高清一区二区三区| 久久久精品黄色| 日韩精品一区在线| 波多野结衣一区二区三区| 日韩高清一区在线| 日韩理论在线观看| 日韩精品一区二区三区在线播放| 高清不卡一二三区| 日韩av在线发布| 专区另类欧美日韩| 91精品国产综合久久久久| 色狠狠色狠狠综合| 国产激情视频一区二区在线观看| 亚洲资源在线观看| 国产精品乱码妇女bbbb| 欧美麻豆精品久久久久久| 成人sese在线| 狠狠色狠狠色综合系列| 麻豆成人久久精品二区三区红| 亚洲色图制服诱惑 | 夜夜操天天操亚洲| 国产欧美一区在线| 91精品国产一区二区三区蜜臀| 99久精品国产| 成人美女视频在线观看18| 免费人成网站在线观看欧美高清| 亚洲影院理伦片| 555www色欧美视频| 欧美最猛性xxxxx直播| 福利一区二区在线观看| 国产乱子伦视频一区二区三区| 秋霞午夜av一区二区三区| 午夜成人免费电影| 久久机这里只有精品| 午夜欧美2019年伦理| 亚洲成人综合视频| 亚洲一区在线视频| 一区二区三区在线免费播放| 国产精品天干天干在线综合| 亚洲视频狠狠干| 亚洲欧美日韩在线| 亚洲美腿欧美偷拍| 一区二区国产视频| 亚洲一二三区不卡| 一区二区三区欧美日韩| 日韩高清在线电影| 九色综合狠狠综合久久| 精品制服美女丁香| 国产伦精品一区二区三区在线观看| 青草国产精品久久久久久| 午夜精品久久久久久久| 国产一区二区三区久久久 | 亚洲欧美日韩电影| 一区二区久久久久久| 午夜精品一区二区三区三上悠亚| 亚洲第一会所有码转帖| 毛片不卡一区二区| 国产一区二区精品在线观看| 99re热这里只有精品免费视频| 在线免费观看日韩欧美| 色婷婷综合五月| 3d动漫精品啪啪一区二区竹菊| 日韩午夜三级在线| 久久无码av三级| 亚洲超碰精品一区二区| 蜜臀av在线播放一区二区三区| 久久成人综合网| 99精品黄色片免费大全| 欧美日韩高清影院| 久久综合九色综合97_久久久| 欧美激情一二三区| 亚洲大片精品永久免费| 97精品国产97久久久久久久久久久久| 在线观看日韩av先锋影音电影院|