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

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

?? table.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/* * $Id: Table.java,v 1.94 2002/07/10 07:22:39 blowagie Exp $ * $Name:  $ * * Copyright 1999, 2000, 2001, 2002 by 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/ * * Some methods in this class were contributed by Geert Poels, Kris Jespers and * Steve Ogryzek. Check the CVS repository. */package com.lowagie.text;import java.awt.Color;import java.awt.Dimension;import java.awt.Point;import java.util.ArrayList;import java.util.Hashtable;import java.util.Iterator;import java.util.Properties;import java.util.StringTokenizer;import com.lowagie.text.markup.*;/** * A <CODE>Table</CODE> is a <CODE>Rectangle</CODE> that contains <CODE>Cell</CODE>s, * ordered in some kind of matrix. * <P> * Tables that span multiple pages are cut into different parts automatically. * If you want a table header to be repeated on every page, you may not forget to * mark the end of the header section by using the method <CODE>endHeaders()</CODE>. * <P> * The matrix of a table is not necessarily an m x n-matrix. It can contain holes * or cells that are bigger than the unit. Believe me or not, but it took some serious * thinking to make this as userfriendly as possible. I hope you wil find the result * quite simple (I love simple solutions, especially for complex problems). * I didn't want it to be something as complex as the Java <CODE>GridBagLayout</CODE>. * <P> * Example: * <BLOCKQUOTE><PRE> * // Remark: You MUST know the number of columns when constructing a Table. * //         The number of rows is not important. * <STRONG>Table table = new Table(3);</STRONG> * <STRONG>table.setBorderWidth(1);</STRONG> * <STRONG>table.setBorderColor(new Color(0, 0, 255));</STRONG> * <STRONG>table.setPadding(5);</STRONG> * <STRONG>table.setSpacing(5);</STRONG> * Cell cell = new Cell("header"); * cell.setHeader(true); * cell.setColspan(3); * <STRONG>table.addCell(cell);</STRONG> * <STRONG>table.endHeaders();</STRONG> * cell = new Cell("example cell with colspan 1 and rowspan 2"); * cell.setRowspan(2); * cell.setBorderColor(new Color(255, 0, 0)); * <STRONG>table.addCell(cell);</STRONG> * <STRONG>table.addCell("1.1");</STRONG> * <STRONG>table.addCell("2.1");</STRONG> * <STRONG>table.addCell("1.2");</STRONG> * <STRONG>table.addCell("2.2");</STRONG> * <STRONG>table.addCell("cell test1");</STRONG> * cell = new Cell("big cell"); * cell.setRowspan(2); * cell.setColspan(2); * <STRONG>table.addCell(cell);</STRONG> * <STRONG>table.addCell("cell test2");</STRONG> * </PRE></BLOCKQUOTE> * The result of this code is a table: *      <TABLE ALIGN="Center" BORDER="1" BORDERCOLOR="#0000ff" CELLPADDING="5" CELLSPACING="5"> *              <TR ALIGN="Left" VALIGN="Left"> *                      <TH ALIGN="Left" COLSPAN="3" VALIGN="Left"> *                              header *                      </TH> *              </TR> *              <TR ALIGN="Left" VALIGN="Left"> *                      <TD ALIGN="Left" BORDERCOLOR="#ff0000" ROWSPAN="2" VALIGN="Left"> *                              example cell with colspan 1 and rowspan 2 *                      </TD> *                      <TD ALIGN="Left" VALIGN="Left"> *                              1.1 *                      </TD> *                      <TD ALIGN="Left" VALIGN="Left"> *                              2.1 *                      </TD> *              </TR> *              <TR ALIGN="Left" VALIGN="Left"> *                      <TD ALIGN="Left" VALIGN="Left"> *                              1.2 *                      </TD> *                      <TD ALIGN="Left" VALIGN="Left"> *                              2.2 *                      </TD> *              </TR> *              <TR ALIGN="Left" VALIGN="Left"> *                      <TD ALIGN="Left" VALIGN="Left"> *                              cell test1 *                      </TD> *                      <TD ALIGN="Left" COLSPAN="2" ROWSPAN="2" VALIGN="Left"> *                              big cell *                      </TD> *              </TR> *              <TR ALIGN="Left" VALIGN="Left"> *                      <TD ALIGN="Left" VALIGN="Left"> *                              cell test2 *                      </TD> *              </TR> *      </TABLE> * * @see         Rectangle * @see         Element * @see         Row * @see         Cell */public class Table extends Rectangle implements Element, MarkupAttributes {    // membervariables    // these variables contain the data of the table/** This is the number of columns in the <CODE>Table</CODE>. */    private int columns;// this is the current Position in the table    private Point curPosition = new Point(0, 0);/** This is the list of <CODE>Row</CODE>s. */    private ArrayList rows = new ArrayList();    // these variables contain the layout of the table/** This Empty Cell contains the DEFAULT layout of each Cell added with the method addCell(String content). */    private Cell defaultLayout = new Cell(true);/** This is the number of the last row of the table headers. */    private int lastHeaderRow = -1;/** This is the horizontal alignment. */    private int alignment = Element.ALIGN_CENTER;/** This is cellpadding. */    private float cellpadding;/** This is cellspacing. */    private float cellspacing;/** This is the width of the table (in percent of the available space). */    private float widthPercentage = 80;    // member variable added by Evelyne De Cordier/** This is the width of the table (in pixels). */    private String absWidth = "";/** This is an array containing the widths (in percentages) of every column. */    private float[] widths;/** Boolean to track errors (some checks will be performed) */    boolean mDebug = false;/** Boolean to track if a table was inserted (to avoid unnecessary computations afterwards) */    boolean mTableInserted = false;/** * Boolean to automatically fill empty cells before a table is rendered *  (takes CPU so may be set to false in case of certainty) */    boolean mAutoFillEmptyCells = false;/** If true this table may not be split over two pages. */    boolean tableFitsPage = false;/** If true cells may not be split over two pages. */    boolean cellsFitPage = false;/** This is the offset of the table. */    float offset = Float.NaN;/** contains the attributes that are added to each odd (or even) row */    protected Hashtable alternatingRowAttributes = null;    // constructors/** * Constructs a <CODE>Table</CODE> with a certain number of columns. * * @param       columns         The number of columns in the table * @throws      BadElementException if the creator was called with less than 1 column */    public Table(int columns) throws BadElementException {        this(columns, 1);    }/** * Constructs a <CODE>Table</CODE> with a certain number of columns * and a certain number of <CODE>Row</CODE>s. * * @param       columns         The number of columns in the table * @param       rows            The number of rows * @throws      BadElementException if the creator was called with less than 1 column */    public Table(int columns, int rows) throws BadElementException {        // a Rectangle is create with BY DEFAULT a border with a width of 1        super(0, 0, 0, 0);        setBorder(BOX);        setBorderWidth(1);        defaultLayout.setBorder(BOX);        // a table should have at least 1 column        if (columns <= 0) {            throw new BadElementException("A table should have at least 1 column.");        }        this.columns = columns;        // a certain number of rows are created        for (int i = 0; i < rows; i++) {            this.rows.add(new Row(columns));        }        curPosition = new Point(0, 0);        // the DEFAULT widths are calculated        widths = new float[columns];        float width = 100f / columns;        for (int i = 0; i < columns; i++) {            widths[i] = width;        }    }/** * Returns a <CODE>Table</CODE> that has been constructed taking in account * the value of some <VAR>attributes</VAR>. * * @param    attributes        Some attributes */    public Table(Properties attributes) {        // a Rectangle is create with BY DEFAULT a border with a width of 1        super(0, 0, 0, 0);        setBorder(BOX);        setBorderWidth(1);        defaultLayout.setBorder(BOX);        String value = (String)attributes.remove(ElementTags.COLUMNS);        if (value == null) {            columns = 1;        }        else {            columns = Integer.parseInt(value);            if (columns <= 0) {                columns = 1;            }        }        rows.add(new Row(columns));        curPosition.setLocation(0, curPosition.y);        if ((value = (String)attributes.remove(ElementTags.LASTHEADERROW)) != null) {            setLastHeaderRow(Integer.parseInt(value));        }        if ((value = (String)attributes.remove(ElementTags.ALIGN)) != null) {            setAlignment(value);        }        if ((value = (String)attributes.remove(ElementTags.CELLSPACING)) != null) {            setSpacing(Float.valueOf(value + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.CELLPADDING)) != null) {            setPadding(Float.valueOf(value + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.OFFSET)) != null) {            setOffset(Float.valueOf(value + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.WIDTH)) != null) {            if (value.endsWith("%"))                setWidth(Float.valueOf(value.substring(0, value.length() - 1) + "f").floatValue());            else                setAbsWidth(value);        }        widths = new float[columns];        for (int i = 0; i < columns; i++) {            widths[i] = 0;        }        if ((value = (String)attributes.remove(ElementTags.WIDTHS)) != null) {            StringTokenizer widthTokens = new StringTokenizer(value, ";");            int i = 0;            while (widthTokens.hasMoreTokens()) {                value = (String) widthTokens.nextToken();                widths[i] = Float.valueOf(value + "f").floatValue();                i++;            }            columns = i;        }        if ((value = (String)attributes.remove(ElementTags.TABLEFITSPAGE)) != null) {            tableFitsPage = new Boolean(value).booleanValue();        }        if ((value = (String)attributes.remove(ElementTags.CELLSFITPAGE)) != null) {            cellsFitPage = new Boolean(value).booleanValue();        }        if ((value = (String)attributes.remove(ElementTags.BORDERWIDTH)) != null) {            setBorderWidth(Float.valueOf(value + "f").floatValue());        }        int border = 0;        if ((value = (String)attributes.remove(ElementTags.LEFT)) != null) {            if (new Boolean(value).booleanValue()) border |= Rectangle.LEFT;        }        if ((value = (String)attributes.remove(ElementTags.RIGHT)) != null) {            if (new Boolean(value).booleanValue()) border |= Rectangle.RIGHT;        }        if ((value = (String)attributes.remove(ElementTags.TOP)) != null) {            if (new Boolean(value).booleanValue()) border |= Rectangle.TOP;        }        if ((value = (String)attributes.remove(ElementTags.BOTTOM)) != null) {            if (new Boolean(value).booleanValue()) border |= Rectangle.BOTTOM;        }        setBorder(border);        String r = (String)attributes.remove(ElementTags.RED);        String g = (String)attributes.remove(ElementTags.GREEN);        String b = (String)attributes.remove(ElementTags.BLUE);        if (r != null || g != null || b != null) {            int red = 0;            int green = 0;            int blue = 0;            if (r != null) red = Integer.parseInt(r);            if (g != null) green = Integer.parseInt(g);            if (b != null) blue = Integer.parseInt(b);            setBorderColor(new Color(red, green, blue));        }        else if ((value = attributes.getProperty(ElementTags.BORDERCOLOR)) != null) {            setBorderColor(MarkupParser.decodeColor(value));        }        r = (String)attributes.remove(ElementTags.BGRED);        g = (String)attributes.remove(ElementTags.BGGREEN);        b = (String)attributes.remove(ElementTags.BGBLUE);        if (r != null || g != null || b != null) {            int red = 0;            int green = 0;            int blue = 0;            if (r != null) red = Integer.parseInt(r);            if (g != null) green = Integer.parseInt(g);            if (b != null) blue = Integer.parseInt(b);            setBackgroundColor(new Color(red, green, blue));        }        else if ((value = (String)attributes.remove(ElementTags.BACKGROUNDCOLOR)) != null) {            setBackgroundColor(MarkupParser.decodeColor(value));        }        if ((value = (String)attributes.remove(ElementTags.GRAYFILL)) != null) {            setGrayFill(Float.valueOf(value + "f").floatValue());        }        if (attributes.size() > 0) setMarkupAttributes(attributes);    }    // implementation of the Element-methods/** * Processes the element by adding it (or the different parts) to an * <CODE>ElementListener</CODE>. * * @param       listener        an <CODE>ElementListener</CODE> * @return <CODE>true</CODE> if the element was processed successfully */    public boolean process(ElementListener listener) {        try {            return listener.add(this);        }        catch(DocumentException de) {            return false;        }    }/** * Performs extra checks when executing table code (currently only when cells are added). */    public void setDebug(boolean aDebug) {        mDebug = aDebug;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
1000部国产精品成人观看| 亚洲aaa精品| 91精品国产一区二区三区蜜臀| 欧美aa在线视频| 国产精品久久久久一区| 91麻豆精品国产91久久久久久| 成人午夜视频免费看| 日韩黄色片在线观看| 国产精品久久三| 日韩免费电影网站| 在线精品国精品国产尤物884a| 国产一区 二区| 日韩电影一二三区| 亚洲综合区在线| 国产精品乱码一区二区三区软件| 欧美一级一区二区| 欧美日韩视频专区在线播放| 成人免费毛片app| 国产一区久久久| 开心九九激情九九欧美日韩精美视频电影| 亚洲免费在线视频一区 二区| 久久久美女毛片| 精品国产乱码久久久久久1区2区| 在线免费观看视频一区| av激情成人网| 丁香六月综合激情| 国产精品123| 国产一区二区剧情av在线| 美女视频一区在线观看| 日日夜夜精品免费视频| 亚洲一区二区在线观看视频| 中文字幕永久在线不卡| 国产精品区一区二区三区| 久久在线观看免费| 精品国产亚洲在线| 欧美大片一区二区三区| 日韩限制级电影在线观看| 欧美亚洲高清一区二区三区不卡| 91美女片黄在线| 色综合天天性综合| 91高清视频免费看| 在线亚洲人成电影网站色www| 91免费版在线| 欧美性生活久久| 欧美色欧美亚洲另类二区| 欧洲精品一区二区| 欧美在线观看你懂的| 色欧美88888久久久久久影院| av高清久久久| 日本道色综合久久| 欧美日韩精品一区二区天天拍小说 | 91成人网在线| 日本乱人伦aⅴ精品| 欧美色网站导航| 欧美一区二区大片| 欧美成人精品福利| 国产亚洲欧美日韩日本| 国产精品久久久久久久久久免费看| 中文字幕精品一区| 亚洲精品视频在线| 亚洲成人精品影院| 看电影不卡的网站| 成人黄色电影在线| 日本韩国欧美一区| 日韩视频免费直播| 国产欧美一区视频| 一区二区在线观看免费| 日韩二区在线观看| 国产99久久久国产精品潘金| www.99精品| 欧美三级视频在线观看| 日韩欧美在线观看一区二区三区| 337p粉嫩大胆色噜噜噜噜亚洲| 国产午夜精品久久| 一区二区三区在线观看动漫| 丝瓜av网站精品一区二区| 国产一区二区在线观看免费 | 一本一道综合狠狠老| 8x福利精品第一导航| 久久亚洲私人国产精品va媚药| 中文一区一区三区高中清不卡| 亚洲最大成人网4388xx| 国产在线一区观看| 在线观看视频欧美| 久久精品视频一区二区三区| 亚洲精品高清在线| 狠狠色丁香久久婷婷综| 91影视在线播放| 欧美大片在线观看一区| 成人欧美一区二区三区小说| 免费人成在线不卡| 91影院在线观看| 久久亚洲二区三区| 五月婷婷综合网| 岛国一区二区在线观看| 欧美另类高清zo欧美| 国产精品久久久久久久第一福利| 日韩av在线发布| 色婷婷久久99综合精品jk白丝| www一区二区| 亚洲成人福利片| av中文字幕不卡| 精品黑人一区二区三区久久| 亚洲午夜av在线| 成人的网站免费观看| 欧美成人a视频| 亚洲不卡av一区二区三区| 成人高清视频免费观看| 91精品国产乱码久久蜜臀| 亚洲免费看黄网站| 成+人+亚洲+综合天堂| 精品国产髙清在线看国产毛片| 亚洲一区二区偷拍精品| 99热这里都是精品| 久久久亚洲午夜电影| 免费观看久久久4p| 欧美精品久久久久久久多人混战| 亚洲天堂免费在线观看视频| 国产成都精品91一区二区三| 欧美一区二区日韩| 日韩影院在线观看| 欧美日韩国产一级| 亚洲伊人色欲综合网| 99这里只有久久精品视频| 久久综合一区二区| 久久99国产精品久久99果冻传媒| 9191久久久久久久久久久| 亚洲国产一区在线观看| 99精品黄色片免费大全| 国产精品白丝在线| 99久久国产综合精品女不卡| 日本一区二区三区久久久久久久久不| 激情文学综合丁香| 欧美精品一区二区三| 精品一区二区三区免费观看| 日韩一区二区影院| 久久av老司机精品网站导航| 91精品国产综合久久婷婷香蕉| 亚洲国产精品自拍| 5月丁香婷婷综合| 日韩av一区二| 日韩精品最新网址| 国产麻豆视频一区| 国产欧美精品一区aⅴ影院| 国产成人午夜99999| 中文字幕欧美国产| 91婷婷韩国欧美一区二区| ...av二区三区久久精品| 色菇凉天天综合网| 一区二区三区中文字幕| 欧美色视频在线| 日韩成人dvd| 久久久综合精品| av电影天堂一区二区在线观看| 国产精品久久毛片a| 91久久精品一区二区三区| 五月综合激情婷婷六月色窝| 日韩欧美另类在线| 国产乱人伦偷精品视频不卡| 国产精品久久三| 欧美三级乱人伦电影| 另类小说视频一区二区| 久久美女艺术照精彩视频福利播放 | 欧美高清精品3d| 激情av综合网| 日韩理论片中文av| 欧美巨大另类极品videosbest| 日韩1区2区3区| 欧美激情一区二区三区不卡| 一本久道久久综合中文字幕| 五月婷婷久久综合| 国产欧美一区二区在线| 欧美在线不卡一区| 精品一区二区三区免费毛片爱| 国产精品国产三级国产普通话蜜臀| 欧美在线影院一区二区| 麻豆国产欧美日韩综合精品二区| 国产偷国产偷精品高清尤物| 91黄色在线观看| 国产呦萝稀缺另类资源| 国产精品福利电影一区二区三区四区| 欧美性极品少妇| 国产精品一级片| 亚洲愉拍自拍另类高清精品| 日韩女优av电影| 91年精品国产| 国产资源在线一区| 亚洲成人www| 国产精品视频一二三区 | 欧美一级欧美三级| 99久久精品免费看| 看国产成人h片视频| 亚洲精品高清在线| 欧美激情自拍偷拍| 在线电影欧美成精品| 99久久国产免费看| 国精产品一区一区三区mba视频| 亚洲欧美日韩综合aⅴ视频| 日韩精品一区在线| 欧美午夜精品一区二区三区|