|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
package com.fr.design.chart; |
|
|
|
|
|
|
|
|
|
import com.fr.base.chart.BaseChartCollection; |
|
|
|
|
import com.fr.base.chart.BaseChartGetter; |
|
|
|
|
import com.fr.base.chart.chartdata.CallbackEvent; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
@ -14,10 +12,6 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.plugin.chart.area.VanChartAreaPlot; |
|
|
|
|
import com.fr.plugin.chart.column.VanChartColumnPlot; |
|
|
|
|
import com.fr.plugin.chart.line.VanChartLinePlot; |
|
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.DefaultListCellRenderer; |
|
|
|
@ -168,31 +162,6 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent
|
|
|
|
|
|
|
|
|
|
private void calculateAutoChart() { |
|
|
|
|
chartResultModel.clear(); |
|
|
|
|
|
|
|
|
|
//TODO 使用以下模拟数据,计算规则待补充
|
|
|
|
|
BaseChartCollection chartCollection = BaseChartGetter.createChartCollection(VanChartColumnPlot.VAN_CHART_COLUMN_PLOT_ID); |
|
|
|
|
VanChart selectedChart = ((ChartCollection) chartCollection).getSelectedChart(VanChart.class); |
|
|
|
|
selectedChart.getTitle().setTextObject("自动图表标题"); |
|
|
|
|
|
|
|
|
|
BaseChartCollection chartCollection1 = BaseChartGetter.createChartCollection(VanChartLinePlot.VAN_CHART_LINE_PLOT); |
|
|
|
|
VanChart selectedChart1 = ((ChartCollection) chartCollection1).getSelectedChart(VanChart.class); |
|
|
|
|
selectedChart1.getTitle().setTextObject("自动图表标题"); |
|
|
|
|
|
|
|
|
|
BaseChartCollection chartCollection2 = BaseChartGetter.createChartCollection(VanChartAreaPlot.VAN_CHART_AREA_PLOT_ID); |
|
|
|
|
VanChart selectedChart2 = ((ChartCollection) chartCollection2).getSelectedChart(VanChart.class); |
|
|
|
|
selectedChart2.getTitle().setTextObject("自动图表标题"); |
|
|
|
|
|
|
|
|
|
AutoChartIcon autoChartIcon = new AutoChartIcon((ChartCollection) chartCollection); |
|
|
|
|
autoChartIcon.registerCallBackEvent(this); |
|
|
|
|
AutoChartIcon autoChartIcon1 = new AutoChartIcon((ChartCollection) chartCollection1); |
|
|
|
|
autoChartIcon1.registerCallBackEvent(this); |
|
|
|
|
AutoChartIcon autoChartIcon2 = new AutoChartIcon((ChartCollection) chartCollection2); |
|
|
|
|
autoChartIcon2.registerCallBackEvent(this); |
|
|
|
|
|
|
|
|
|
chartResultModel.addElement(autoChartIcon); |
|
|
|
|
chartResultModel.addElement(autoChartIcon1); |
|
|
|
|
chartResultModel.addElement(autoChartIcon2); |
|
|
|
|
chartViewList.setSelectedIndex(0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|