List of usage examples for org.jfree.chart.title LegendTitle addChangeListener
public void addChangeListener(TitleChangeListener listener)
From source file:org.martus.client.swingui.actions.ActionMenuCharts.java
private LegendTitle createLegend(JFreeChart chart) { LegendTitle legend = new LegendTitle(chart.getPlot()); legend.setMargin(new RectangleInsets(1.0, 1.0, 1.0, 1.0)); legend.setFrame(new LineBorder()); legend.setBackgroundPaint(Color.white); legend.setPosition(RectangleEdge.BOTTOM); legend.addChangeListener(chart); legend.setItemFont(FontHandler.getDefaultFont()); return legend; }