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

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

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      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);
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported: