|
|
@ -152,9 +152,10 @@ public class ChartTypePane extends AbstractChartAttrPane{ |
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
try{ |
|
|
|
Chart newDefaultChart = (Chart)((AbstractChartTypePane)getSelectedPane()).getDefaultChart().clone(); |
|
|
|
Chart newDefaultChart = (Chart)((AbstractChartTypePane)getSelectedPane()).getDefaultChart().clone(); |
|
|
|
if(!chart.accept(newDefaultChart.getClass())){ |
|
|
|
if (!ComparatorUtils.equals(chart.getClass(), newDefaultChart.getClass())) { |
|
|
|
//vanChart 和 chart 之间切换
|
|
|
|
//vanChart 和 chart 之间切换
|
|
|
|
editingCollection.removeNameObject(editingCollection.getSelectedIndex()); |
|
|
|
//不同chart之间切换
|
|
|
|
|
|
|
|
editingCollection.removeNameObject(editingCollection.getSelectedIndex()); |
|
|
|
editingCollection.addChart(newDefaultChart); |
|
|
|
editingCollection.addChart(newDefaultChart); |
|
|
|
chart = newDefaultChart; |
|
|
|
chart = newDefaultChart; |
|
|
|
} |
|
|
|
} |
|
|
|