Browse Source

update

master
Fangjie Hu 8 years ago
parent
commit
c0675ef3f7
  1. 12
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java
  2. 2
      designer_chart/src/com/fr/design/chart/ChartTypePane.java

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

@ -94,6 +94,10 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
if(rowChart == null) {
continue;
}
//初始化图表模型图片
initChartsDemoImage(rowChart);
String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(plotID);
Icon icon = IOUtils.readIcon(iconPath);
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;
}
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() {
classManager = null;
}

2
designer_chart/src/com/fr/design/chart/ChartTypePane.java

@ -35,8 +35,6 @@ public class ChartTypePane extends ChartCommonWizardPane {
charts4Icon[i] = new Chart[rowChartsCount];
for (int j = 0; j < rowChartsCount; j++) {
try {
//此时,为图片生成模型数据
rowCharts[j].createSlotImage();
//获取图片模型
charts4Icon[i][j] = (Chart) rowCharts[j].clone();
charts4Icon[i][j].setTitle(null);

Loading…
Cancel
Save