当前位置: 首页>>代码示例>>Java>>正文


Java Table.getWidths方法代码示例

本文整理汇总了Java中com.lowagie.text.Table.getWidths方法的典型用法代码示例。如果您正苦于以下问题:Java Table.getWidths方法的具体用法?Java Table.getWidths怎么用?Java Table.getWidths使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.lowagie.text.Table的用法示例。


在下文中一共展示了Table.getWidths方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PdfTable

import com.lowagie.text.Table; //导入方法依赖的package包/类
/**
 * Constructs a <CODE>PdfTable</CODE>-object.
 *
 * @param	table	a <CODE>Table</CODE>
 * @param	left	the left border on the page
 * @param	right	the right border on the page
 * @param	top		the start position of the top of the table
 * @since	a parameter of this method has been removed in iText 2.0.8
 */
   
PdfTable(Table table, float left, float right, float top) {
	// constructs a Rectangle (the bottom value will be changed afterwards)
	super(left, top, right, top);
	this.table = table;
       table.complete();
       
	// copying the attributes from class Table
       cloneNonPositionParameters(table);

	this.columns = table.getColumns();
	positions = table.getWidths(left, right - left);
       
	// initialization of some parameters
	setLeft(positions[0]);
	setRight(positions[positions.length - 1]);
	
	headercells = new ArrayList();
	cells = new ArrayList();

	updateRowAdditionsInternal();
}
 
开发者ID:albfernandez,项目名称:itext2,代码行数:32,代码来源:PdfTable.java

示例2: PdfTable

import com.lowagie.text.Table; //导入方法依赖的package包/类
/**
 * Constructs a <CODE>PdfTable</CODE>-object.
 *
 * @param	table	a <CODE>Table</CODE>
 * @param	left	the left border on the page
 * @param	right	the right border on the page
 * @param	top		the start position of the top of the table
 * @param	supportUpdateRowAdditions	
 * 					if true, table rows will be deleted after building the PdfTable table, 
 * 					in order to preserve memory and detect future row additions
 */
   
PdfTable(Table table, float left, float right, float top, boolean supportUpdateRowAdditions) {
	// constructs a Rectangle (the bottomvalue will be changed afterwards)
	super(left, top, right, top);
	this.table = table;
       table.complete();

	// copying the attributes from class Table
       cloneNonPositionParameters(table);

	this.columns = table.columns();
	positions = table.getWidths(left, right - left);
       
	// initialisation of some parameters
	setLeft(positions[0]);
	setRight(positions[positions.length - 1]);
	
	headercells = new ArrayList();
	cells = new ArrayList();

	updateRowAdditionsInternal();
	if (supportUpdateRowAdditions) {
		table.deleteAllRows();
	}
}
 
开发者ID:MesquiteProject,项目名称:MesquiteArchive,代码行数:37,代码来源:PdfTable.java


注:本文中的com.lowagie.text.Table.getWidths方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。