Browse Source

Merge pull request #185 in DESIGN/design from ~ZHENG/c-design:release/10.0 to release/10.0

* commit '407c09336caec0386a79852d80cb90c4f455d7c3':
  代码质量
  CHART-2466 钻取目录 参数只有区域名
master
zheng 7 years ago
parent
commit
9cbf8c8cd0
  1. 16
      designer-chart/src/com/fr/van/chart/drillmap/designer/other/VanChartCatalogHyperLinkPane.java

16
designer-chart/src/com/fr/van/chart/drillmap/designer/other/VanChartCatalogHyperLinkPane.java

@ -1,15 +1,31 @@
package com.fr.van.chart.drillmap.designer.other;
import com.fr.base.BaseFormula;
import com.fr.base.FormulaBuilder;
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() {
FormulaBuilder builder = BaseFormula.createFormulaBuilder();
HashMap<String, BaseFormula> map = new HashMap<String, BaseFormula>();
for (HyperLinkPara para : HyperLinkParaHelper.DRILL_TOOLS) {
map.put(para.getName(), builder.build(para.getFormulaContent()));
}
return map;
}
protected void updateHotHyperLink(Plot plot, NameJavaScriptGroup nameGroup) {
if (plot instanceof VanChartDrillMapPlot) {
((VanChartDrillMapPlot) plot).setDrillUpHyperLink(nameGroup);

Loading…
Cancel
Save