generateToolTip called even though tooltips disabled

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
aloleary
Posts: 20
Joined: Wed Mar 26, 2003 4:32 pm
Location: Dublin, Ireland

generateToolTip called even though tooltips disabled

Post by aloleary » Wed Jun 11, 2003 5:25 pm

Hello,
I have created my chart panel with (false, true, true, true, false) params, last one stating that no tooltips be generated. When i start my application i see no tooltips but my profiler still tells me that 17% of all the chart processing !! is taken up on TimeSeriesToolTipGenerator.generateToolTip()

Is there any way to make sure this is not called ?????

I would like to have tooltips when the user moves the mouse over the points but currently it is generated no matter what on each draw and is takin up lots of CPU

Any info/pointers/help on this ?

I am creating lots of dynamic graphs using lots of CPU, loosing 16% on tooltip generation is a lot if i can avoid it

Thanks in advance
Alan

richard_atkinson
Posts: 115
Joined: Fri Mar 14, 2003 3:13 pm
Location: London, England
Contact:

Tooltips Generation

Post by richard_atkinson » Wed Jun 11, 2003 6:14 pm

If you do a setToolTipGenerator(null) on your Renderer the tooltip generation code will not be called.

Regards,
Richard...

aloleary
Posts: 20
Joined: Wed Mar 26, 2003 4:32 pm
Location: Dublin, Ireland

Tooltips Generation

Post by aloleary » Thu Jun 12, 2003 7:53 am

Thanks for that....

Could i manage it using the mouse over event on the chart ?
i.e. could i enable/disable the toolip generator only when the user has a mouse over the itemrenderers

?

Regards
-Alan

Locked