#757 SWT ChartComposite Tooltips

1.0.x
closed
None
5
2007-06-06
2007-05-27
No

Hi,

I already posted this to the JFreeChart developer list...

I would like to report two tooltip related bugs in ChartComposite.
The necessary fixes are easy and I will give them here:

1. In getTooltipText(), the line
Rectangle insets = getBounds();
should be replaced by
Rectangle insets = getClientArea();
Right now, the tooltips are misplaced by the amount of trimming of the component.

2. In the event handling case SWT.MouseMove:
if (s!=null && !s.equals(canvas.getToolTipText()))
should be replaced by
if (s == null && canvas.getToolTipText() != null
|| s!=null && !s.equals(canvas.getToolTipText()))
Right now tooltips stay after the mouse moves out of the ChartEntity's area.

Thanks for supporting SWT,

Christoph

Discussion

  • Henry Proudhon

    Henry Proudhon - 2007-06-06
    • assigned_to: nobody --> nenry
     
  • Henry Proudhon

    Henry Proudhon - 2007-06-06
    • status: open --> closed
     

Log in to post a comment.