The LegendItem is currently still in the com.sun package and I'd like to be able to access individual LegendItems to attach mouse over events to them. In my case, I need to change the style of the series, whenever the user hover's over the legend item for that series. To make this easier to do, I'd like the following API changes:
getLegend():Legend -- it currently returns a node for the Legend.
I would also like to be able to attach events directly to the LegendItem itself, rather than just its symbol node. This would allow events to be triggered by either the symbol or the text next to the symbol. For example, if you want to set a MouseEnter event handler, you want the handler to work regardless of whether the user is hovering over the symbol or the text. This is a little more intuitive for users.
getLegend():Legend -- it currently returns a node for the Legend.
I would also like to be able to attach events directly to the LegendItem itself, rather than just its symbol node. This would allow events to be triggered by either the symbol or the text next to the symbol. For example, if you want to set a MouseEnter event handler, you want the handler to work regardless of whether the user is hovering over the symbol or the text. This is a little more intuitive for users.