|
|
|
@ -12,8 +12,10 @@ import com.fr.design.gui.itextfield.UITextField;
|
|
|
|
|
import com.fr.design.hyperlink.AbstractHyperLinkPane; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.mainframe.chart.ChartHyperEditPane; |
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -70,7 +72,14 @@ public class ChartHyperPoplinkPane extends AbstractHyperLinkPane<ChartHyperPopli
|
|
|
|
|
ChartProvider chart = ChartTypeManager.getInstanceWithCheck().getFirstChart(); |
|
|
|
|
if (chart != null) { |
|
|
|
|
try { |
|
|
|
|
cc.addChart((ChartProvider) chart.clone()); |
|
|
|
|
ChartProvider clone = (ChartProvider) chart.clone(); |
|
|
|
|
if (!ChartEditContext.supportTheme() && clone instanceof VanChart) { |
|
|
|
|
//主题中有的属性 界面上屏蔽不跟随主题 属性全部设置成自定义
|
|
|
|
|
((VanChart) clone).setThemeCustom(); |
|
|
|
|
// //主题中没有的 根据主题深浅色自动 的属性 默认自动
|
|
|
|
|
// ((VanChart) chart4Update).setAutoThemeCustom();
|
|
|
|
|
} |
|
|
|
|
cc.addChart(clone); |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|