}
protected ExtTimeTableXYDataset convertToTable(final XYDataset xyDataset)
{
final TimeSeriesCollection timeSeriesCollection = (TimeSeriesCollection) xyDataset;
final ExtTimeTableXYDataset tableXYDataset = new ExtTimeTableXYDataset();
final int count = timeSeriesCollection.getSeriesCount();
for (int i = 0; i < count; i++)
{
final Comparable key = timeSeriesCollection.getSeriesKey(i);
final TimeSeries timeSeries = timeSeriesCollection.getSeries(i);
final int itemCount = timeSeries.getItemCount();
for (int ic = 0; ic < itemCount; ic++)
{
final TimeSeriesDataItem seriesDataItem = timeSeries.getDataItem(ic);
tableXYDataset.add(seriesDataItem.getPeriod(), seriesDataItem.getValue(), key, false);
}
}
return tableXYDataset;
}