return tableXYDataset;
}
protected TableXYDataset convertToTable(final XYSeriesCollection xyDataset)
{
final ExtCategoryTableXYDataset tableXYDataset = new ExtCategoryTableXYDataset();
final int count = xyDataset.getSeriesCount();
for (int i = 0; i < count; i++)
{
final XYSeries timeSeries = xyDataset.getSeries(i);
final Comparable key = timeSeries.getKey();
final int itemCount = timeSeries.getItemCount();
for (int ic = 0; ic < itemCount; ic++)
{
final XYDataItem seriesDataItem = timeSeries.getDataItem(ic);
tableXYDataset.add(seriesDataItem.getX(), seriesDataItem.getY(), key, false);
}
}
return tableXYDataset;
}