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

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

?? pdfptable.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Id: PdfPTable.java,v 1.29 2002/11/19 08:33:38 blowagie Exp $ * $Name:  $ * * Copyright 2001, 2002 Paulo Soares * * 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 com.lowagie.text.Phrase;import com.lowagie.text.Element;import com.lowagie.text.ElementListener;import com.lowagie.text.DocumentException;/** This is a table that can be put at an absolute position but can also * be added to the document as the class <CODE>Table</CODE>. * In the last case when crossing pages the table always break at full rows; if a * row is bigger than the page it is dropped silently to avoid infinite loops. * <P> * A PdfPTableEvent can be associated to the table to do custom drawing * when the table is rendered. * @author Paulo Soares (psoares@consiste.pt) */public class PdfPTable implements Element{        /** The index of the original <CODE>PdfcontentByte</CODE>.     */        public static final int BASECANVAS = 0;    /** The index of the duplicate <CODE>PdfContentByte</CODE> where the backgroung will be drawn.     */        public static final int BACKGROUNDCANVAS = 1;    /** The index of the duplicate <CODE>PdfContentByte</CODE> where the border lines will be drawn.     */        public static final int LINECANVAS = 2;    /** The index of the duplicate <CODE>PdfContentByte</CODE> where the text will be drawn.     */        public static final int TEXTCANVAS = 3;        protected ArrayList rows = new ArrayList();    protected float totalHeight = 0;    protected PdfPCell currentRow[];    protected int currentRowIdx = 0;    protected PdfPCell defaultCell = new PdfPCell((Phrase)null);    protected float totalWidth = 0;    protected float relativeWidths[];    protected float absoluteWidths[];    protected PdfPTableEvent tableEvent;    /** Holds value of property headerRows. */    protected int headerRows;    /** Holds value of property widthPercentage. */    protected float widthPercentage = 80;    /** Holds value of property horizontalAlignment. */    private int horizontalAlignment = Element.ALIGN_CENTER;    /** Holds value of property skipFirstHeader. */    private boolean skipFirstHeader = false;    protected boolean isColspan = false;        protected int runDirection = PdfWriter.RUN_DIRECTION_DEFAULT;    /** Constructs a <CODE>PdfPTable</CODE> with the relative column widths.     * @param relativeWidths the relative column widths     */        public PdfPTable(float relativeWidths[]) {        if (relativeWidths == null)            throw new NullPointerException("The widths array in PdfPTable constructor can not be null.");        if (relativeWidths.length == 0)            throw new IllegalArgumentException("The widths array in PdfPTable constructor can not have zero length.");        this.relativeWidths = new float[relativeWidths.length];        System.arraycopy(relativeWidths, 0, this.relativeWidths, 0, relativeWidths.length);        absoluteWidths = new float[relativeWidths.length];        calculateWidths();        currentRow = new PdfPCell[absoluteWidths.length];    }        /** Constructs a <CODE>PdfPTable</CODE> with <CODE>numColumns</CODE> columns.     * @param numColumns the number of columns     */        public PdfPTable(int numColumns) {        if (numColumns <= 0)            throw new IllegalArgumentException("The number of columns in PdfPTable constructor must be greater than zero.");        relativeWidths = new float[numColumns];        for (int k = 0; k < numColumns; ++k)            relativeWidths[k] = 1;        absoluteWidths = new float[relativeWidths.length];        calculateWidths();        currentRow = new PdfPCell[absoluteWidths.length];    }        /** Constructs a copy of a <CODE>PdfPTable</CODE>.     * @param table the <CODE>PdfPTable</CODE> to be copied     */        public PdfPTable(PdfPTable table) {        relativeWidths = new float[table.relativeWidths.length];        absoluteWidths = new float[table.relativeWidths.length];        System.arraycopy(table.relativeWidths, 0, relativeWidths, 0, relativeWidths.length);        System.arraycopy(table.absoluteWidths, 0, absoluteWidths, 0, relativeWidths.length);        totalWidth = table.totalWidth;        totalHeight = table.totalHeight;        currentRowIdx = table.currentRowIdx;        tableEvent = table.tableEvent;        runDirection = table.runDirection;        defaultCell = new PdfPCell(table.defaultCell);        currentRow = new PdfPCell[table.currentRow.length];        isColspan = table.isColspan;        for (int k = 0; k < currentRow.length; ++k) {            if (table.currentRow[k] == null)                break;            currentRow[k] = new PdfPCell(table.currentRow[k]);        }        for (int k = 0; k < table.rows.size(); ++k) {            rows.add(new PdfPRow((PdfPRow)(table.rows.get(k))));        }    }        /** Sets the relative widths of the table.     * @param relativeWidths the relative widths of the table.     * @throws DocumentException if the number of widths is different than tne number     * of columns     */        public void setWidths(float relativeWidths[]) throws DocumentException {        if (relativeWidths.length != this.relativeWidths.length)            throw new DocumentException("Wrong number of columns.");        this.relativeWidths = new float[relativeWidths.length];        System.arraycopy(relativeWidths, 0, this.relativeWidths, 0, relativeWidths.length);        absoluteWidths = new float[relativeWidths.length];        totalHeight = 0;        calculateWidths();        calculateHeights();    }    /** Sets the relative widths of the table.     * @param relativeWidths the relative widths of the table.     * @throws DocumentException if the number of widths is different than tne number     * of columns     */        public void setWidths(int relativeWidths[]) throws DocumentException {        float tb[] = new float[relativeWidths.length];        for (int k = 0; k < relativeWidths.length; ++k)            tb[k] = relativeWidths[k];        setWidths(tb);    }    private void calculateWidths() {        if (totalWidth <= 0)            return;        float total = 0;        for (int k = 0; k < absoluteWidths.length; ++k) {            total += relativeWidths[k];        }        for (int k = 0; k < absoluteWidths.length; ++k) {            absoluteWidths[k] = totalWidth * relativeWidths[k] / total;        }    }        /** Sets the full width of the table.     * @param totalWidth the full width of the table.     */        public void setTotalWidth(float totalWidth) {        if (this.totalWidth == totalWidth)            return;        this.totalWidth = totalWidth;        totalHeight = 0;        calculateWidths();        calculateHeights();    }    /** Gets the full width of the table.     * @return the full width of the table     */        public float getTotalWidth() {        return totalWidth;    }    void calculateHeights() {        if (totalWidth <= 0)            return;        totalHeight = 0;        for (int k = 0; k < rows.size(); ++k) {            PdfPRow row = (PdfPRow)rows.get(k);            row.setWidths(absoluteWidths);            totalHeight += row.getMaxHeights();        }    }        /** Gets the default <CODE>PdfPCell</CODE> that will be used as     * reference for all the <CODE>addCell</CODE> methods except     * <CODE>addCell(PdfPCell)</CODE>.     * @return default <CODE>PdfPCell</CODE>     */        public PdfPCell getDefaultCell() {        return defaultCell;    }        /** Adds a cell element.     * @param cell the cell element     */        public void addCell(PdfPCell cell) {        PdfPCell ncell = new PdfPCell(cell);        int colspan = ncell.getColspan();        colspan = Math.max(colspan, 1);        colspan = Math.min(colspan, currentRow.length - currentRowIdx);        ncell.setColspan(colspan);        if (colspan != 1)            isColspan = true;        int rdir = ncell.getRunDirection();        if (rdir == PdfWriter.RUN_DIRECTION_DEFAULT)            ncell.setRunDirection(runDirection);        currentRow[currentRowIdx] = ncell;        currentRowIdx += colspan;        if (currentRowIdx >= currentRow.length) {            if (runDirection == PdfWriter.RUN_DIRECTION_RTL) {                PdfPCell rtlRow[] = new PdfPCell[absoluteWidths.length];                int rev = currentRow.length;                for (int k = 0; k < currentRow.length; ++k) {                    PdfPCell rcell = currentRow[k];                    int cspan = rcell.getColspan();                    rev -= cspan;                    rtlRow[rev] = rcell;                    k += cspan - 1;                }                currentRow = rtlRow;            }            PdfPRow row = new PdfPRow(currentRow);            if (totalWidth > 0) {                row.setWidths(absoluteWidths);                totalHeight += row.getMaxHeights();            }            rows.add(row);            currentRow = new PdfPCell[absoluteWidths.length];            currentRowIdx = 0;        }    }        /** Adds a cell element.     * @param text the text for the cell     */        public void addCell(String text) {        addCell(new Phrase(text));    }        /** Adds a cell element.     * @param table the table to be added to the cell     */        public void addCell(PdfPTable table) {        defaultCell.setTable(table);        addCell(defaultCell);        defaultCell.setTable(null);    }        /** Adds a cell element.     * @param phrase the <CODE>Phrase</CODE> to be added to the cell     */        public void addCell(Phrase phrase) {        defaultCell.setPhrase(phrase);        addCell(defaultCell);        defaultCell.setPhrase(null);    }        /**     * Writes the selected rows to the document.     * <P>     * <CODE>canvases</CODE> is obtained from <CODE>beginWrittingRows()</CODE>.     * @param rowStart the first row to be written, zero index

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国模大尺度私拍在线视频| 婷婷激情综合网| 怡红院av一区二区三区| 亚洲乱码国产乱码精品精小说 | 国产一区999| av在线这里只有精品| 欧美日韩综合色| 久久综合色婷婷| 中文字幕在线播放不卡一区| 亚洲国产aⅴ成人精品无吗| 美女在线观看视频一区二区| 成人福利在线看| 欧美日韩一区高清| 国产日韩欧美一区二区三区乱码| 亚洲免费观看在线观看| 美女在线一区二区| 99久久久精品免费观看国产蜜| 欧美一区二区三区在| 国产精品久久久久久久久免费相片| 亚洲电影在线免费观看| 国产高清无密码一区二区三区| 91国偷自产一区二区三区观看| 日韩精品专区在线影院重磅| ...中文天堂在线一区| 久久精品国产99| 91黄色免费看| 久久久天堂av| 视频一区欧美日韩| 成人性生交大合| 日韩欧美一区二区在线视频| 综合久久给合久久狠狠狠97色 | 久久精品网站免费观看| 一区二区三区不卡在线观看| 国产精品主播直播| 欧美日韩国产综合一区二区三区| 国产欧美一区二区三区在线看蜜臀| 午夜精品视频在线观看| 91丨porny丨首页| 久久精品日韩一区二区三区| 日韩av在线免费观看不卡| 色综合色狠狠天天综合色| 26uuu国产一区二区三区| 亚洲不卡一区二区三区| 93久久精品日日躁夜夜躁欧美| xvideos.蜜桃一区二区| 日韩精品国产欧美| 欧美三级视频在线| 亚洲天天做日日做天天谢日日欢| 国产一区二区福利视频| 91精品国产乱码| 亚洲综合一区二区三区| 91香蕉国产在线观看软件| 欧美国产视频在线| 国产一区二区福利| 久久综合九色综合欧美就去吻| 欧美aaa在线| 欧美日本在线播放| 亚洲一区二区三区国产| 色综合久久天天| 国产精品久久精品日日| 成人精品国产免费网站| 久久精品免费在线观看| 国产一区二三区好的| 日韩精品一区二区三区在线观看| 日韩在线一区二区三区| 9191久久久久久久久久久| 亚洲电影在线播放| 欧美日韩久久一区二区| 亚洲第一搞黄网站| 欧美日韩国产高清一区| 香港成人在线视频| 91精品国产乱码| 美国欧美日韩国产在线播放| 日韩视频一区二区在线观看| 久久99热国产| 久久精品免视看| 不卡影院免费观看| 《视频一区视频二区| 色婷婷综合久久| 一区二区高清视频在线观看| 欧美视频在线不卡| 天天色天天爱天天射综合| 制服丝袜在线91| 精品一区二区三区av| 亚洲3atv精品一区二区三区| 欧美精选在线播放| 麻豆成人在线观看| 久久综合视频网| 不卡av电影在线播放| 亚洲精品综合在线| 欧美日韩精品一区二区天天拍小说 | 久久99国产精品成人| 精品国产污网站| 国产精品原创巨作av| 国产精品理论片在线观看| 色综合久久久久网| 天堂一区二区在线| 日韩你懂的在线播放| 国产99久久久国产精品免费看| 国产精品欧美精品| 欧美亚洲免费在线一区| 美女一区二区三区| 国产欧美日韩综合| 欧美视频在线一区| 国产一区日韩二区欧美三区| 国产精品三级视频| 欧美亚洲一区二区在线| 日韩国产成人精品| 久久亚洲精精品中文字幕早川悠里| 成人午夜av影视| 亚洲国产成人av网| 久久久不卡影院| 91亚洲男人天堂| 蜜臀av亚洲一区中文字幕| 国产精品美女久久久久久2018| 欧美性做爰猛烈叫床潮| 久久99精品久久久久久动态图| 国产精品久久久久婷婷二区次| 欧美亚洲禁片免费| 国产成人精品在线看| 亚洲一级不卡视频| 国产亚洲人成网站| 欧美日韩国产片| 成人短视频下载| 日本va欧美va瓶| 中文字幕一区二区三区不卡在线 | 亚洲狠狠爱一区二区三区| 日韩精品一区二区三区视频播放 | 一区二区三区日韩欧美| 日韩你懂的在线观看| 91女神在线视频| 国内精品视频一区二区三区八戒| 亚洲欧美色综合| 久久综合九色综合欧美亚洲| 欧美视频一区二区在线观看| 国产一区二区三区观看| 亚洲一区二区三区视频在线| 久久久噜噜噜久噜久久综合| 欧美日韩在线观看一区二区 | 亚洲欧美日韩人成在线播放| 精品久久久三级丝袜| 欧美日韩一区在线观看| 国产999精品久久| 美女网站在线免费欧美精品| 亚洲伦理在线精品| 国产精品美女久久久久aⅴ| 欧美大胆人体bbbb| 欧美性大战xxxxx久久久| 不卡高清视频专区| 国产精品1区二区.| 青青草成人在线观看| 亚洲午夜一二三区视频| 中文字幕日韩欧美一区二区三区| 久久精品视频免费| 精品免费国产一区二区三区四区| 欧美日韩三级在线| 日本高清不卡一区| 99re热视频精品| 成人在线一区二区三区| 在线观看视频欧美| 国产不卡在线视频| 国产在线精品免费av| 日韩一区精品视频| 亚洲第一在线综合网站| 亚洲视频免费看| 亚洲同性gay激情无套| 国产日韩亚洲欧美综合| 精品国内片67194| 欧美一区二区三区影视| 欧美日韩精品三区| 欧美吞精做爰啪啪高潮| 色婷婷久久综合| 91在线码无精品| av一二三不卡影片| 不卡欧美aaaaa| 99久久精品久久久久久清纯| 成人va在线观看| 成人黄色片在线观看| 成人免费视频app| 成人精品小蝌蚪| av亚洲精华国产精华精华| 91在线国内视频| 色婷婷一区二区三区四区| 91福利小视频| 欧美日韩激情在线| 7777精品伊人久久久大香线蕉超级流畅| 欧美亚一区二区| 91麻豆精品国产无毒不卡在线观看| 欧美日韩成人在线| 日韩一级免费观看| 欧美精品一区二区三区很污很色的| 久久综合久久综合亚洲| 久久精品亚洲国产奇米99| 国产精品国产三级国产普通话99| 国产精品护士白丝一区av| 一片黄亚洲嫩模| 午夜影院在线观看欧美| 麻豆精品视频在线观看视频| 国产尤物一区二区在线| 国产成人精品一区二|