本文整理汇总了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();
}
示例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;
}
示例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;
}
示例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();
}
}
示例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);
}
示例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;
}
示例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;
}
}
示例8: setIndicator
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public void setIndicator(IndicatorData indicatorData) {
reportAction.setIndicatorData(indicatorData);
}
示例9: setIndicatorData
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public void setIndicatorData(IndicatorData indicatorData) {
this.indicatorData = indicatorData;
}
示例10: IndicatorExporter
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorExporter(ExporterBean bean) {
super(bean);
data = new IndicatorData();
}
示例11: getData
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorData getData() {
return data;
}
示例12: getIndicatorData
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
/** Get indicator data INDICATOR exporter
*
* @return indicator data for INDICATOR exporter
*/
public IndicatorData getIndicatorData();
示例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();
}
示例14: getIndicatorData
import ro.nextreports.engine.exporter.util.IndicatorData; //导入依赖的package包/类
public IndicatorData getIndicatorData(String widgetId, Map<String, Object> urlQueryParameters) throws ReportRunnerException, NoDataFoundException, TimeoutException;