|
|
@ -27,7 +27,6 @@ import com.fr.design.chartinterface.RangeIndependentChartInterface; |
|
|
|
import com.fr.design.chartinterface.StockIndependentChartInterface; |
|
|
|
import com.fr.design.chartinterface.StockIndependentChartInterface; |
|
|
|
import com.fr.design.chartinterface.XYScatterIndependentChartInterface; |
|
|
|
import com.fr.design.chartinterface.XYScatterIndependentChartInterface; |
|
|
|
import com.fr.design.condition.ConditionAttributesPane; |
|
|
|
import com.fr.design.condition.ConditionAttributesPane; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
|
|
|
|
import com.fr.design.gui.core.WidgetOption; |
|
|
|
import com.fr.design.gui.core.WidgetOption; |
|
|
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
|
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
|
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
|
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
|
@ -60,7 +59,6 @@ import com.fr.plugin.chart.radar.VanChartRadarPlot; |
|
|
|
import com.fr.plugin.chart.scatter.VanChartScatterPlot; |
|
|
|
import com.fr.plugin.chart.scatter.VanChartScatterPlot; |
|
|
|
import com.fr.plugin.chart.structure.VanChartStructurePlot; |
|
|
|
import com.fr.plugin.chart.structure.VanChartStructurePlot; |
|
|
|
import com.fr.plugin.chart.treemap.VanChartTreeMapPlot; |
|
|
|
import com.fr.plugin.chart.treemap.VanChartTreeMapPlot; |
|
|
|
import com.fr.plugin.chart.vanchart.imgevent.design.DesignImageEvent; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.wordcloud.VanChartWordCloudPlot; |
|
|
|
import com.fr.plugin.chart.wordcloud.VanChartWordCloudPlot; |
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
import com.fr.plugin.injectable.PluginSingleInjection; |
|
|
|
import com.fr.plugin.injectable.PluginSingleInjection; |
|
|
@ -69,7 +67,6 @@ import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.EnvChangedListener; |
|
|
|
import com.fr.stable.EnvChangedListener; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.plugin.ExtraChartDesignClassManagerProvider; |
|
|
|
import com.fr.stable.plugin.ExtraChartDesignClassManagerProvider; |
|
|
|
import com.fr.van.chart.DownloadOnlineSourcesHelper; |
|
|
|
|
|
|
|
import com.fr.van.chart.area.AreaIndependentVanChartInterface; |
|
|
|
import com.fr.van.chart.area.AreaIndependentVanChartInterface; |
|
|
|
import com.fr.van.chart.bar.BarIndependentVanChartInterface; |
|
|
|
import com.fr.van.chart.bar.BarIndependentVanChartInterface; |
|
|
|
import com.fr.van.chart.bubble.BubbleIndependentVanChartInterface; |
|
|
|
import com.fr.van.chart.bubble.BubbleIndependentVanChartInterface; |
|
|
@ -111,11 +108,12 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
private static ChartTypeInterfaceManager classManager = new ChartTypeInterfaceManager(); |
|
|
|
private static ChartTypeInterfaceManager classManager = new ChartTypeInterfaceManager(); |
|
|
|
|
|
|
|
|
|
|
|
private static LinkedHashMap<String, CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>> chartTypeInterfaces = |
|
|
|
private static LinkedHashMap<String, CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>> chartTypeInterfaces = |
|
|
|
new LinkedHashMap<String, CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>>(); |
|
|
|
new LinkedHashMap<String, CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>>(); |
|
|
|
|
|
|
|
|
|
|
|
private static Map<String, String> idAndPriorityMap = new HashMap<String, String>(); |
|
|
|
private static Map<String, String> idAndPriorityMap = new HashMap<String, String>(); |
|
|
|
|
|
|
|
|
|
|
|
public synchronized static ChartTypeInterfaceManager getInstance() { |
|
|
|
public synchronized static ChartTypeInterfaceManager getInstance() { |
|
|
|
|
|
|
|
|
|
|
|
return classManager; |
|
|
|
return classManager; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -132,13 +130,11 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
public void envChanged() { |
|
|
|
public void envChanged() { |
|
|
|
//重新注册designModuleFactory
|
|
|
|
//重新注册designModuleFactory
|
|
|
|
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption()); |
|
|
|
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption()); |
|
|
|
DesignImageEvent.registerDefaultCallbackEvent(HistoryTemplateListPane.getInstance()); |
|
|
|
|
|
|
|
DesignImageEvent.registerDownloadSourcesEvent(new DownloadOnlineSourcesHelper()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static WidgetOption[] initWidgetOption() { |
|
|
|
public static WidgetOption[] initWidgetOption() { |
|
|
|
|
|
|
|
|
|
|
|
ChartInternationalNameContentBean[] typeName = ChartTypeManager.getInstance().getAllChartBaseNames(); |
|
|
|
ChartInternationalNameContentBean[] typeName = ChartTypeManager.getInstance().getAllChartBaseNames(); |
|
|
|
ChartWidgetOption[] child = new ChartWidgetOption[typeName.length]; |
|
|
|
ChartWidgetOption[] child = new ChartWidgetOption[typeName.length]; |
|
|
@ -246,7 +242,7 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
if (!chartTypeInterfaces.containsKey(priority)) { |
|
|
|
if (!chartTypeInterfaces.containsKey(priority)) { |
|
|
|
//新建一个具体图表列表
|
|
|
|
//新建一个具体图表列表
|
|
|
|
CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap> chartUIList |
|
|
|
CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap> chartUIList |
|
|
|
= new CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>(LinkedHashMap.class); |
|
|
|
= new CloseableContainedMap<String, IndependentChartUIProvider, LinkedHashMap>(LinkedHashMap.class); |
|
|
|
chartUIList.put(plotID, provider); |
|
|
|
chartUIList.put(plotID, provider); |
|
|
|
chartTypeInterfaces.put(priority, chartUIList); |
|
|
|
chartTypeInterfaces.put(priority, chartUIList); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -438,8 +434,8 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
private boolean plotInChart(String plotID, String priority) { |
|
|
|
private boolean plotInChart(String plotID, String priority) { |
|
|
|
|
|
|
|
|
|
|
|
return chartTypeInterfaces != null |
|
|
|
return chartTypeInterfaces != null |
|
|
|
&& chartTypeInterfaces.containsKey(priority) |
|
|
|
&& chartTypeInterfaces.containsKey(priority) |
|
|
|
&& chartTypeInterfaces.get(priority).containsKey(plotID); |
|
|
|
&& chartTypeInterfaces.get(priority).containsKey(plotID); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|