|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|