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

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

?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆专区一区二区三区四区五区| 国产精品九色蝌蚪自拍| 久久精品国产秦先生| 欧美v国产在线一区二区三区| 久久av老司机精品网站导航| 精品国产免费久久| 国产黄色成人av| 亚洲人成网站精品片在线观看| 97精品久久久久中文字幕| 亚洲美女视频在线观看| 欧美三级乱人伦电影| 日韩不卡一区二区| 久久综合久久久久88| 不卡的电影网站| 亚洲无人区一区| 日韩免费一区二区| 成人一区二区三区视频在线观看| 一区二区中文字幕在线| 欧美日韩三级一区二区| 韩国中文字幕2020精品| 国产精品国产a| 欧美精品第一页| 国产酒店精品激情| 亚洲综合视频网| 欧美电影免费观看高清完整版| 国产精品99久久久久久久女警| 亚洲色图欧洲色图婷婷| 91精品国产色综合久久久蜜香臀| 国产河南妇女毛片精品久久久 | 91精品国产一区二区三区蜜臀 | 亚洲第一成人在线| xnxx国产精品| 欧美在线观看一区二区| 久久 天天综合| 亚洲久本草在线中文字幕| 精品日本一线二线三线不卡| 91小视频在线观看| 久久国产人妖系列| 一区二区三区中文字幕电影 | 国内精品伊人久久久久av一坑 | 精品美女一区二区三区| 色综合色狠狠综合色| 韩国精品主播一区二区在线观看| 亚洲女厕所小便bbb| 精品国产伦一区二区三区观看方式| 欧美性大战xxxxx久久久| 777久久久精品| 久久久久久久久久久久久女国产乱| 综合自拍亚洲综合图不卡区| 欧美日韩久久一区二区| 丰满少妇在线播放bd日韩电影| 偷拍与自拍一区| 国产精品久久毛片av大全日韩| 777a∨成人精品桃花网| 91激情五月电影| 白白色亚洲国产精品| 国产乱码精品一区二区三区忘忧草 | 欧美亚洲综合网| 成人av动漫在线| 国产精品资源在线观看| 五月婷婷综合网| 捆绑调教美女网站视频一区| 久久久久久影视| 欧美成人vr18sexvr| 欧美精品九九99久久| 欧美在线free| 色老汉一区二区三区| jiyouzz国产精品久久| 成人午夜av影视| 国产成人自拍网| 精品一区二区日韩| 精品在线一区二区| 免费观看在线综合色| 日本欧美一区二区在线观看| 午夜视频一区在线观看| 亚洲成人激情综合网| 亚洲在线观看免费| 亚洲综合自拍偷拍| 亚洲自拍欧美精品| 亚洲成人动漫在线观看| 日韩精品亚洲专区| 日本不卡123| 麻豆国产一区二区| 国产一区二区不卡在线| 国产在线观看免费一区| 国产成人免费av在线| 成人av在线播放网站| 99国产欧美另类久久久精品| www.av亚洲| 91行情网站电视在线观看高清版| 日本电影欧美片| 欧美日韩国产乱码电影| 7878成人国产在线观看| 欧美成人激情免费网| 国产女人aaa级久久久级 | 亚洲线精品一区二区三区八戒| 亚洲精品成人悠悠色影视| 亚洲综合色网站| 日韩影视精彩在线| 激情综合亚洲精品| 成人97人人超碰人人99| 91久久精品一区二区三| 欧美一区二区三区的| 久久精品一区二区三区不卡牛牛| 国产精品色婷婷| 亚洲一区二区三区四区中文字幕| 日韩在线一二三区| 国产99久久久国产精品免费看| 91女厕偷拍女厕偷拍高清| 欧美日韩国产电影| 久久久av毛片精品| 亚洲欧美一区二区不卡| 美女视频免费一区| 成人高清在线视频| 7777精品伊人久久久大香线蕉经典版下载 | 激情欧美一区二区| 不卡一区二区在线| 欧美日韩午夜在线视频| 国产拍欧美日韩视频二区 | 亚洲国产日韩在线一区模特| 九九在线精品视频| 色婷婷亚洲综合| 精品国产百合女同互慰| 亚洲激情自拍偷拍| 国产一区二区三区四区在线观看| 色综合天天综合狠狠| 亚洲精品一区二区三区精华液| 亚洲女女做受ⅹxx高潮| 国产精品一区二区无线| 欧美日韩一区二区三区在线| 国产人成亚洲第一网站在线播放| 亚洲亚洲精品在线观看| 粉嫩av一区二区三区在线播放| 欧美日韩国产高清一区| 成人欧美一区二区三区在线播放| 日韩黄色小视频| 色狠狠一区二区三区香蕉| www国产精品av| 三级欧美在线一区| 91在线视频网址| 国产亚洲精品bt天堂精选| 免费在线一区观看| 欧美性猛交xxxx乱大交退制版| 国产精品人成在线观看免费 | 欧美日韩国产综合一区二区| 国产日韩欧美综合一区| 青娱乐精品视频在线| 欧美日韩一区二区三区四区五区| 亚洲国产精品成人综合| 精品亚洲成av人在线观看| 欧美精品aⅴ在线视频| 一片黄亚洲嫩模| 一道本成人在线| 亚洲免费伊人电影| 99精品视频中文字幕| 中文字幕av资源一区| 狠狠色丁香婷综合久久| 日韩三级伦理片妻子的秘密按摩| 亚洲成a人v欧美综合天堂 | 宅男噜噜噜66一区二区66| 一区二区高清免费观看影视大全| 99国产一区二区三精品乱码| 欧美国产国产综合| 成人激情电影免费在线观看| 国产日韩av一区二区| 国产精品一级黄| 国产亚洲福利社区一区| 国产精品羞羞答答xxdd| 国产午夜亚洲精品羞羞网站| 国产精品一区二区久激情瑜伽 | 正在播放亚洲一区| 日韩精品亚洲一区| 日韩欧美美女一区二区三区| 蜜桃av一区二区| 精品1区2区在线观看| 国内不卡的二区三区中文字幕| 亚洲精品一区二区精华| 国产精品香蕉一区二区三区| 国产精品你懂的在线| 99精品在线免费| 亚洲aaa精品| 日韩欧美精品在线视频| 国产电影一区二区三区| 国产精品进线69影院| 91在线一区二区| 亚洲成人精品在线观看| 精品人在线二区三区| 懂色一区二区三区免费观看| 亚洲欧美一区二区三区极速播放| 在线观看av不卡| 毛片基地黄久久久久久天堂| 久久看人人爽人人| 91年精品国产| 日本亚洲视频在线| 中文字幕免费在线观看视频一区| 91色porny| 裸体一区二区三区| 国产精品久久夜| 色老综合老女人久久久| 捆绑变态av一区二区三区|