public XYSeries[] getSeries() {
        final XYSeriesCollection seriesCollection = new XYSeriesCollection();

        for (int types = 0; types < 255; types++) {
            if (exists(types) && (!hidden.contains(Integer.toString(types)))) {
                final XYSeries series = new XYSeries("Mes. " + types);
                for (int i = 0; i < duration; i++) {
                    if (countUntil(types, i) > 0) {
                        series.add(i, messages[types][i]);
                    }
                }
                seriesCollection.addSeries(series);
            }
        }

        XYSeries[] series = new XYSeries[seriesCollection.getSeriesCount()];
        for (
                int i = 0;
                i < seriesCollection.getSeriesCount(); i++)

        {
            series[i] = seriesCollection.getSeries(i);
        }

        return series;
    }