|
|
@ -1,11 +1,13 @@ |
|
|
|
package com.fr.van.chart.custom.other; |
|
|
|
package com.fr.van.chart.custom.other; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.plugin.chart.attr.plot.VanChartPlot; |
|
|
|
import com.fr.plugin.chart.attr.plot.VanChartPlot; |
|
|
|
import com.fr.plugin.chart.custom.CustomPlotFactory; |
|
|
|
import com.fr.plugin.chart.custom.CustomPlotFactory; |
|
|
|
import com.fr.plugin.chart.custom.VanChartCustomPlot; |
|
|
|
import com.fr.plugin.chart.custom.VanChartCustomPlot; |
|
|
|
import com.fr.plugin.chart.custom.type.CustomPlotType; |
|
|
|
import com.fr.plugin.chart.custom.type.CustomPlotType; |
|
|
|
import com.fr.van.chart.custom.component.VanChartCustomPlotTabPane; |
|
|
|
import com.fr.van.chart.custom.component.VanChartCustomPlotTabPane; |
|
|
|
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorPane; |
|
|
|
import com.fr.van.chart.designer.other.VanChartConditionAttrPane; |
|
|
|
import com.fr.van.chart.designer.other.VanChartConditionAttrPane; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
@ -16,10 +18,17 @@ import java.util.List; |
|
|
|
* Created by Fangjie on 2016/4/28. |
|
|
|
* Created by Fangjie on 2016/4/28. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class VanChartCustomPlotConditionAttrTabPane extends VanChartCustomPlotTabPane<VanChartCustomPlot, VanChartCustomPlot> { |
|
|
|
public class VanChartCustomPlotConditionAttrTabPane extends VanChartCustomPlotTabPane<VanChartCustomPlot, VanChartCustomPlot> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Chart chart; |
|
|
|
|
|
|
|
|
|
|
|
public VanChartCustomPlotConditionAttrTabPane(VanChartCustomPlot plot, BasicPane parent) { |
|
|
|
public VanChartCustomPlotConditionAttrTabPane(VanChartCustomPlot plot, BasicPane parent) { |
|
|
|
super(plot, parent); |
|
|
|
super(plot, parent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setChart(Chart chart) { |
|
|
|
|
|
|
|
this.chart = chart; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void initTabTitle() { |
|
|
|
protected void initTabTitle() { |
|
|
|
List<VanChartPlot> customPlotList = plot.getCustomPlotList(); |
|
|
|
List<VanChartPlot> customPlotList = plot.getCustomPlotList(); |
|
|
@ -73,6 +82,18 @@ public class VanChartCustomPlotConditionAttrTabPane extends VanChartCustomPlotTa |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void tabChanged() { |
|
|
|
|
|
|
|
List<VanChartPlot> customPlotList = plot.getCustomPlotList(); |
|
|
|
|
|
|
|
int index = getSelectedIndex(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (customPlotList.size() > index && paneList.size() > index) { |
|
|
|
|
|
|
|
VanChartPlot chartPlot = customPlotList.get(index); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CustomPlotType plotType = CustomPlotFactory.getCustomType(chartPlot); |
|
|
|
|
|
|
|
VanChartRichEditorPane.refreshCustomChartTableFieldNames(chart, plotType); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public VanChartCustomPlot updateBean() { |
|
|
|
public VanChartCustomPlot updateBean() { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|