|
|
@ -3,6 +3,7 @@ package com.fr.van.chart.designer.component.richText; |
|
|
|
import com.fr.base.TableData; |
|
|
|
import com.fr.base.TableData; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartdata.MoreNameCDDefinition; |
|
|
|
import com.fr.chart.chartdata.MoreNameCDDefinition; |
|
|
|
import com.fr.chart.chartdata.OneValueCDDefinition; |
|
|
|
import com.fr.chart.chartdata.OneValueCDDefinition; |
|
|
|
import com.fr.data.TableDataSource; |
|
|
|
import com.fr.data.TableDataSource; |
|
|
@ -17,6 +18,7 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.plugin.chart.base.AttrTooltipRichText; |
|
|
|
import com.fr.plugin.chart.base.AttrTooltipRichText; |
|
|
|
import com.fr.plugin.chart.type.TextAlign; |
|
|
|
import com.fr.plugin.chart.type.TextAlign; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.van.chart.designer.PlotFactory; |
|
|
|
import com.teamdev.jxbrowser.chromium.Browser; |
|
|
|
import com.teamdev.jxbrowser.chromium.Browser; |
|
|
|
import com.teamdev.jxbrowser.chromium.JSValue; |
|
|
|
import com.teamdev.jxbrowser.chromium.JSValue; |
|
|
|
import com.teamdev.jxbrowser.chromium.events.ScriptContextAdapter; |
|
|
|
import com.teamdev.jxbrowser.chromium.events.ScriptContextAdapter; |
|
|
@ -51,6 +53,12 @@ public class VanChartRichEditorPane { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plot plot = chart.getPlot(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (plot == null || !PlotFactory.plotSupportAddTableField(plot)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TopDefinitionProvider definition = chart.getFilterDefinition(); |
|
|
|
TopDefinitionProvider definition = chart.getFilterDefinition(); |
|
|
|
|
|
|
|
|
|
|
|
if (definition == null) { |
|
|
|
if (definition == null) { |
|
|
|