|
|
@ -23,7 +23,7 @@ import java.util.Map; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTabPane<VanChartCustomPlot, ChartCollection> { |
|
|
|
public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTabPane<VanChartCustomPlot, ChartCollection> { |
|
|
|
|
|
|
|
|
|
|
|
private boolean supportCellData = true; |
|
|
|
private boolean supportCellData; |
|
|
|
|
|
|
|
|
|
|
|
public VanChartCustomPlotDataContentsTabPane(VanChartCustomPlot plot, VanChartCustomDataPane parent, AttributeChangeListener listener) { |
|
|
|
public VanChartCustomPlotDataContentsTabPane(VanChartCustomPlot plot, VanChartCustomDataPane parent, AttributeChangeListener listener) { |
|
|
|
super(plot, parent, listener); |
|
|
|
super(plot, parent, listener); |
|
|
@ -34,9 +34,7 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSupportCellData(boolean supportCellData) { |
|
|
|
public void setSupportCellData(boolean supportCellData) { |
|
|
|
for (JPanel jPanel : paneList) { |
|
|
|
this.supportCellData = supportCellData; |
|
|
|
((VanChartDataPane) jPanel).setSupportCellData(supportCellData); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -73,6 +71,7 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab |
|
|
|
for (int i = 0; i < customPlotList.size(); i++) { |
|
|
|
for (int i = 0; i < customPlotList.size(); i++) { |
|
|
|
//根据不同的plot创建不同的数据配置界面
|
|
|
|
//根据不同的plot创建不同的数据配置界面
|
|
|
|
ChartDataPane contentPane = new VanChartDataPane(listener); |
|
|
|
ChartDataPane contentPane = new VanChartDataPane(listener); |
|
|
|
|
|
|
|
contentPane.setSupportCellData(supportCellData); |
|
|
|
paneList.add(contentPane); |
|
|
|
paneList.add(contentPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -84,12 +83,9 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab |
|
|
|
|
|
|
|
|
|
|
|
plot = (VanChartCustomPlot) chartCollection.getSelectedChart().getPlot(); |
|
|
|
plot = (VanChartCustomPlot) chartCollection.getSelectedChart().getPlot(); |
|
|
|
|
|
|
|
|
|
|
|
if (paneList == null) { |
|
|
|
|
|
|
|
paneList = initPaneList(); |
|
|
|
paneList = initPaneList(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (paneList != null) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
relayoutWhenListChange(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
List<VanChartPlot> customPlotList = plot.getCustomPlotList(); |
|
|
|
List<VanChartPlot> customPlotList = plot.getCustomPlotList(); |
|
|
@ -117,7 +113,6 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public ChartCollection updateBean() { |
|
|
|
public ChartCollection updateBean() { |
|
|
|