|
|
|
@ -56,7 +56,10 @@ public class ChartDataPane extends AbstractChartAttrPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout(0, 0)); |
|
|
|
|
if (collection != null && collection.getChartCount() <= 0) { |
|
|
|
|
if (collection == null) { |
|
|
|
|
throw new IllegalArgumentException("ChartCollection can not be null!"); |
|
|
|
|
} |
|
|
|
|
if (collection.getChartCount() <= 0) { |
|
|
|
|
contentsPane = new NormalChartDataPane(listener, ChartDataPane.this); |
|
|
|
|
} else if (collection.getSelectedChart().getPlot() instanceof MapPlot) { |
|
|
|
|
contentsPane = new MapDataPane(listener); |
|
|
|
|