itemHyperlinks = new HashMap();
}
for(int i = 0; i < categorySeries.length; i++)
{
JRFillCategorySeries crtCategorySeries = categorySeries[i];
Comparable seriesName = crtCategorySeries.getSeries();
if (seriesName == null)
{
throw new JRRuntimeException("Category series name is null.");
}
dataset.addValue(
crtCategorySeries.getValue(),
crtCategorySeries.getSeries(),
crtCategorySeries.getCategory()
);
if (crtCategorySeries.getLabelExpression() != null)
{
Map seriesLabels = (Map)labelsMap.get(seriesName);
if (seriesLabels == null)
{
seriesLabels = new HashMap();
labelsMap.put(seriesName, seriesLabels);
}
seriesLabels.put(crtCategorySeries.getCategory(), crtCategorySeries.getLabel());
}
if (crtCategorySeries.hasItemHyperlinks())
{
Map seriesLinks = (Map) itemHyperlinks.get(seriesName);
if (seriesLinks == null)
{
seriesLinks = new HashMap();
itemHyperlinks.put(seriesName, seriesLinks);
}
seriesLinks.put(crtCategorySeries.getCategory(), crtCategorySeries.getPrintItemHyperlink());
}
}
}
}