use of org.opennms.netmgt.config.charts.Title in project opennms by OpenNMS.
the class ChartUtils method addSubTitles.
/**
* @param chartConfig
* @param barChart
*/
private static void addSubTitles(BarChart chartConfig, JFreeChart barChart) {
Iterator<SubTitle> it;
/*
* Add subtitles.
*/
for (it = chartConfig.getSubTitleCollection().iterator(); it.hasNext(); ) {
SubTitle subTitle = (SubTitle) it.next();
Title title = subTitle.getTitle();
String value = title.getValue();
barChart.addSubtitle(new TextTitle(value));
}
}