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