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

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

?? columntext.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    public void setSimpleColumn(float llx, float lly, float urx, float ury, float leading, int alignment) {        float leftLine[] = new float[4];        float rightLine[] = new float[4];        leftLine[0] = Math.min(llx, urx);        leftLine[1] = Math.max(lly, ury);        leftLine[2] = leftLine[0];        leftLine[3] = Math.min(lly, ury);        rightLine[0] = Math.max(llx, urx);        rightLine[1] = leftLine[1];        rightLine[2] = rightLine[0];        rightLine[3] = leftLine[3];        setColumns(leftLine, rightLine);        setLeading(leading);        this.alignment = alignment;        yLine = leftLine[1];        rectangularWidth = Math.abs(llx - urx);    }        /**     * Sets the leading to fixed     * @param leading the leading     */    public void setLeading(float leading) {        fixedLeading = leading;        multipliedLeading = 0;    }        /**     * Sets the leading fixed and variable. The resultant leading will be     * fixedLeading+multipliedLeading*maxFontSize where maxFontSize is the     * size of the bigest font in the line.     * @param fixedLeading the fixed leading     * @param multipliedLeading the variable leading     */    public void setLeading(float fixedLeading, float multipliedLeading) {        this.fixedLeading = fixedLeading;        this.multipliedLeading = multipliedLeading;    }        /**     * Gets the fixed leading     * @return the leading     */    public float getLeading() {        return fixedLeading;    }        /**     * Gets the variable leading     * @return the leading     */    public float getMultipliedLeading() {        return multipliedLeading;    }        /**     * Sets the yLine. The line will be written to yLine-leading.     * @param yLine the yLine     */    public void setYLine(float yLine) {        this.yLine = yLine;    }        /**     * Gets the yLine.     * @return the yLine     */    public float getYLine() {        return yLine;    }        /**     * Sets the alignment.     * @param alignment the alignment     */    public void setAlignment(int alignment) {        this.alignment = alignment;    }        /**     * Gets the alignment.     * @return the alignment     */    public int getAlignment() {        return alignment;    }        /**     * Sets the first paragraph line indent.     * @param indent the indent     */    public void setIndent(float indent) {        this.indent = indent;        lastWasNewline = true;    }        /**     * Gets the first paragraph line indent.     * @return the indent     */    public float getIndent() {        return indent;    }        /**     * Sets the following paragraph lines indent.     * @param indent the indent     */    public void setFollowingIndent(float indent) {        this.followingIndent = indent;        lastWasNewline = true;    }        /**     * Gets the following paragraph lines indent.     * @return the indent     */    public float getFollowingIndent() {        return followingIndent;    }        /**     * Sets the right paragraph lines indent.     * @param indent the indent     */    public void setRightIndent(float indent) {        this.rightIndent = indent;        lastWasNewline = true;    }        /**     * Gets the right paragraph lines indent.     * @return the indent     */    public float getRightIndent() {        return rightIndent;    }        /**     * Outputs the lines to the document. It is equivalent to <CODE>go(false)</CODE>.     * @return returns the result of the operation. It can be <CODE>NO_MORE_TEXT</CODE>     * and/or <CODE>NO_MORE_COLUMN</CODE>     * @throws DocumentException on error     */    public int go() throws DocumentException {        return go(false);    }        /**     * Outputs the lines to the document. The output can be simulated.     * @param simulate <CODE>true</CODE> to simulate the writting to the document     * @return returns the result of the operation. It can be <CODE>NO_MORE_TEXT</CODE>     * and/or <CODE>NO_MORE_COLUMN</CODE>     * @throws DocumentException on error     */    public int go(boolean simulate) throws DocumentException {        boolean dirty = false;        float ratio = spaceCharRatio;        Object currentValues[] = new Object[2];        PdfFont currentFont = null;        Float lastBaseFactor = new Float(0);        currentValues[1] = lastBaseFactor;        PdfDocument pdf = null;        PdfContentByte graphics = null;        PdfContentByte text = null;        int localRunDirection = PdfWriter.RUN_DIRECTION_NO_BIDI;        if (runDirection != PdfWriter.RUN_DIRECTION_DEFAULT)            localRunDirection = runDirection;        if (canvas != null) {            graphics = canvas;            pdf = canvas.getPdfDocument();            text = canvas.getDuplicate();        }        else if (!simulate)            throw new NullPointerException("ColumnText.go with simulate==false and text==null.");        if (!simulate) {            if (ratio == GLOBAL_SPACE_CHAR_RATIO)                ratio = text.getPdfWriter().getSpaceCharRatio();            else if (ratio < 0.001f)                ratio = 0.001f;        }        float firstIndent = 0;                int status = 0;        if (rectangularWidth > 0) {            for (;;) {                firstIndent = (lastWasNewline ? indent : followingIndent);                if (rectangularWidth <= firstIndent + rightIndent) {                    status = NO_MORE_COLUMN;                    if (bidiLine.isEmpty())                        status |= NO_MORE_TEXT;                    break;                }                if (bidiLine.isEmpty()) {                    status = NO_MORE_TEXT;                    break;                }                float yTemp = yLine;                PdfLine line = bidiLine.processLine(rectangularWidth - firstIndent - rightIndent, alignment, localRunDirection);                if (line == null) {                    status = NO_MORE_TEXT;                    break;                }                float maxSize = line.getMaxSizeSimple();                currentLeading = fixedLeading + maxSize * multipliedLeading;                float xx[] = findLimitsTwoLines();                if (xx == null) {                    status = NO_MORE_COLUMN;                    yLine = yTemp;                    bidiLine.restore();                    break;                }                float x1 = Math.max(xx[0], xx[2]);                if (!simulate && !dirty) {                    text.beginText();                    dirty = true;                }                if (!simulate) {                    currentValues[0] = currentFont;                    text.setTextMatrix(x1 + (line.isRTL() ? rightIndent : firstIndent) + line.indentLeft(), yLine);                    pdf.writeLineToContent(line, text, graphics, currentValues, ratio);                    currentFont = (PdfFont)currentValues[0];                }                lastWasNewline = line.isNewlineSplit();                yLine -= line.isNewlineSplit() ? extraParagraphSpace : 0;            }        }        else {            currentLeading = fixedLeading;            for (;;) {                firstIndent = (lastWasNewline ? indent : followingIndent);                float yTemp = yLine;                float xx[] = findLimitsTwoLines();                if (xx == null) {                    status = NO_MORE_COLUMN;                    if (bidiLine.isEmpty())                        status |= NO_MORE_TEXT;                    yLine = yTemp;                    break;                }                if (bidiLine.isEmpty()) {                    status = NO_MORE_TEXT;                    yLine = yTemp;                    break;                }                float x1 = Math.max(xx[0], xx[2]);                float x2 = Math.min(xx[1], xx[3]);                if (x2 - x1 <= firstIndent + rightIndent)                    continue;                if (!simulate && !dirty) {                    text.beginText();                    dirty = true;                }                PdfLine line = bidiLine.processLine(x2 - x1 - firstIndent - rightIndent, alignment, localRunDirection);                if (line == null) {                    status = NO_MORE_TEXT;                    yLine = yTemp;                    break;                }                if (!simulate) {                    currentValues[0] = currentFont;                    text.setTextMatrix(x1 + (line.isRTL() ? rightIndent : firstIndent) + line.indentLeft(), yLine);                    pdf.writeLineToContent(line, text, graphics, currentValues, ratio);                    currentFont = (PdfFont)currentValues[0];                }                lastWasNewline = line.isNewlineSplit();                yLine -= line.isNewlineSplit() ? extraParagraphSpace : 0;            }        }        if (dirty) {            text.endText();            canvas.add(text);        }        return status;    }        /**     * Sets the extra space between paragraphs.     * @return the extra space between paragraphs     */    public float getExtraParagraphSpace() {        return extraParagraphSpace;    }        /**     * Sets the extra space between paragraphs.     * @param extraParagraphSpace the extra space between paragraphs     */    public void setExtraParagraphSpace(float extraParagraphSpace) {        this.extraParagraphSpace = extraParagraphSpace;    }        /**     * Clears the chunk array. A call to <CODE>go()</CODE> will always return     * NO_MORE_TEXT.     */    public void clearChunks() {        bidiLine.clearChunks();    }        /** Gets the space/character extra spacing ratio for     * fully justified text.     * @return the space/character extra spacing ratio     */        public float getSpaceCharRatio() {        return spaceCharRatio;    }        /** Sets the ratio between the extra word spacing and the extra character spacing     * when the text is fully justified.     * Extra word spacing will grow <CODE>spaceCharRatio</CODE> times more than extra character spacing.     * If the ratio is <CODE>PdfWriter.NO_SPACE_CHAR_RATIO</CODE> then the extra character spacing     * will be zero.     * @param spaceCharRatio the ratio between the extra word spacing and the extra character spacing     */    public void setSpaceCharRatio(float spaceCharRatio) {        this.spaceCharRatio = spaceCharRatio;    }    /** Sets the run direction.      * @param runDirection the run direction     */        public void setRunDirection(int runDirection) {        if (runDirection < PdfWriter.RUN_DIRECTION_DEFAULT || runDirection > PdfWriter.RUN_DIRECTION_RTL)            throw new RuntimeException("Invalid run direction: " + runDirection);        this.runDirection = runDirection;    }        /** Gets the run direction.     * @return the run direction     */        public int getRunDirection() {        return runDirection;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品这里都是精品| 亚洲va欧美va国产va天堂影院| 亚洲精品国产一区二区三区四区在线| 污片在线观看一区二区| 91麻豆福利精品推荐| 亚洲天堂福利av| 91片在线免费观看| 91精品综合久久久久久| 成人高清免费观看| 精品国产免费视频| 欧美96一区二区免费视频| 欧美在线观看视频一区二区| 亚洲一区二区三区在线看 | 欧美一区三区二区| 日本不卡中文字幕| www久久久久| av在线一区二区三区| 亚洲人成人一区二区在线观看 | 图片区小说区区亚洲影院| 69久久99精品久久久久婷婷| 天涯成人国产亚洲精品一区av| 欧美日韩国产高清一区二区三区| 日本不卡在线视频| 精品国产乱子伦一区| 国产精一区二区三区| 亚洲欧洲日产国产综合网| 91福利视频网站| 国产精品羞羞答答xxdd| 亚洲欧美日本在线| 日韩女优制服丝袜电影| 国产成人超碰人人澡人人澡| 一区二区三区精品在线| 久久久蜜桃精品| 欧美性猛交一区二区三区精品| 青青草原综合久久大伊人精品 | 欧美一区二区在线播放| 波多野结衣91| 国产一区三区三区| 亚洲福利视频导航| 亚洲人一二三区| 欧美精品一区二区精品网| 91久久久免费一区二区| 寂寞少妇一区二区三区| 亚洲成在线观看| 亚洲在线成人精品| 亚洲视频你懂的| 国产精品护士白丝一区av| 精品国产百合女同互慰| 在线播放中文一区| 欧美日韩国产美女| 欧美日韩一区二区三区四区五区| 色一区在线观看| 91在线观看一区二区| av网站免费线看精品| 亚洲一区二区三区爽爽爽爽爽| 国产精品麻豆久久久| 国产精品无人区| 亚洲日本一区二区| 亚洲综合激情另类小说区| 国产在线一区观看| 国产欧美中文在线| 国产精品白丝在线| 一区二区三区日韩欧美精品| 一区二区视频在线| 亚洲一区二区欧美激情| 水蜜桃久久夜色精品一区的特点| 亚洲成人一区在线| 久久精品国产77777蜜臀| 麻豆国产91在线播放| 久久se精品一区精品二区| 国产精品正在播放| 91污在线观看| 91精品国产综合久久国产大片 | 免费高清成人在线| 国产精品一二三区在线| 91在线观看免费视频| 欧美成人午夜电影| 亚洲色图欧美激情| 国模娜娜一区二区三区| 色婷婷久久一区二区三区麻豆| 欧美日韩五月天| 中文字幕制服丝袜成人av | 成人综合婷婷国产精品久久| 色老汉av一区二区三区| 久久女同性恋中文字幕| 亚洲一区免费在线观看| 国产一区二区网址| 4438x成人网最大色成网站| 国产日韩欧美综合一区| 日韩一区精品字幕| 日本精品一区二区三区高清| 亚洲国产成人一区二区三区| 三级久久三级久久久| 欧美综合天天夜夜久久| 中文字幕日韩一区二区| 国产精品888| 久久久一区二区三区捆绑**| 老司机午夜精品| 7777精品伊人久久久大香线蕉的| 亚洲日本在线天堂| bt欧美亚洲午夜电影天堂| 久久综合九色综合97婷婷女人 | 欧美一级在线免费| 午夜久久电影网| 日韩一区二区免费在线观看| 日韩专区欧美专区| 欧美男人的天堂一二区| 亚洲成人在线网站| 日韩一级二级三级| 久久se精品一区二区| 久久久久青草大香线综合精品| 麻豆国产精品一区二区三区| 国产午夜三级一区二区三| 日韩美女在线视频 | 国产精品免费网站在线观看| 国产成人免费9x9x人网站视频| 国产精品乱码一区二区三区软件| 不卡的av网站| 天堂成人国产精品一区| 欧美成人国产一区二区| 大尺度一区二区| 日韩专区欧美专区| 久久久久免费观看| 欧美综合色免费| 国产在线播放一区| 一区二区成人在线视频| 欧美va日韩va| 在线一区二区三区| 紧缚奴在线一区二区三区| 亚洲精品乱码久久久久久日本蜜臀| 91精品国产色综合久久不卡蜜臀| 国产成a人亚洲| 天堂成人免费av电影一区| 国产精品色呦呦| 日韩一区二区免费电影| 色一区在线观看| 国产91综合网| 精品一区二区三区日韩| 一区二区三区在线播放| 国产欧美精品一区二区色综合朱莉 | 久久精品国产免费| 亚洲黄色在线视频| ㊣最新国产の精品bt伙计久久| 日韩欧美自拍偷拍| 91.成人天堂一区| 欧美系列一区二区| 欧美在线免费观看视频| av电影天堂一区二区在线| 国产成人在线看| 激情综合色综合久久| 免费成人小视频| 欧美96一区二区免费视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲一二三级电影| 五月激情六月综合| 蜜臀av性久久久久蜜臀aⅴ四虎 | 色嗨嗨av一区二区三区| 99久久国产免费看| 91在线视频18| 欧美性猛片xxxx免费看久爱| 欧美日韩高清一区二区三区| 欧美精品tushy高清| 欧美少妇性性性| 欧美日韩另类一区| 日韩欧美在线不卡| 2014亚洲片线观看视频免费| 国产精品欧美一区二区三区| 亚洲男人的天堂av| 午夜精品免费在线观看| 久久99国内精品| 91同城在线观看| 欧美成va人片在线观看| 国产三级一区二区三区| 一区二区三区欧美日韩| 美腿丝袜亚洲一区| 午夜视频在线观看一区二区| 亚洲第一在线综合网站| 国产成人精品亚洲日本在线桃色| 色94色欧美sute亚洲线路一久| 91麻豆精品国产综合久久久久久| 2021中文字幕一区亚洲| 亚洲最新在线观看| 国产一区三区三区| 欧美精品自拍偷拍| 亚洲欧美激情小说另类| 国产成人在线视频播放| 制服丝袜成人动漫| 亚洲男人的天堂在线观看| 国产一区二区三区四区在线观看| 欧美精品 日韩| 亚洲视频一区二区在线| 国产91精品在线观看| 精品久久国产字幕高潮| 亚洲第一主播视频| 欧美性色aⅴ视频一区日韩精品| 26uuu色噜噜精品一区| 奇米影视一区二区三区| 日韩一区二区不卡| 麻豆精品在线看| 337p日本欧洲亚洲大胆色噜噜|