|
|
@ -9,6 +9,7 @@ import com.fr.chart.base.AttrChangeConfig; |
|
|
|
import com.fr.chart.chartattr.Axis; |
|
|
|
import com.fr.chart.chartattr.Axis; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartattr.SwitchTitle; |
|
|
|
import com.fr.chart.chartattr.SwitchTitle; |
|
|
|
import com.fr.chart.chartattr.Title; |
|
|
|
import com.fr.chart.chartattr.Title; |
|
|
|
|
|
|
|
|
|
|
@ -28,6 +29,9 @@ import com.fr.js.NameJavaScriptGroup; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartAlertValue; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartAlertValue; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartAxis; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartAxis; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartValueAxis; |
|
|
|
import com.fr.plugin.chart.attr.axis.VanChartValueAxis; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.custom.CustomPlotFactory; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.custom.VanChartCustomPlot; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.custom.type.CustomPlotType; |
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
@ -92,20 +96,31 @@ public class SearchChartCollectionFormulaAction { |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Animation_Special"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Animation_Special"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Interactive") |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Interactive") |
|
|
|
); |
|
|
|
); |
|
|
|
if (chart.getPlot() != null) { |
|
|
|
|
|
|
|
NameJavaScriptGroup javaScriptGroup = chart.getPlot().getHotHyperLink(); |
|
|
|
if (chart.getPlot() instanceof VanChartCustomPlot){ |
|
|
|
if (javaScriptGroup != null) { |
|
|
|
VanChartCustomPlot plot = chart.getPlot(); |
|
|
|
for (int i = 0; i < javaScriptGroup.size(); i++) { |
|
|
|
for (int i = 0 ; i < plot.getCustomPlotList().size() ; i++){ |
|
|
|
NameJavaScript javaScript = javaScriptGroup.getNameHyperlink(i); |
|
|
|
ITContent customContent = ITContent.copy(conditionContent); |
|
|
|
conditionContent.addOtherPos(javaScript.getName()); |
|
|
|
customContent.addOtherPos(CustomPlotFactory.getTitle(CustomPlotFactory.getCustomType(plot.getCustomPlotList().get(i)))); |
|
|
|
SearchJSHighlightAction action = SearchJSHighlightAction.getInstance(); |
|
|
|
dealPlot(formulaInfos,customContent,plot.getCustomPlotList().get(i)); |
|
|
|
action.searchJSFormulaFromOther(formulaInfos, conditionContent, javaScript.getJavaScript()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (chart.getPlot() != null) { |
|
|
|
|
|
|
|
dealPlot(formulaInfos,conditionContent,chart.getPlot()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void dealPlot(List<FormulaInfo> formulaInfos, ITContent content, Plot plot){ |
|
|
|
|
|
|
|
NameJavaScriptGroup javaScriptGroup = plot.getHotHyperLink(); |
|
|
|
|
|
|
|
if (javaScriptGroup != null) { |
|
|
|
|
|
|
|
for (int i = 0; i < javaScriptGroup.size(); i++) { |
|
|
|
|
|
|
|
NameJavaScript javaScript = javaScriptGroup.getNameHyperlink(i); |
|
|
|
|
|
|
|
content.addOtherPos(javaScript.getName()); |
|
|
|
|
|
|
|
SearchJSHighlightAction action = SearchJSHighlightAction.getInstance(); |
|
|
|
|
|
|
|
action.searchJSFormulaFromOther(formulaInfos, content, javaScript.getJavaScript()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void searchFormulaFromChartPresent(List<FormulaInfo> formulaInfos, ITContent content, TopDefinitionProvider provider) { |
|
|
|
private void searchFormulaFromChartPresent(List<FormulaInfo> formulaInfos, ITContent content, TopDefinitionProvider provider) { |
|
|
|
searchPresent4Formula(provider.getCategoryPresent(), content, formulaInfos); |
|
|
|
searchPresent4Formula(provider.getCategoryPresent(), content, formulaInfos); |
|
|
|