|
|
@ -1,9 +1,7 @@ |
|
|
|
package com.fr.design.chart; |
|
|
|
package com.fr.design.chart; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.chart.BaseChartCollection; |
|
|
|
import com.fr.base.chart.BaseChartCollection; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Dialog; |
|
|
|
import java.awt.Dialog; |
|
|
@ -53,17 +51,5 @@ public class AutoChartDialog extends ChartDialog { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void populate(BaseChartCollection cc) { |
|
|
|
public void populate(BaseChartCollection cc) { |
|
|
|
super.populate(cc); |
|
|
|
super.populate(cc); |
|
|
|
ChartCollection chartCollection = (ChartCollection) getChartCollection(); |
|
|
|
|
|
|
|
VanChart vanChart = chartCollection.getSelectedChartProvider(VanChart.class); |
|
|
|
|
|
|
|
if (vanChart == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
TopDefinitionProvider filterDefinition = vanChart.getFilterDefinition(); |
|
|
|
|
|
|
|
if (filterDefinition == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String tableName = vanChart.getFilterDefinition().getTableName(); |
|
|
|
|
|
|
|
String[] dataFields = vanChart.getFilterDefinition().getDataFields(); |
|
|
|
|
|
|
|
autoChartTypePane.populate(tableName, dataFields); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|