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


Java JRCrosstabCell.getColumnTotalGroup方法代码示例

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


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

示例1: JRBaseCrosstabCell

import net.sf.jasperreports.crosstabs.JRCrosstabCell; //导入方法依赖的package包/类
public JRBaseCrosstabCell(JRCrosstabCell crosstabCell, JRBaseObjectFactory factory)
{
	factory.put(crosstabCell, this);
	
	width = crosstabCell.getWidth();
	height = crosstabCell.getHeight();
	
	rowTotalGroup = crosstabCell.getRowTotalGroup();
	columnTotalGroup = crosstabCell.getColumnTotalGroup();
	
	contents = factory.getCell(crosstabCell.getContents());
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:JRBaseCrosstabCell.java

示例2: removeColumnGroup

import net.sf.jasperreports.crosstabs.JRCrosstabCell; //导入方法依赖的package包/类
/**
 * Removes a column group.
 * 
 * @param groupName the group name
 * @return the removed group
 */
public JRCrosstabColumnGroup removeColumnGroup(String groupName)
{
	JRCrosstabColumnGroup removed = null;
	
	Integer idx = columnGroupsMap.remove(groupName);
	if (idx != null)
	{
		removed = columnGroups.remove(idx.intValue());
		
		for (ListIterator<JRCrosstabColumnGroup> it = columnGroups.listIterator(idx.intValue()); it.hasNext();)
		{
			JRCrosstabColumnGroup group = it.next();
			columnGroupsMap.put(group.getName(), Integer.valueOf(it.previousIndex()));
		}
		
		for (Iterator<JRCrosstabCell> it = cellsList.iterator(); it.hasNext();)
		{
			JRCrosstabCell cell = it.next();
			String columnTotalGroup = cell.getColumnTotalGroup();
			if (columnTotalGroup != null && columnTotalGroup.equals(groupName))
			{
				it.remove();
				cellsMap.remove(new Pair<String,String>(cell.getRowTotalGroup(), columnTotalGroup));
				getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_CELLS, cell, -1);
			}
		}
		
		removeColGroupVars(removed);
		
		getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_COLUMN_GROUPS, removed, idx.intValue());
	}
	
	return removed;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:41,代码来源:JRDesignCrosstab.java

示例3: addDetailCellV

import net.sf.jasperreports.crosstabs.JRCrosstabCell; //导入方法依赖的package包/类
private void addDetailCellV(JRCrosstabCell[] rowcells, Guide west, Guide east, String name) {
	for (int j = 0; j < rowcells.length; j++) {
		JRCrosstabCell rc = rowcells[j];
		if (rc == null)
			continue;
		String ctg = rc.getColumnTotalGroup();
		if ((ctg != null && ctg.equals(name)) || (ctg == null && name == null)) {
			CrosstabCell cc = createCell((JRDesignCellContents) rc.getContents(), JRCrosstabOrigin.TYPE_DATA_CELL);
			west.addEast(cc);
			east.addWest(cc);
			break;
		}
	}
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:CrosstabMatrix.java

示例4: setCellColumn

import net.sf.jasperreports.crosstabs.JRCrosstabCell; //导入方法依赖的package包/类
public void setCellColumn(int x, String colTotal) {
	JRCrosstabCell[][] cells = crosstab.getCells();

	for (int i = cells.length - 1; i >= 0; i--) {
		for (int j = cells[i].length - 1; j >= 0; j--) {
			JRCrosstabCell jrCrosstabCell = cells[i][j];
			if (jrCrosstabCell != null
					&& ((jrCrosstabCell.getColumnTotalGroup() != null && jrCrosstabCell.getColumnTotalGroup().equals(colTotal)) || (colTotal == null && jrCrosstabCell.getColumnTotalGroup() == null))) {
				Rectangle r = matrix.getBounds(new CrosstabCell((JRDesignCellContents) jrCrosstabCell.getContents()));
				r.setLocation(x, r.y);
			}
		}
	}
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:CrosstabManager.java


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