List of usage examples for org.jfree.chart.event TitleChangeEvent TitleChangeEvent
public TitleChangeEvent(Title title)
From source file:sim.util.media.chart.ChartGenerator.java
/** Sets the title of the chart (and the window frame). If there is an invalidChartTitle set, this is used instead and the specified title is held in storage to be used later. *///from w w w .j ava 2 s . c om public void setTitle(String title) { validChartTitle = title; if (invalidChartTitle != null) title = invalidChartTitle; chart.setTitle(title); chart.titleChanged(new TitleChangeEvent(new org.jfree.chart.title.TextTitle(title))); if (frame != null) frame.setTitle(title); titleField.setValue(title); }
From source file:edu.gmu.cs.sim.util.media.chart.ChartGenerator.java
/** Sets the title of the chart (and the window frame). If there is an invalidChartTitle set, this is used instead and the specified title is held in storage to be used later. *//* w w w . j a v a 2 s. co m*/ public void setTitle(String title) { validChartTitle = title; if (invalidChartTitle != null) { title = invalidChartTitle; } chart.setTitle(title); chart.titleChanged(new TitleChangeEvent(new org.jfree.chart.title.TextTitle(title))); if (frame != null) { frame.setTitle(title); } titleField.setValue(title); }