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


Java IndicatorData类代码示例

本文整理汇总了Java中ro.nextreports.engine.exporter.util.IndicatorData的典型用法代码示例。如果您正苦于以下问题:Java IndicatorData类的具体用法?Java IndicatorData怎么用?Java IndicatorData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IndicatorData类属于ro.nextreports.engine.exporter.util包,在下文中一共展示了IndicatorData类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIndicatorCall

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
private String getIndicatorCall() {		
	boolean useParentWidth = zoom ? false : true;
	IndicatorData data = getModel().getObject();
	String v = String.valueOf(data.getValue());
	if (data.getPattern() != null) {			
		v = StringUtil.getValueAsString(data.getValue(), data.getPattern());
	}
	StringBuilder sb = new StringBuilder();		
	sb.append("indicatorP(\"").
	   append(get("canvas").getMarkupId()).
	   append("\",\"").append(toString(data.getColor())).
	   append("\",\"").append(data.getTitle()).
	   append("\",\"").append(data.getDescription()).
	   append("\",\"").append(data.getUnit()).
	   append("\",").append(data.getMin()).
	   append(",").append(data.getMax()).
	   append(",").append(v).
	   append(",").append(data.isShowMinMax()).
	   append(",").append(data.isShadow()).
	   append(",").append(zoom).
	   append(",").append(useParentWidth).
	   append(");");			
	return sb.toString();
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:25,代码来源:IndicatorHTML5Panel.java

示例2: createIndicator

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public static ReportLayout createIndicator(String column, IndicatorData data) {
	ReportLayout reportLayout = new ReportLayout();
	reportLayout.setReportType(ResultExporter.INDICATOR_TYPE);

	Band headerBand = reportLayout.getHeaderBand();
	List<List<BandElement>> headerElements = new ArrayList<List<BandElement>>();
	List<BandElement> firstHeaderRow = new ArrayList<BandElement>(4);
	List<BandElement> secondHeaderRow = new ArrayList<BandElement>(4);

	firstHeaderRow.add(new BandElement(data.getTitle()));
	firstHeaderRow.add(new BandElement(data.getDescription()));
	firstHeaderRow.add(new BandElement(data.getUnit()));
	firstHeaderRow.add(new BandElement(String.valueOf(data.isShadow())));
	
	secondHeaderRow.add(new BandElement(String.valueOf(data.getMin())));
	secondHeaderRow.add(new BandElement(String.valueOf(data.getMax())));
	secondHeaderRow.add(new BandElement(String.valueOf(data.isShowMinMax())));
	secondHeaderRow.add(new BandElement(""));
	
	headerElements.add(firstHeaderRow);
	headerElements.add(secondHeaderRow);
	
	headerBand.setElements(headerElements);
	
	Band detailBand = reportLayout.getDetailBand();
       List<BandElement> row = new ArrayList<BandElement>(1);
       
       BandElement ce = new ColumnBandElement(column);
       ce.setPadding(new Padding(1,1,1,1));     
       ce.setForeground(data.getColor());
       row.add(ce);
       
       List<List<BandElement>> detailElements = new ArrayList<List<BandElement>>();        
       detailElements.add(row);               
       detailBand.setElements(detailElements);   

	return reportLayout;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:39,代码来源:ReportLayoutFactory.java

示例3: getData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorData getData() {
	IndicatorData data = new IndicatorData();
	data.setTitle(titleField.getText());
	data.setDescription(descField.getText());
	data.setUnit(unitField.getText());
	data.setMin(Integer.parseInt(minField.getText()));
	data.setMax(Integer.parseInt(maxField.getText()));
	data.setColor(new Color(Integer.parseInt(colorField.getText())));
	data.setShowMinMax(showMinMax.isSelected());
	data.setShadow(shadow.isSelected());
	return data;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:13,代码来源:SelectIndicatorSettingsWizardPanel.java

示例4: getIndicatorData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
/**
 * Get indicator data INDICATOR exporter
 *
 * @return indicator data for INDICATOR exporter
 */
public IndicatorData getIndicatorData() {
	if (INDICATOR_FORMAT.equals(format)) {
		IndicatorExporter ie = (IndicatorExporter) exporter;
		return ie.getData();
	} else {
		return new IndicatorData();
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:14,代码来源:ReportRunner.java

示例5: IndicatorHTML5Panel

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorHTML5Panel(String id, String width, String height, IModel<IndicatorData> model) {
	super(id, model);
	
	WebMarkupContainer container = new WebMarkupContainer("canvas");
	container.setOutputMarkupId(true);
	container.add(new AttributeAppender("width", width));
	container.add(new AttributeAppender("height", height));
	zoom = "100%".equals(width) || "100%".equals(height);
	add(container);
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:11,代码来源:IndicatorHTML5Panel.java

示例6: IndicatorDynamicImageResource

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorDynamicImageResource(int width, int height, IndicatorData data) {
	super(width, height);	
	
	this.width = width;
	this.height = height;
	this.data = data;
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:8,代码来源:IndicatorDynamicImageResource.java

示例7: load

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
@Override
protected IndicatorData load() {	
	error = null;
	try {
		return getIndicatorData(widgetId, urlQueryParameters);
	} catch (Exception e) {    
		e.printStackTrace();
		error = e;
		return null;
	}				
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:12,代码来源:IndicatorWidgetView.java

示例8: setIndicator

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public void setIndicator(IndicatorData indicatorData) {
	reportAction.setIndicatorData(indicatorData);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:4,代码来源:NewReportFromQueryAction.java

示例9: setIndicatorData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public void setIndicatorData(IndicatorData indicatorData) {
	this.indicatorData = indicatorData;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:4,代码来源:NewReportAction.java

示例10: IndicatorExporter

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorExporter(ExporterBean bean) {
	super(bean);     	  
	data = new IndicatorData();
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:5,代码来源:IndicatorExporter.java

示例11: getData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorData getData() {
	return data;
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:4,代码来源:IndicatorExporter.java

示例12: getIndicatorData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
/** Get indicator data INDICATOR exporter
*
* @return indicator data for INDICATOR exporter
*/
public IndicatorData getIndicatorData();
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:6,代码来源:Runner.java

示例13: getIndicatorData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
/** Get indicator data INDICATOR exporter
*
* @return indicator data for INDICATOR exporter
*/
public IndicatorData getIndicatorData() {
	return new IndicatorData();
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:8,代码来源:ChartRunner.java

示例14: getIndicatorData

import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorData getIndicatorData(String widgetId, Map<String, Object> urlQueryParameters) throws ReportRunnerException, NoDataFoundException, TimeoutException; 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:2,代码来源:DashboardService.java


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