How to implement ListCellRenderer for the legends of series?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nclemeur
Posts: 7
Joined: Mon Feb 14, 2005 12:35 pm

How to implement ListCellRenderer for the legends of series?

Post by nclemeur » Wed Jun 08, 2005 1:23 pm

Hello all,

I am still a beginner in Java and I would like to have some advice on what would be the best way to implement the interface ListCellRenderer for all the legend items? I would like to displayed the legend items in a list or combobox?

Should this interface be implemented in classes that extend Series? Should I use the renderer associated to the dataset of the serie to draw the legend item?

This is still not very obvious for me and I would appreciate any help on that.

Cheers,

Nicolas

PS: I am mainly interested in XYPlot

Locked