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

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

?? cell.java

?? 源碼包含生成 PDF 和 HTML 的類庫
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲免费视频| 亚洲成人自拍偷拍| 久久精品72免费观看| 色综合久久88色综合天天免费| 精品国产亚洲一区二区三区在线观看| 亚洲国产精品一区二区www| 在线观看亚洲专区| 一区二区高清免费观看影视大全| 亚洲一级电影视频| 在线播放视频一区| 亚洲成av人片一区二区三区| 日本二三区不卡| 亚洲成人激情自拍| 欧美精品在线观看播放| 亚洲国产精品尤物yw在线观看| 日本韩国视频一区二区| 欧美激情一区二区三区在线| 国产成人免费视频网站高清观看视频| 91精品综合久久久久久| 免费观看一级特黄欧美大片| 日韩你懂的在线观看| 黑人精品欧美一区二区蜜桃| 亚洲精品在线观| 国产一二精品视频| 亚洲色图19p| 欧美私模裸体表演在线观看| 日韩成人精品在线观看| 欧亚洲嫩模精品一区三区| 亚洲毛片av在线| 99v久久综合狠狠综合久久| 亚洲男人的天堂在线aⅴ视频| 欧美亚洲综合在线| 激情五月激情综合网| ㊣最新国产の精品bt伙计久久| 欧美日韩一级大片网址| 韩国精品主播一区二区在线观看| 国产日产欧美精品一区二区三区| 色综合天天综合| 韩国女主播成人在线观看| 国产精品免费久久| 日韩欧美一级二级三级| 国产精品123区| 日韩中文欧美在线| 亚洲欧美电影一区二区| 欧美日韩mp4| 97se狠狠狠综合亚洲狠狠| 精品一区二区在线播放| 性欧美大战久久久久久久久| 欧美国产97人人爽人人喊| 91麻豆精品国产91| 欧美精品aⅴ在线视频| 在线亚洲欧美专区二区| 成人av资源下载| 国产一区二区美女诱惑| 五月婷婷另类国产| 亚洲欧美成人一区二区三区| 久久网这里都是精品| 日韩欧美国产一区在线观看| 欧美日韩精品福利| 91一区二区在线观看| 97久久精品人人做人人爽| eeuss影院一区二区三区| 成人黄色网址在线观看| 99天天综合性| 欧美在线免费播放| 欧美挠脚心视频网站| 日韩一区二区三区av| 精品少妇一区二区| 欧美激情一区二区三区全黄| 最新日韩av在线| 一区二区成人在线视频| 日韩精品高清不卡| 激情综合网av| 91网站视频在线观看| 91久久精品网| 欧美xxxx在线观看| 亚洲国产高清不卡| 亚洲大尺度视频在线观看| 亚洲国产一区二区在线播放| 一区二区三区在线观看国产| 日韩国产精品久久| 国产乱码精品1区2区3区| voyeur盗摄精品| 欧美视频在线观看一区| 精品久久久久久亚洲综合网 | 久久久久久久性| 国产精品久久看| 老司机精品视频在线| 91在线视频观看| 日韩精品一区二区三区在线| 国产精品嫩草影院av蜜臀| 午夜亚洲国产au精品一区二区| 国产最新精品免费| 欧美日免费三级在线| 久久久美女艺术照精彩视频福利播放| 亚洲免费视频成人| 国产成人啪午夜精品网站男同| 欧美精品在欧美一区二区少妇| 久久久不卡网国产精品一区| 夜夜嗨av一区二区三区网页| 高清在线不卡av| 日韩欧美一二三四区| 日韩国产在线观看一区| 在线观看日韩电影| 亚洲日本护士毛茸茸| 国产精品456| 久久一区二区视频| 精品亚洲国产成人av制服丝袜| 欧美日韩久久一区| 亚洲国产精品一区二区久久| 91久久久免费一区二区| 免费观看一级欧美片| 91免费国产视频网站| 亚洲欧美怡红院| 色狠狠桃花综合| 亚洲已满18点击进入久久| 欧美性猛片xxxx免费看久爱| 一区二区三区四区中文字幕| 国产ts人妖一区二区| 国产精品大尺度| 99视频精品在线| 亚洲精品成人悠悠色影视| 在线视频中文字幕一区二区| 午夜伦理一区二区| 色综合天天做天天爱| 亚洲午夜久久久久久久久电影网| 韩国视频一区二区| 日本一区二区免费在线 | 欧美电影免费观看完整版| 亚洲国产精品一区二区尤物区| 欧美日韩久久一区二区| 蜜臀精品久久久久久蜜臀| 国产精品美女视频| 91精品啪在线观看国产60岁| 国产91精品欧美| 亚洲超丰满肉感bbw| 国产三级一区二区三区| 欧美视频第二页| 高清成人免费视频| 久久99精品久久久久婷婷| 亚洲精品一二三区| 久久精品日韩一区二区三区| 在线观看一区二区精品视频| 国产综合久久久久久久久久久久| 亚洲欧美日韩国产成人精品影院| 欧美精品1区2区| 欧美伊人精品成人久久综合97| 国产精品911| 国产精品一区专区| 日韩专区一卡二卡| 亚洲一区在线观看免费| 欧美一区在线视频| 99综合影院在线| 成人sese在线| 91蜜桃在线观看| proumb性欧美在线观看| 成人av影院在线| 99久久99久久精品国产片果冻| 亚洲高清免费一级二级三级| 一二三区精品视频| 亚洲国产日韩综合久久精品| 日韩精品一区第一页| 蜜臀av性久久久久av蜜臀妖精| 美女看a上一区| 国产老妇另类xxxxx| 波多野结衣在线一区| 97se亚洲国产综合自在线| 欧美日韩在线电影| 精品欧美乱码久久久久久1区2区| 777久久久精品| 欧美一二三四在线| 亚洲视频一区在线观看| 天堂在线一区二区| 国产一区二区三区av电影 | 亚洲.国产.中文慕字在线| 天堂久久久久va久久久久| 久久99日本精品| 成人激情免费电影网址| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 亚洲欧美一区二区三区久本道91| 久久久久久久综合狠狠综合| 一区二区中文视频| 看电影不卡的网站| 日本黄色一区二区| 国产精品视频免费看| 亚洲国产成人porn| 色综合久久久久综合体桃花网| 欧美成人乱码一区二区三区| 一区二区三区欧美| 丁香天五香天堂综合| 欧美精品久久99久久在免费线| 日韩理论片一区二区| 国产精品一二三| 日韩欧美国产精品| 青青青爽久久午夜综合久久午夜| 99视频一区二区三区| 亚洲欧美在线观看| 东方欧美亚洲色图在线| 日韩欧美一二区| 精品一区二区国语对白|