Browse Source

CHART-10247 设计器图表选择界面图片预览

research/11.0
白岳 5 years ago
parent
commit
d5926c4328
  1. 8
      designer-chart/src/main/java/com/fr/design/chart/ChartTypePane.java

8
designer-chart/src/main/java/com/fr/design/chart/ChartTypePane.java

@ -1,7 +1,6 @@
package com.fr.design.chart;
/**
* the Pane of the Chart
*
*/
import com.fr.chart.base.ChartInternationalNameContentBean;
@ -120,15 +119,16 @@ public class ChartTypePane extends ChartCommonWizardPane {
ChartProvider[] sub_charts = ChartTypePane.this.charts4Icon[main_index];
ChartTypePane.this.iconListModel.clear();
for (int i = 0; i < sub_charts.length; i++) {
ChartTypePane.this.iconListModel.addElement(new ChartIcon(sub_charts[i]));
String ImagePath = sub_charts[i].demoImagePath();
String chartName = sub_charts[i].getChartName();
ChartTypePane.this.iconListModel.addElement(new ChartIcon(ImagePath, chartName));
}
iconViewList.setSelectedIndex(0);
}
};
public String getChartName(ChartIcon chartIcon) {
ChartProvider chart = chartIcon.getChart();
return ChartTypeManager.getInstanceWithCheck().getChartName(chart.getID());
return chartIcon.getChartName();
}
public void populate(ChartProvider chart) {

Loading…
Cancel
Save