Search in sources :

Example 1 with SubTitle

use of org.opennms.netmgt.config.charts.SubTitle 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));
    }
}
Also used : TextTitle(org.jfree.chart.title.TextTitle) Title(org.opennms.netmgt.config.charts.Title) TextTitle(org.jfree.chart.title.TextTitle) SubTitle(org.opennms.netmgt.config.charts.SubTitle) SubTitle(org.opennms.netmgt.config.charts.SubTitle)

Aggregations

TextTitle (org.jfree.chart.title.TextTitle)1 SubTitle (org.opennms.netmgt.config.charts.SubTitle)1 Title (org.opennms.netmgt.config.charts.Title)1