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

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

?? cell.java

?? 處理PDF
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美一区二区三区精品久久 | 色拍拍在线精品视频8848| 欧美性色综合网| 久久综合九色综合97婷婷女人| 亚洲精品综合在线| 国产一区视频导航| 777色狠狠一区二区三区| 国产精品久久久久影院| 精品一区二区在线看| 欧美三级蜜桃2在线观看| 国产精品毛片高清在线完整版 | 欧美肥胖老妇做爰| 欧美高清一级片在线观看| 麻豆成人91精品二区三区| 欧美性淫爽ww久久久久无| 中文字幕欧美国产| 国产一区二区在线电影| 91精品国产欧美一区二区18| 亚洲美女免费在线| 99久久精品免费精品国产| 国产欧美一区二区精品性色超碰| 日韩av中文在线观看| 精品视频在线视频| 一区二区在线观看免费视频播放| av在线播放不卡| 国产精品久久久久久久久快鸭| 国产一区999| 久久精品一区四区| 国产伦精品一区二区三区视频青涩| 欧美一级欧美三级| 日韩电影在线一区| 91精品欧美一区二区三区综合在| 亚洲在线成人精品| 欧美日韩一区三区| 五月天激情综合| 在线91免费看| 久久精品国产在热久久| 欧美电影免费观看完整版| 另类欧美日韩国产在线| 国产精品成人在线观看| 成人av网址在线| 国产精品国模大尺度视频| jizzjizzjizz欧美| 亚洲免费观看高清在线观看| 91久久精品一区二区三| 亚洲成a人v欧美综合天堂下载| 欧美综合一区二区三区| 亚洲成人动漫精品| 日韩美一区二区三区| 久久av资源网| 中文字幕一区免费在线观看| 91国内精品野花午夜精品| 亚洲国产人成综合网站| 777奇米成人网| 国产精品中文欧美| 亚洲女同一区二区| 欧美日韩精品专区| 久久99国产精品免费网站| 中文一区一区三区高中清不卡| 99re热这里只有精品免费视频| 亚洲电影一区二区| 久久久亚洲欧洲日产国码αv| www.日韩av| 日韩av在线播放中文字幕| 久久久精品日韩欧美| 91免费在线看| 国产在线乱码一区二区三区| 最好看的中文字幕久久| 91精品国产色综合久久ai换脸| 国产福利精品导航| 婷婷久久综合九色综合绿巨人| 欧美成人乱码一区二区三区| 91性感美女视频| 久久av中文字幕片| 亚洲综合一区二区精品导航| 精品少妇一区二区三区免费观看 | 一本高清dvd不卡在线观看 | 亚洲欧洲av一区二区三区久久| 欧美性猛片xxxx免费看久爱| 激情小说欧美图片| 一区二区三区四区五区视频在线观看| 欧美videofree性高清杂交| 91在线看国产| 国产精品一品二品| 天涯成人国产亚洲精品一区av| 日本一区二区不卡视频| 日韩精品一区二区三区视频| 欧美视频第二页| 99久久综合国产精品| 国产一区二区主播在线| 亚洲大片精品永久免费| 1000部国产精品成人观看| 久久伊人中文字幕| 91麻豆精品国产91久久久使用方法| 成人av在线播放网址| 国模少妇一区二区三区| 日韩电影在线一区| 亚洲一区二区三区四区不卡| 中文字幕不卡一区| 国产日韩在线不卡| 久久久影视传媒| 日韩视频一区二区三区在线播放| 欧美在线|欧美| 亚洲国产精品激情在线观看| 欧美成人精品高清在线播放 | av午夜精品一区二区三区| 国产乱人伦精品一区二区在线观看| 午夜欧美电影在线观看| 夜夜精品浪潮av一区二区三区| 亚洲人快播电影网| 日韩一区欧美一区| 国产精品国产三级国产普通话三级 | 日韩精品欧美精品| 亚洲成人手机在线| 天天综合色天天| 婷婷久久综合九色综合绿巨人| 亚洲午夜激情网站| 亚洲二区在线视频| 天堂久久一区二区三区| 舔着乳尖日韩一区| 久久超碰97中文字幕| 国产一区中文字幕| 高清在线成人网| av一区二区久久| 婷婷丁香激情综合| 亚洲伊人色欲综合网| 国产日韩欧美麻豆| 国产精品久久久久久久岛一牛影视| 久久九九久久九九| 成人欧美一区二区三区黑人麻豆| 亚洲天堂中文字幕| 亚洲一级在线观看| 免费黄网站欧美| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲欧美色综合| 一区二区三区美女视频| 午夜a成v人精品| 国内精品自线一区二区三区视频| 国产传媒一区在线| 色婷婷综合久久久中文一区二区| 欧美丝袜第三区| 日韩精品一区二区三区蜜臀| 欧美国产综合一区二区| 一区二区三区在线视频免费 | 一区二区三区在线播放| 日韩高清国产一区在线| 国产成人免费视频精品含羞草妖精| 波多野结衣一区二区三区 | 欧美一区国产二区| 国产三级久久久| 天天综合天天做天天综合| 国产伦精品一区二区三区免费迷| 一本到高清视频免费精品| 日韩美女视频在线| ...xxx性欧美| 精品在线一区二区| 欧洲视频一区二区| 精品电影一区二区三区| 亚洲综合在线第一页| 国产精品一区免费在线观看| 在线免费亚洲电影| 国产欧美精品一区| 日本不卡视频在线| 色综合久久久久综合| 欧美电影免费观看高清完整版在线观看| 国产精品高潮呻吟| 久久99精品久久只有精品| 久久综合精品国产一区二区三区 | 91免费视频网址| 欧美mv和日韩mv国产网站| 亚洲图片你懂的| 国产久卡久卡久卡久卡视频精品| 欧美美女bb生活片| 国产精品久久久久国产精品日日| 久久狠狠亚洲综合| 欧美日韩一级片在线观看| 国产精品久久久久9999吃药| 激情文学综合插| 91麻豆精品国产91久久久久| 亚洲男帅同性gay1069| 粉嫩一区二区三区性色av| 欧美成人r级一区二区三区| 亚洲成av人片| 在线影院国内精品| 亚洲欧美日韩一区二区| 成人性生交大合| 久久精品亚洲精品国产欧美kt∨| 麻豆91免费看| 欧美一级高清片| 日本aⅴ精品一区二区三区| 欧美色倩网站大全免费| 亚洲主播在线观看| 一本久久a久久精品亚洲| 亚洲私人影院在线观看| 成人美女在线视频| 中文一区在线播放| 成人av动漫网站| 亚洲色图另类专区| 在线观看成人小视频| 亚洲午夜激情av|