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

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

?? cell.java

?? 有關對pdf操作的代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Id: Cell.java 3178 2008-03-19 17:34:05Z blowagie $ * $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/ */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;	}		/**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
偷拍自拍另类欧美| 国产一区亚洲一区| 狠狠色丁香久久婷婷综| 一本到不卡免费一区二区| 欧美videos中文字幕| 一区二区三区在线不卡| 国产精品18久久久久久久久久久久| 91一区二区三区在线观看| 精品国产污网站| 亚洲成人在线免费| 色综合亚洲欧洲| 中文字幕av资源一区| 精品一区二区综合| 777亚洲妇女| 午夜久久久久久久久久一区二区| 成人91在线观看| 久久天堂av综合合色蜜桃网| 麻豆成人在线观看| 欧美精品v国产精品v日韩精品| 亚洲精品乱码久久久久久黑人| 成人免费视频视频| 国产嫩草影院久久久久| 国产精品乡下勾搭老头1| 日韩天堂在线观看| 色综合久久久久综合体桃花网| 久久久精品tv| 狠狠色狠狠色合久久伊人| 欧美电影精品一区二区| 美女视频网站久久| 日韩美女天天操| 久久99国产精品免费网站| 日韩你懂的在线观看| 免费在线观看一区二区三区| 91精品国产美女浴室洗澡无遮挡| 午夜精品福利久久久| 欧美精品久久久久久久多人混战 | 国产精品久久精品日日| 狠狠色综合色综合网络| 久久综合色播五月| 国产白丝精品91爽爽久久| 国产精品久久久久毛片软件| 成人av动漫网站| 亚洲欧美日韩电影| 欧美精品成人一区二区三区四区| 麻豆精品视频在线观看免费| 精品黑人一区二区三区久久| 国产福利精品一区| 亚洲色图欧洲色图| 欧美日韩国产高清一区| 国产一区三区三区| 亚洲素人一区二区| 欧美精品xxxxbbbb| 国产成人综合亚洲91猫咪| 国产精品视频一区二区三区不卡| 99久久综合国产精品| 亚洲国产另类av| 精品国产一区二区三区四区四| 不卡的av在线| 日本最新不卡在线| 欧美激情中文字幕一区二区| 欧美在线高清视频| 国产麻豆精品95视频| 亚洲一区在线视频观看| 亚洲精品在线免费观看视频| 不卡一区二区三区四区| 日韩高清在线不卡| 中日韩av电影| 69精品人人人人| 波多野结衣91| 免费观看一级欧美片| 中文字幕一区二区视频| 欧美女孩性生活视频| 国产福利一区在线| 五月天精品一区二区三区| 久久蜜桃av一区精品变态类天堂 | 国产精品久久精品日日| 欧美撒尿777hd撒尿| 国产一区二区不卡老阿姨| 亚洲欧美日韩国产综合| 亚洲精品一区二区三区四区高清| 色综合久久久久网| 韩国av一区二区三区| 午夜成人在线视频| 亚洲日穴在线视频| 国产无人区一区二区三区| 337p亚洲精品色噜噜| 色噜噜狠狠色综合欧洲selulu| 人人爽香蕉精品| 亚洲图片欧美色图| 最好看的中文字幕久久| 国产色一区二区| 日韩欧美国产综合一区| 4hu四虎永久在线影院成人| 99久久er热在这里只有精品15| 国产一区二区三区在线观看精品| 青青青爽久久午夜综合久久午夜 | 欧美精品一二三区| 91亚洲精品久久久蜜桃| 丁香婷婷综合激情五月色| 精品一区二区综合| 久久国产精品99久久久久久老狼 | 91极品美女在线| 从欧美一区二区三区| 国产一区二区在线观看视频| 免费一区二区视频| 日韩中文字幕区一区有砖一区| 亚洲一区二区三区视频在线播放| 国产精品久久久久精k8| 国产精品久久久一本精品| 久久久综合九色合综国产精品| 欧美人妇做爰xxxⅹ性高电影| 91黄色免费版| 在线观看国产日韩| 精品视频在线看| 欧美日韩久久一区| 91精品国产综合久久精品麻豆| 欧美色图天堂网| 欧美人与禽zozo性伦| 精品污污网站免费看| 91精品视频网| 日韩精品一区二区三区在线播放 | 91丝袜美女网| 91一区在线观看| 欧美性欧美巨大黑白大战| 欧美日韩综合不卡| 欧美一激情一区二区三区| 日韩午夜av一区| 国产欧美日韩一区二区三区在线观看| 久久久国产精品不卡| 国产精品萝li| 亚洲最色的网站| 日韩中文字幕91| 国产精品自拍一区| 色欲综合视频天天天| 欧美乱熟臀69xxxxxx| 精品精品欲导航| 国产精品久久影院| 午夜精品一区二区三区免费视频| 青青草精品视频| 成人污污视频在线观看| 在线亚洲+欧美+日本专区| 日韩精品一区二区三区swag | 制服.丝袜.亚洲.另类.中文| 日韩一区二区三区四区五区六区| 欧美精品一区视频| 亚洲欧洲中文日韩久久av乱码| 亚洲一区免费在线观看| 久久99精品国产麻豆婷婷| 国产.欧美.日韩| 欧美日本视频在线| 日本一区二区三区久久久久久久久不| 亚洲日本乱码在线观看| 奇米色一区二区三区四区| 成人午夜精品在线| 91精品在线一区二区| 国产精品国产a级| 水野朝阳av一区二区三区| 国产成人精品免费在线| 精品视频一区二区不卡| 欧美国产精品专区| 日韩一区精品字幕| www.色精品| 精品美女一区二区| 亚洲国产sm捆绑调教视频 | 麻豆视频观看网址久久| 成人精品免费看| 日韩亚洲欧美一区| 亚洲伊人伊色伊影伊综合网| 国产成人一级电影| 精品伦理精品一区| 午夜成人免费电影| 91免费版在线| 欧美激情一区三区| 国产在线不卡一区| 日韩一区二区中文字幕| eeuss国产一区二区三区| 日韩欧美电影一二三| 亚洲电影中文字幕在线观看| gogogo免费视频观看亚洲一| 精品剧情在线观看| 五月天激情综合| 欧美午夜片在线看| 亚洲男人的天堂一区二区| 岛国精品在线观看| 久久婷婷久久一区二区三区| 九九视频精品免费| 91精品国产色综合久久ai换脸| 一区二区三区在线免费观看| 成人福利视频在线| 欧美v国产在线一区二区三区| 视频一区中文字幕国产| 欧美人狂配大交3d怪物一区| 亚洲午夜免费福利视频| 欧美性受xxxx黑人xyx性爽| 亚洲男人天堂av网| 成人在线综合网站| 国产精品理论片在线观看| 成人h动漫精品| 亚洲精品免费一二三区| 在线观看国产91|