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