|
|
|
@ -1,15 +1,29 @@
|
|
|
|
|
package com.fr.van.chart.drillmap.designer.other; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
|
import com.fr.extended.chart.HyperLinkPara; |
|
|
|
|
import com.fr.extended.chart.HyperLinkParaHelper; |
|
|
|
|
import com.fr.js.NameJavaScriptGroup; |
|
|
|
|
import com.fr.plugin.chart.drillmap.VanChartDrillMapPlot; |
|
|
|
|
import com.fr.van.chart.custom.component.VanChartHyperLinkPane; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Created by hufan on 2016/12/13. |
|
|
|
|
*/ |
|
|
|
|
public class VanChartCatalogHyperLinkPane extends VanChartHyperLinkPane { |
|
|
|
|
|
|
|
|
|
protected Map<String, BaseFormula> getHyperLinkEditorMap() { |
|
|
|
|
HashMap<String, BaseFormula> map = new HashMap<String, BaseFormula>(); |
|
|
|
|
for (HyperLinkPara para : HyperLinkParaHelper.DRILL_TOOLS) { |
|
|
|
|
map.put(para.getName(), BaseFormula.createFormulaBuilder().build(para.getFormulaContent())); |
|
|
|
|
} |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateHotHyperLink(Plot plot, NameJavaScriptGroup nameGroup) { |
|
|
|
|
if (plot instanceof VanChartDrillMapPlot) { |
|
|
|
|
((VanChartDrillMapPlot) plot).setDrillUpHyperLink(nameGroup); |
|
|
|
|