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

Add a way to set the cursor for the Chart (excluding the legend)

XMLWordPrintable

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

      A chart may be composed of 2 components:
      - The chart itself
      - A legend
      -----
      * Problem:

      If you set the cursor on the chart via setCursor(Cursor) you are setting the cursor of the whole chart component, that is, the chart itself and the legend.

      Suppose you want to add a zoom feature to the chart, you would probably want to change the cursor on the chart to a zoom cursor, however if you do this via setCursor(Cursor) you are also changing the Cursor of the legend to a zoom cursor which from an usability stand point will give a wrong impression to the user (he might think that he can zoom in on the legend).
      -----
      * Implementation Suggestion:

      This can be as simple as adding the following method to the Chart class:
      setChartCursor(Cursor cursor)
      {
         chartContent.setCursor(cursor);
      }

            Unassigned Unassigned
            pdvieira Pedro Vieira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: