Browse Source

Merge pull request #325 in BA/design from ~XIAOHU/design:dev to dev

* commit '650d29a1f40bfde51f456f814cedaafdd2922c20':
  update
  update
  异步生成模型数据
master
superman 8 years ago
parent
commit
ff5f9969d8
  1. 12
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

12
designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -94,6 +94,10 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
if(rowChart == null) { if(rowChart == null) {
continue; continue;
} }
//初始化图表模型图片
initChartsDemoImage(rowChart);
String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(plotID); String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(plotID);
Icon icon = IOUtils.readIcon(iconPath); Icon icon = IOUtils.readIcon(iconPath);
child[i] = new ChartWidgetOption(Inter.getLocText(typeName[i].getName()), icon, ChartEditor.class, rowChart[0]); child[i] = new ChartWidgetOption(Inter.getLocText(typeName[i].getName()), icon, ChartEditor.class, rowChart[0]);
@ -101,6 +105,14 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
return child; return child;
} }
private static void initChartsDemoImage(Chart[] rowChart) {
int rowChartsCount = rowChart.length;
for (int j = 0; j < rowChartsCount; j++) {
//此时,为图片生成模型数据
rowChart[j].createSlotImage();
}
}
private synchronized static void envChanged() { private synchronized static void envChanged() {
classManager = null; classManager = null;
} }

Loading…
Cancel
Save