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

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

?? cell.java

?? 處理PDF
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * $Id: Cell.java 3373 2008-05-12 16:21:24Z xlv $ * * 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/ */package com.lowagie.text;import java.util.ArrayList;import java.util.Iterator;import com.lowagie.text.pdf.PdfPCell;/** * A <CODE>Cell</CODE> is a <CODE>Rectangle</CODE> containing other * <CODE>Element</CODE>s. * <P> * A <CODE>Cell</CODE> must be added to a <CODE>Table</CODE>. * The <CODE>Table</CODE> will place the <CODE>Cell</CODE> in * a <CODE>Row</CODE>. * <P> * Example: * <BLOCKQUOTE><PRE> * Table table = new Table(3); * table.setBorderWidth(1); * table.setBorderColor(new Color(0, 0, 255)); * table.setCellpadding(5); * table.setCellspacing(5); * <STRONG>Cell cell = new Cell("header");</STRONG> * <STRONG>cell.setHeader(true);</STRONG> * <STRONG>cell.setColspan(3);</STRONG> * table.addCell(cell); * <STRONG>cell = new Cell("example cell with colspan 1 and rowspan 2");</STRONG> * <STRONG>cell.setRowspan(2);</STRONG> * <STRONG>cell.setBorderColor(new Color(255, 0, 0));</STRONG> * table.addCell(cell); * table.addCell("1.1"); * table.addCell("2.1"); * table.addCell("1.2"); * table.addCell("2.2"); * </PRE></BLOCKQUOTE> * * @see		Rectangle * @see		Element * @see		Table * @see		Row */public class Cell extends Rectangle implements TextElementArray {	// membervariables	/**	 * The <CODE>ArrayList</CODE> of <CODE>Element</CODE>s	 * that are part of the content of the Cell.	 */	protected ArrayList arrayList = null;	/** The horizontal alignment of the cell content. */	protected int horizontalAlignment = Element.ALIGN_UNDEFINED;	/** The vertical alignment of the cell content. */	protected int verticalAlignment = Element.ALIGN_UNDEFINED;	/**	 * The width of the cell as a String.	 * It can be an absolute value "100" or a percentage "20%".	 */	protected float width;	protected boolean percentage = false;	/** The colspan of the cell. */	protected int colspan = 1;	/** The rowspan of the cell. */	protected int rowspan = 1;	/** The leading of the content inside the cell. */	float leading = Float.NaN;	/** Is this <CODE>Cell</CODE> a header? */	protected boolean header;	/**	 * Maximum number of lines allowed in the cell.  	 * The default value of this property is not to limit the maximum number of lines	 * (contributed by dperezcar@fcc.es)	 */	protected int maxLines = Integer.MAX_VALUE;		/**	 * If a truncation happens due to the maxLines property, then this text will 	 * be added to indicate a truncation has happened.	 * Default value is null, and means avoiding marking the truncation.  	 * A useful value of this property could be e.g. "..."	 * (contributed by dperezcar@fcc.es)	 */	String showTruncation;    /**     * Indicates that the largest ascender height should be used to determine the     * height of the first line.  Note that this only has an effect when rendered     * to PDF.  Setting this to true can help with vertical alignment problems.     */    protected boolean useAscender = false;    /**     * Indicates that the largest descender height should be added to the height of     * the last line (so characters like y don't dip into the border).   Note that     * this only has an effect when rendered to PDF.     */    protected boolean useDescender = false;    /**     * Adjusts the cell contents to compensate for border widths.  Note that     * this only has an effect when rendered to PDF.     */    protected boolean useBorderPadding;    	/** Does this <CODE>Cell</CODE> force a group change? */	protected boolean groupChange = true;	// constructors    /** Constructs an empty <CODE>Cell</CODE>. */	public Cell() {		// creates a Rectangle with BY DEFAULT a border of 0.5		super(0, 0, 0, 0);		setBorder(UNDEFINED);		setBorderWidth(0.5f);		// initializes the arraylist		arrayList = new ArrayList();	}	/**	 * Constructs an empty <CODE>Cell</CODE> (for internal use only).	 *	 * @param   dummy   a dummy value	 */	public Cell(boolean dummy) {		this();		arrayList.add(new Paragraph(0));	}	/**	 * Constructs a <CODE>Cell</CODE> with a certain content.<p>	 * The <CODE>String</CODE> will be converted into a <CODE>Paragraph</CODE>.	 * @param	content		a <CODE>String</CODE>	 */	public Cell(String content) {		this();		try {			addElement(new Paragraph(content));		}		catch(BadElementException bee) {		}	}	/**	 * Constructs a <CODE>Cell</CODE> with a certain <CODE>Element</CODE>.<p>	 * if the element is a <CODE>ListItem</CODE>, <CODE>Row</CODE> or	 * <CODE>Cell</CODE>, an exception will be thrown.	 *	 * @param	element		the element	 * @throws	BadElementException when the creator was called with a <CODE>ListItem</CODE>, <CODE>Row</CODE> or <CODE>Cell</CODE>	 */	public Cell(Element element) throws BadElementException {		this(); 		if(element instanceof Phrase) {			setLeading(((Phrase)element).getLeading());		}		addElement(element);	}	// 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;		}	}	/**	 * Gets the type of the text element.	 *	 * @return	a type	 */	public int type() {		return Element.CELL;	}	/**	 * Gets all the chunks in this element.	 *	 * @return	an <CODE>ArrayList</CODE>	 */	public ArrayList getChunks() {		ArrayList tmp = new ArrayList();		for (Iterator i = arrayList.iterator(); i.hasNext(); ) {			tmp.addAll(((Element) i.next()).getChunks());		}		return tmp;	}	// Getters and setters	/**     * Gets the horizontal alignment.     *     * @return	a value     */   	public int getHorizontalAlignment() {   		return horizontalAlignment;   	}	/**	 * Sets the horizontal alignment.	 * @param	value	the new value	 */	public void setHorizontalAlignment(int value) {		horizontalAlignment = value;	}	/**	 * Sets the alignment of this cell.	 * This methods allows you to set the alignment as a String.	 * @param	alignment		the new alignment as a <CODE>String</CODE>	 */	public void setHorizontalAlignment(String alignment) {		setHorizontalAlignment(ElementTags.alignmentValue(alignment));	}	/**	 * Gets the vertical alignment.	 * @return	a value	 */	public int getVerticalAlignment() {		return verticalAlignment;	}	/**	 * Sets the vertical alignment.	 * @param	value	the new value	 */	public void setVerticalAlignment(int value) {		verticalAlignment = value;	}	/**	 * Sets the alignment of this paragraph.	 *	 * @param	alignment		the new alignment as a <CODE>String</CODE>	 */	public void setVerticalAlignment(String alignment) {		setVerticalAlignment(ElementTags.alignmentValue(alignment));	}	/**	 * Sets the width.	 *	 * @param	value	the new value	 */	public void setWidth(float value) {		this.width = value;	}		/**	 * Sets the width.	 * It can be an absolute value "100" or a percentage "20%"	 *	 * @param	value	the new value	 */	public void setWidth(String value) {		if (value.endsWith("%")) {			value = value.substring(0, value.length() - 1);			percentage = true;		}		width = Integer.parseInt(value);	}		/**	 * Gets the width.	 */	public float getWidth() {		return width;	}	/**	 * Gets the width as a String.	 *	 * @return	a value	 */	public String getWidthAsString() {		String w = String.valueOf(width);		if (w.endsWith(".0")) w = w.substring(0, w.length() - 2);		if (percentage) w += "%";		return w;	}	/**	 * Sets the colspan.	 *	 * @param	value	the new value	 */	public void setColspan(int value) {		colspan = value;	}	/**	 * Gets the colspan.	 * @return	a value	 */	public int getColspan() {		return colspan;	}	/**	 * Sets the rowspan.	 *	 * @param	value	the new value	 */	public void setRowspan(int value) {		rowspan = value;	}	/**	 * Gets the rowspan.	 * @return	a value	 */	public int getRowspan() {		return rowspan;	}	/**	 * Sets the leading.	 *	 * @param	value	the new value	 */	public void setLeading(float value) {		leading = value;	}	/**	 * Gets the leading.	 *	 * @return	a value	 */	public float getLeading() {		if (Float.isNaN(leading)) {			return 16;		}		return leading;	}	/**	 * Sets header.	 *	 * @param	value	the new value	 */	public void setHeader(boolean value) {		header = value;	}	/**	 * Is this <CODE>Cell</CODE> a header?	 *	 * @return	a value	 */	public boolean isHeader() {		return header;	}		/**	 * Setter for maxLines

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品99久久久**| 亚洲国产一二三| 日韩一区欧美小说| 亚洲综合成人在线视频| 久久国内精品视频| 成人99免费视频| 制服丝袜av成人在线看| 亚洲国产精品激情在线观看| 亚洲线精品一区二区三区 | 日本精品裸体写真集在线观看| 欧美日韩在线一区二区| 26uuu国产一区二区三区| 亚洲三级小视频| 精品一区二区三区免费毛片爱 | 亚洲蜜臀av乱码久久精品| 午夜精品福利一区二区三区av | 久久激情五月激情| 成人毛片老司机大片| 欧美久久久影院| 国产精品久久毛片| 热久久久久久久| av电影天堂一区二区在线| 91精品欧美综合在线观看最新| 国产欧美一区二区精品婷婷| 亚洲bt欧美bt精品| 高清成人在线观看| 在线成人av网站| 综合中文字幕亚洲| 经典三级视频一区| 欧美日韩在线直播| 亚洲手机成人高清视频| 精品一区二区三区免费播放| 欧美色大人视频| 136国产福利精品导航| 国内精品国产成人| 欧美精品色一区二区三区| 亚洲三级在线免费观看| 国产成人一区在线| 日韩精品中文字幕一区| 亚洲国产三级在线| 99久久99久久精品免费看蜜桃| 欧美成人国产一区二区| 亚洲综合久久av| 91在线精品秘密一区二区| 久久久久88色偷偷免费 | 精品国产乱码久久久久久牛牛| 亚洲一区二区偷拍精品| 99国产精品一区| 久久综合色之久久综合| 免费av网站大全久久| 欧美日韩aaa| 夜夜操天天操亚洲| 色综合色综合色综合| 国产精品女人毛片| 国产一区视频网站| 欧美精品一区二区在线播放| 免费一级欧美片在线观看| 欧美日韩精品系列| 亚洲与欧洲av电影| 一本大道久久精品懂色aⅴ | 精品视频1区2区3区| 亚洲人成网站精品片在线观看| 成人爽a毛片一区二区免费| 久久久精品国产免大香伊| 美腿丝袜亚洲三区| 日韩一区二区三区电影| 免费观看在线综合| 精品少妇一区二区三区在线视频| 日本一区中文字幕| 日韩免费看网站| 毛片不卡一区二区| 欧美成人高清电影在线| 国产综合久久久久影院| 久久久一区二区三区捆绑**| 国产麻豆精品视频| 久久天天做天天爱综合色| 国产一区二区三区综合| 久久你懂得1024| 国产成人免费视频| 中文字幕在线一区免费| 成人午夜免费av| 欧美三级电影精品| 午夜精品福利一区二区三区av| 欧美顶级少妇做爰| 看片网站欧美日韩| 久久免费的精品国产v∧| 成人午夜在线播放| 亚洲人成网站色在线观看| 欧美性大战xxxxx久久久| 视频在线观看一区| 欧美精品一区视频| 99国产精品国产精品久久| 亚洲一线二线三线视频| 欧美一卡二卡三卡四卡| 国内成人精品2018免费看| 中文字幕欧美日韩一区| 色综合久久中文综合久久牛| 亚洲成人av一区二区三区| 精品免费视频.| 成人av中文字幕| 午夜av一区二区三区| 久久综合狠狠综合久久综合88| av成人免费在线| 亚洲成人av免费| 久久久久99精品一区| 色偷偷久久一区二区三区| 水野朝阳av一区二区三区| 久久色视频免费观看| 97精品久久久午夜一区二区三区 | 这里只有精品电影| 激情综合色播五月| 国产精品久久毛片av大全日韩| 精品视频一区 二区 三区| 国产精品自在在线| 亚洲在线免费播放| 2017欧美狠狠色| 在线这里只有精品| 国产综合久久久久久久久久久久| 亚洲男人的天堂一区二区| 日韩欧美精品在线视频| 99国产精品久久| 毛片不卡一区二区| 亚洲欧美偷拍卡通变态| 日韩欧美自拍偷拍| 91欧美激情一区二区三区成人| 免费一区二区视频| 欧美日韩在线综合| 国产成人亚洲综合a∨婷婷 | 欧美一区二区在线免费播放| 国产成人在线观看| 日韩二区在线观看| 一区精品在线播放| 日韩美女在线视频| 欧美主播一区二区三区美女| 国产成人免费在线观看| 日韩电影一二三区| 亚洲欧美一区二区不卡| www国产成人| 4438x亚洲最大成人网| 99久久777色| 国产黄色精品网站| 日韩精品一二三区| 一区二区三区日韩欧美| 国产日韩综合av| 日韩精品中文字幕在线一区| 欧美伊人精品成人久久综合97| 成人毛片老司机大片| 精品一区二区在线看| 日韩精品视频网| 亚洲与欧洲av电影| 亚洲日本一区二区三区| 久久久精品国产99久久精品芒果| 制服丝袜一区二区三区| 色婷婷综合久久久中文一区二区| 国产九九视频一区二区三区| 麻豆精品一区二区三区| 亚洲成人免费看| 亚洲综合一二区| 亚洲欧美日韩综合aⅴ视频| 亚洲国产精品国自产拍av| 精品国产凹凸成av人导航| 欧美精品久久一区| 欧美日韩国产高清一区| 91福利区一区二区三区| 99久久er热在这里只有精品66| 国产成人综合在线播放| 国产一区二区美女诱惑| 精品一区二区三区蜜桃| 久久精品国产亚洲高清剧情介绍| 亚洲成人av一区二区三区| 亚洲一区在线观看免费观看电影高清 | 亚洲精品写真福利| 亚洲视频一区二区在线| 国产精品国产三级国产普通话99 | 91在线视频网址| 色综合夜色一区| 91美女福利视频| 91在线观看免费视频| 91在线视频免费观看| 色综合天天在线| 91麻豆国产精品久久| 91首页免费视频| 91蜜桃视频在线| 欧美亚洲综合色| 欧美日韩国产一二三| 777久久久精品| 日韩免费视频线观看| 26uuu久久综合| 国产欧美一区二区三区网站 | 一本久久a久久免费精品不卡| 91女神在线视频| 欧美三电影在线| 91天堂素人约啪| 国产精品996| www.日韩精品| 在线视频国内一区二区| 69av一区二区三区| 精品国产凹凸成av人网站| 国产人妖乱国产精品人妖| 亚洲欧美在线视频|