Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091397

Improve access to Legend Items.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx

      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.

            Unassigned Unassigned
            mfortnerjfx Mark Fortner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: