|
|
|
@ -18,6 +18,7 @@ import com.fr.design.gui.itextfield.UITextField;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.ChartTypePane.ComboBoxPane; |
|
|
|
|
import com.fr.design.mainframe.chart.info.ChartInfoCollector; |
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
@ -154,6 +155,12 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen
|
|
|
|
|
addButton.addActionListener((e) -> { |
|
|
|
|
String name = getNewChartName(); |
|
|
|
|
ChartProvider chart = getChangeStateNewChart(); |
|
|
|
|
if (!ChartEditContext.supportTheme() && chart instanceof VanChart) { |
|
|
|
|
//主题中有的属性 界面上屏蔽不跟随主题 属性全部设置成自定义
|
|
|
|
|
((VanChart) chart).setThemeCustom(); |
|
|
|
|
// //主题中没有的 根据主题深浅色自动 的属性 默认自动
|
|
|
|
|
// ((VanChart) chart4Update).setAutoThemeCustom();
|
|
|
|
|
} |
|
|
|
|
checkInForm(chart); |
|
|
|
|
addNewChart(chart, name, editingCollection.getChartCount()); |
|
|
|
|
}); |
|
|
|
|