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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pdfcell.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Id: PdfCell.java,v 1.55 2002/11/19 08:33:35 blowagie Exp $ * $Name:  $ * * Copyright 1999, 2000, 2001, 2002 Bruno Lowagie * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the License. * * The Original Code is 'iText, a free JAVA-PDF library'. * * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. * All Rights Reserved. * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. * * Contributor(s): all the names of the contributors are added in the source code * where applicable. * * Alternatively, the contents of this file may be used under the terms of the * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the * provisions of LGPL are applicable instead of those above.  If you wish to * allow use of your version of this file only under the terms of the LGPL * License and not to allow others to use your version of this file under * the MPL, indicate your decision by deleting the provisions above and * replace them with the notice and other provisions required by the LGPL. * If you do not delete the provisions above, a recipient may use your version * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. * * This library is free software; you can redistribute it and/or modify it * under the terms of the MPL as stated above or under the terms of the GNU * Library General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more * details. * * If you didn't download this code from the following link, you should check if * you aren't using an obsolete version: * http://www.lowagie.com/iText/ */package com.lowagie.text.pdf;import java.util.ArrayList;import java.util.Iterator;import com.lowagie.text.*;/** * A <CODE>PdfCell</CODE> is the PDF translation of a <CODE>Cell</CODE>. * <P> * A <CODE>PdfCell</CODE> is an <CODE>ArrayList</CODE> of <CODE>PdfLine</CODE>s. * * @see		com.lowagie.text.Rectangle * @see		com.lowagie.text.Cell * @see		PdfLine * @see		PdfTable */public class PdfCell extends Rectangle {        // membervariables        /** These are the PdfLines in the Cell. */    private ArrayList lines;        /** These are the PdfLines in the Cell. */    private PdfLine line;        /** These are the Images in the Cell. */    private ArrayList images;        /** This is the leading of the lines. */    private float leading;        /** This is the number of the row the cell is in. */    private int rownumber;        /** This is the rowspan of the cell. */    private int rowspan;        /** This is the cellspacing of the cell. */    private float cellspacing;        /** This is the cellpadding of the cell. */    private float cellpadding;        /** Indicates if this cell belongs to the header of a <CODE>PdfTable</CODE> */    private boolean header = false;            // constructors        /**     * Constructs a <CODE>PdfCell</CODE>-object.     *     * @param	cell		the original <CODE>Cell</CODE>     * @param	rownumber	the number of the <CODE>Row</CODE> the <CODE>Cell</CODE> was in.     * @param	left		the left border of the <CODE>PdfCell</CODE>     * @param	right		the right border of the <CODE>PdfCell</CODE>     * @param	top			the top border of the <CODE>PdfCell</CODE>     * @param	cellspacing	the cellspacing of the <CODE>Table</CODE>     * @param	cellpadding	the cellpadding	of the <CODE>Table</CODE>     */        public PdfCell(Cell cell, int rownumber, float left, float right, float top, float cellspacing, float cellpadding) {        // constructs a Rectangle (the bottomvalue will be changed afterwards)        super(left, top, right, top);        // copying the attributes from class Cell        setBorder(cell.border());        setBorderWidth(cell.borderWidth());        setBorderColor(cell.borderColor());        setBackgroundColor(cell.backgroundColor());        setGrayFill(cell.grayFill());                // initialisation of some parameters        PdfChunk chunk;        Element element;        PdfChunk overflow;        lines = new ArrayList();        images = new ArrayList();        leading = cell.leading();        int alignment = cell.horizontalAlignment();        left += cellspacing + cellpadding;        right -= cellspacing + cellpadding;                float height = leading + cellpadding;        float rowSpan = (float)cell.rowspan();                switch(cell.verticalAlignment()) {            case Element.ALIGN_BOTTOM:                height *= rowSpan;                break;            case Element.ALIGN_MIDDLE:                height *= (rowSpan / 1.5);                break;            default:                height -= cellpadding * 0.4f;        }                line = new PdfLine(left, right, alignment, height);                ArrayList allActions;        int aCounter;        // we loop over all the elements of the cell        for (Iterator i = cell.getElements(); i.hasNext(); ) {            element = (Element) i.next();            switch(element.type()) {                case Element.JPEG:                case Element.IMGRAW:                case Element.IMGTEMPLATE:                case Element.GIF:                case Element.PNG:                    height = addImage((Image)element, left, right, height, alignment);                    break;                    // if the element is a list                case Element.LIST:                    if (line.size() > 0) {                        line.resetAlignment();                        lines.add(line);                    }                    allActions = new ArrayList();                    processActions(element, null, allActions);                    aCounter = 0;                    ListItem item;                    // we loop over all the listitems                    for (Iterator items = ((List)element).getItems().iterator(); items.hasNext(); ) {                        item = (ListItem) items.next();                        line = new PdfLine(left + item.indentationLeft(), right, alignment, leading);                        line.setListItem(item);                        for (Iterator j = item.getChunks().iterator(); j.hasNext(); ) {                            chunk = new PdfChunk((Chunk) j.next(), (PdfAction)(allActions.get(aCounter++)));                            while ((overflow = line.add(chunk)) != null) {                                lines.add(line);                                line = new PdfLine(left + item.indentationLeft(), right, alignment, leading);                                chunk = overflow;                            }                            line.resetAlignment();                            lines.add(line);                            line = new PdfLine(left + item.indentationLeft(), right, alignment, leading);                        }                    }                    line = new PdfLine(left, right, alignment, leading);                    break;                    // if the element is something else                default:                    allActions = new ArrayList();                    processActions(element, null, allActions);                    aCounter = 0;                    // we loop over the chunks                    for (Iterator j = element.getChunks().iterator(); j.hasNext(); ) {                        Chunk c = (Chunk) j.next();                        chunk = new PdfChunk(c, (PdfAction)(allActions.get(aCounter++)));                        while ((overflow = line.add(chunk)) != null) {                            lines.add(line);                            line = new PdfLine(left, right, alignment, leading);                            chunk = overflow;                        }                    }                    // if the element is a paragraph, section or chapter, we reset the alignment and add the line                    switch (element.type()) {                        case Element.PARAGRAPH:                        case Element.SECTION:                        case Element.CHAPTER:                            line.resetAlignment();                            lines.add(line);                            line = new PdfLine(left, right, alignment, leading);                    }            }        }        if (line.size() > 0) {            lines.add(line);        }        // we set some additional parameters        setBottom(top - leading * (lines.size() - 1) - cellpadding - height - 2 * cellspacing);        this.cellpadding = cellpadding;        this.cellspacing = cellspacing;                rowspan = cell.rowspan();        this.rownumber = rownumber;    }        // overriding of the Rectangle methods        /**     * Returns the lower left x-coordinaat.     *     * @return		the lower left x-coordinaat     */        public float left() {        return super.left(cellspacing);    }        /**     * Returns the upper right x-coordinate.     *     * @return		the upper right x-coordinate     */        public float right() {        return super.right(cellspacing);    }        /**     * Returns the upper right y-coordinate.     *     * @return		the upper right y-coordinate     */        public float top() {        return super.top(cellspacing);    }        /**     * Returns the lower left y-coordinate.     *     * @return		the lower left y-coordinate     */        public float bottom() {        return super.bottom(cellspacing);    }        // methods        /**     * Adds an image to this Cell.     *     * @param   image   the image to add     * @param   left    the left border     * @param   right   the right border     */        private float addImage(Image imageOrg, float left, float right, float height, int alignment) {        Image image = Image.getInstance(imageOrg);        if (image.scaledWidth() > right - left) {            image.scaleToFit(right - left, Float.MAX_VALUE);        }        if (line.size() != 0) lines.add(line);        line = new PdfLine(left, right, alignment, image.scaledHeight() + 0.4f * leading);        lines.add(line);        line = new PdfLine(left, right, alignment, leading);        switch (image.alignment() & Image.MIDDLE) {            case Image.RIGHT:                left = right - image.scaledWidth();                break;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品视频| 日韩一区在线播放| 久久久精品人体av艺术| 1区2区3区欧美| 午夜精品福利在线| 韩国欧美国产一区| 91丨porny丨国产入口| 欧美日韩精品一区二区三区| 欧美一个色资源| 欧美激情中文字幕| 午夜不卡在线视频| 高清视频一区二区| 欧美亚州韩日在线看免费版国语版| 日韩一区二区三区高清免费看看| 久久久久九九视频| 亚洲午夜久久久久久久久久久| 久久成人av少妇免费| 99精品欧美一区二区三区小说| 7777精品伊人久久久大香线蕉经典版下载| 久久久激情视频| 午夜影院在线观看欧美| 粉嫩一区二区三区在线看| 日本大香伊一区二区三区| 久久综合色鬼综合色| 一区二区三区四区不卡在线 | 国产91精品欧美| 欧美日韩不卡一区二区| 中文在线一区二区| 日日摸夜夜添夜夜添亚洲女人| 成人免费视频免费观看| 欧美一区二区三区免费在线看| 中文字幕一区二区三区不卡在线| 日韩二区三区在线观看| 99久久99久久免费精品蜜臀| 欧美α欧美αv大片| 亚洲一区二区三区四区在线| 国产成人亚洲综合a∨猫咪| 欧美日本一区二区三区四区 | 一本色道久久综合亚洲aⅴ蜜桃| 天堂一区二区在线免费观看| 懂色一区二区三区免费观看| 日韩一区二区三区在线视频| 亚洲日本成人在线观看| 国产宾馆实践打屁股91| 日韩欧美国产精品| 亚洲va国产天堂va久久en| 成人美女视频在线看| 精品国产伦一区二区三区免费| 亚洲国产综合91精品麻豆| 成人a区在线观看| 国产无人区一区二区三区| 精品一区二区三区视频在线观看| 欧美三级视频在线播放| 亚洲视频在线一区| jvid福利写真一区二区三区| 国产视频一区在线播放| 国产一区二区在线看| 日韩视频一区在线观看| 日韩精品成人一区二区三区| 在线欧美一区二区| 一区二区三区在线播| 色综合中文字幕| 亚洲免费av高清| 99久久99精品久久久久久| 国产精品全国免费观看高清| 国产成人午夜片在线观看高清观看| 欧美一卡二卡三卡四卡| 日韩精品三区四区| 欧美日韩在线播| 一区二区三区精品在线| 在线观看一区二区视频| 亚洲综合色视频| 欧美日韩中文国产| 偷窥国产亚洲免费视频| 777色狠狠一区二区三区| 欧美在线视频你懂得| 亚洲综合一区在线| 91国内精品野花午夜精品| 亚洲另类色综合网站| 91啦中文在线观看| 一区二区欧美国产| 在线一区二区视频| 日日夜夜免费精品| 欧美一级日韩一级| 国产一区在线不卡| 国产精品免费视频一区| 成人激情免费电影网址| 亚洲欧洲日韩在线| 欧美在线三级电影| 日韩精品高清不卡| 欧美不卡一区二区三区四区| 国内久久精品视频| 国产精品国产三级国产普通话99 | 国产精品久久久久久久久久久免费看| 成人教育av在线| 亚洲男人天堂av| 欧美天堂亚洲电影院在线播放| 天天av天天翘天天综合网| 精品精品国产高清a毛片牛牛| 国产一区欧美一区| 国产精品久久久久久久久果冻传媒| 国产精品毛片久久久久久久| 91福利在线观看| 午夜精品一区在线观看| 欧美tk—视频vk| av在线免费不卡| 亚洲午夜电影网| 日韩精品一区二区三区在线| 国产一区二区在线看| 亚洲视频免费看| 欧美美女直播网站| 国内精品嫩模私拍在线| 国产精品白丝在线| 欧美日韩国产精选| 国产一区二区三区综合| 亚洲视频一二区| 欧美tk—视频vk| 91欧美激情一区二区三区成人| 亚洲国产一区二区a毛片| 精品久久五月天| 91蜜桃在线观看| 日本成人中文字幕在线视频| 欧美激情一区二区三区不卡| 欧美三级韩国三级日本一级| 国内一区二区在线| 亚洲精品福利视频网站| 欧美成人性福生活免费看| 不卡一区二区三区四区| 奇米精品一区二区三区四区 | 极品少妇xxxx精品少妇偷拍| 日韩一区有码在线| 精品国偷自产国产一区| 在线观看亚洲精品视频| 国产不卡视频一区二区三区| 午夜精品福利一区二区三区蜜桃| 日本一区二区免费在线观看视频| 88在线观看91蜜桃国自产| 国产一区999| 日韩精品91亚洲二区在线观看 | 欧美主播一区二区三区美女| 精品夜夜嗨av一区二区三区| 亚洲理论在线观看| 国产欧美一区二区精品秋霞影院| 欧美日韩国产bt| 99久久综合99久久综合网站| 久久电影国产免费久久电影| 亚洲国产日韩a在线播放| 国产精品视频yy9299一区| 日韩欧美专区在线| 色婷婷精品久久二区二区蜜臂av | 久久精品一区四区| 欧美麻豆精品久久久久久| proumb性欧美在线观看| 国产呦萝稀缺另类资源| 日本一区中文字幕| 色猫猫国产区一区二在线视频| 国产自产2019最新不卡| 日韩电影免费在线观看网站| 一区二区三区在线视频免费观看| 国产午夜亚洲精品午夜鲁丝片| 3d动漫精品啪啪一区二区竹菊| 日本久久电影网| 波波电影院一区二区三区| 国产福利一区二区三区视频| 久久黄色级2电影| 天涯成人国产亚洲精品一区av| 亚洲日韩欧美一区二区在线| 国产精品毛片久久久久久| 国产欧美视频在线观看| 精品福利一二区| 精品国产一区二区三区久久久蜜月 | 欧美大片顶级少妇| 欧美美女一区二区三区| 欧美性视频一区二区三区| 色婷婷精品大在线视频| 色国产精品一区在线观看| 99久久精品免费看国产| 成+人+亚洲+综合天堂| www.欧美精品一二区| 菠萝蜜视频在线观看一区| 高清不卡一二三区| 处破女av一区二区| 国产成人免费在线视频| 国产99一区视频免费| 粉嫩嫩av羞羞动漫久久久| 国产成人亚洲综合a∨猫咪| 国产凹凸在线观看一区二区| 国产99久久久久久免费看农村| 国产成人综合亚洲网站| 国产精品69毛片高清亚洲| 国产成人综合网| 成人黄色片在线观看| 99久久夜色精品国产网站| 99麻豆久久久国产精品免费| 99久久精品国产导航| 99视频精品免费视频| 色婷婷精品久久二区二区蜜臀av | 亚洲精品久久久久久国产精华液| 樱花草国产18久久久久| 亚洲成人av福利|