當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。