亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色综合久久88色综合天天免费| 琪琪久久久久日韩精品| 国产精品66部| 久久精品一区二区| 高清不卡一区二区在线| 中文字幕巨乱亚洲| www.在线成人| 亚洲一区二区精品久久av| 欧美日韩国产系列| 免费视频最近日韩| 国产女主播视频一区二区| 91免费小视频| 视频一区二区三区入口| 久久亚洲一区二区三区四区| 国产成人自拍网| 一区二区三区欧美激情| 日韩午夜中文字幕| 成人中文字幕合集| 亚洲一区二区在线观看视频| 91麻豆精品91久久久久久清纯| 久久电影网站中文字幕| 国产欧美日产一区| 欧美日韩精品系列| 成人午夜视频在线| 日韩在线a电影| 日本一区二区三区在线不卡| 欧美亚洲综合另类| 国内精品久久久久影院薰衣草| 中文字幕一区二区三区乱码在线| 欧美色倩网站大全免费| 国产美女精品一区二区三区| **欧美大码日韩| 欧美一区二区啪啪| 一本色道久久综合狠狠躁的推荐| 日韩精品乱码av一区二区| 久久精品视频在线免费观看 | 精品制服美女久久| 中文字幕一区av| 日韩欧美亚洲一区二区| av亚洲精华国产精华精| 老司机免费视频一区二区三区| 国产精品超碰97尤物18| 欧美一区二区三区免费| 一本色道a无线码一区v| 国产精品夜夜嗨| 蜜桃视频一区二区三区| 一区二区三区精品久久久| 国产人妖乱国产精品人妖| 3751色影院一区二区三区| 91在线精品一区二区| 国产一区二区三区精品欧美日韩一区二区三区| 一二三四区精品视频| 国产精品欧美一区喷水| 精品成人一区二区三区四区| 欧美久久久久中文字幕| 欧美无人高清视频在线观看| 成人国产免费视频| 国产乱码精品一区二区三区五月婷| 日韩精品成人一区二区在线| 亚洲人精品午夜| 国产精品你懂的| 中文字幕成人av| 久久天天做天天爱综合色| 日韩欧美亚洲国产另类 | 日韩你懂的电影在线观看| 在线观看欧美黄色| 99精品黄色片免费大全| 国产精品中文字幕欧美| 久久99精品久久久久久| 免费三级欧美电影| 日韩电影在线一区二区| 视频一区中文字幕国产| 亚洲电影中文字幕在线观看| 亚洲免费成人av| 亚洲激情在线播放| 一区二区三区四区在线| 一区二区三区精密机械公司| 亚洲三级在线播放| 亚洲色图在线播放| 亚洲另类春色校园小说| 亚洲欧美另类久久久精品| 亚洲三级在线免费| 亚洲黄一区二区三区| 一区二区三区毛片| 午夜成人在线视频| 日韩av二区在线播放| 久久不见久久见免费视频7 | 粗大黑人巨茎大战欧美成人| 国产成人精品三级| av激情综合网| 色婷婷香蕉在线一区二区| 欧美性一二三区| 欧美日韩高清在线播放| 精品日韩一区二区三区 | 99re视频这里只有精品| 91麻豆免费视频| 欧美色精品天天在线观看视频| 欧美一区二区三区啪啪| xnxx国产精品| 国产精品九色蝌蚪自拍| 亚洲成人黄色影院| 国内精品伊人久久久久av影院 | 欧美一区二区私人影院日本| 日韩一区二区免费电影| 国产精品区一区二区三| 一区二区三区91| 久久成人久久鬼色| 97久久超碰精品国产| 在线播放中文字幕一区| 久久久久88色偷偷免费| 一区二区三区日本| 韩国三级在线一区| 色婷婷av一区| 26uuu国产电影一区二区| 亚洲天天做日日做天天谢日日欢| 亚洲一区二区三区在线看| 精品一区二区三区欧美| 91丨porny丨首页| 欧美不卡激情三级在线观看| 亚洲欧美另类综合偷拍| 韩国女主播一区二区三区| 91免费小视频| 久久久久久久久免费| 一级中文字幕一区二区| 国产麻豆精品95视频| 欧美精选一区二区| 国产精品激情偷乱一区二区∴| 日韩精品欧美成人高清一区二区| 丰满放荡岳乱妇91ww| 欧美一区二区三区免费视频| 亚洲欧美日韩一区二区三区在线观看| 麻豆freexxxx性91精品| 91视频你懂的| 国产亚洲精品福利| 日韩av一区二区在线影视| 91麻豆产精品久久久久久| 欧美成人a视频| 亚洲动漫第一页| 91日韩在线专区| 久久久91精品国产一区二区精品| 三级欧美在线一区| 日本韩国欧美在线| 国产精品伦一区二区三级视频| 经典一区二区三区| 欧美电影在哪看比较好| 一区二区三区四区不卡视频| 成人爱爱电影网址| 国产婷婷精品av在线| 久久99精品一区二区三区三区| 欧美性猛交xxxx黑人交| 综合网在线视频| 成人激情免费视频| 国产欧美日韩精品在线| 国产福利不卡视频| 欧美精品一区二区三区在线 | 亚洲欧美日韩电影| av电影天堂一区二区在线| 精品国产sm最大网站免费看| 天天综合色天天| 欧美三级日韩在线| 亚洲国产毛片aaaaa无费看| 91免费版在线| 亚洲视频一区在线| 91国在线观看| 亚洲一区在线视频| 3d动漫精品啪啪1区2区免费| 亚洲成a人片在线不卡一二三区| 色视频一区二区| 亚洲第一二三四区| 欧美精品三级日韩久久| 日韩成人午夜电影| 欧美本精品男人aⅴ天堂| 精品一区二区免费看| 欧美精品一区二区三区蜜桃视频| 精品一区二区日韩| 国产亚洲精品超碰| 91在线免费看| 亚洲午夜在线视频| 日韩三级视频在线看| 九九精品视频在线看| 欧美—级在线免费片| 成人av在线一区二区| 一区二区三区精品| 欧美一区二区黄| 激情欧美日韩一区二区| 中文一区一区三区高中清不卡| 99久久精品国产一区| 亚洲国产精品精华液网站| 欧美精品在线一区二区三区| 久久精品国产一区二区三区免费看 | 国产欧美日韩另类视频免费观看| 成人av一区二区三区| 一区二区三区波多野结衣在线观看 | 91黄色免费看| 青青草原综合久久大伊人精品| 精品久久久久久无| 99综合影院在线| 亚洲sss视频在线视频| 久久综合一区二区| 91丨porny丨蝌蚪视频|