Search in sources :

Example 1 with Title

use of org.jfree.chart.title.Title in project GT by Tencent.

the class AbstractRealTimeLineChart method setSubTitle.

/**
	 * 添加文字副标题
	* @Title: setSubTitle  
	* @Description:   
	* @param title 
	* void 
	* @throws
	 */
public void setSubTitle(String title) {
    Title curSubTitle = new TextTitle(title);
    if (lastSubTile == null) {
        chart.addSubtitle(curSubTitle);
    } else {
        chart.removeSubtitle(lastSubTile);
        chart.addSubtitle(curSubTitle);
    }
    lastSubTile = curSubTitle;
}
Also used : TextTitle(org.jfree.chart.title.TextTitle) Title(org.jfree.chart.title.Title) TextTitle(org.jfree.chart.title.TextTitle)

Aggregations

TextTitle (org.jfree.chart.title.TextTitle)1 Title (org.jfree.chart.title.Title)1