本文整理匯總了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;