tooltip timeout

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sexma
Posts: 2
Joined: Thu Dec 18, 2003 9:25 am
Location: Valencia (Spain)
Contact:

tooltip timeout

Post by Sexma » Mon Jan 12, 2004 2:22 pm

Hi,

I want to change the time value for a tooltip is displayed in the chart. I saw in the forum one solution ToolTipManager.sharedInstance().setDismissDelay(1000 * 100);, but i don't know what is the class ToolTipManager

Anyone can say me where is this class?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jan 12, 2004 2:28 pm

It is part of the Swing framework, not JFreeChart.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Matthias
Posts: 42
Joined: Fri Apr 18, 2003 9:49 am
Location: Germany

Post by Matthias » Mon Jan 12, 2004 3:44 pm

I think it is desirable to be able to let JFreeChart use its own ToolTipManager since one may wish that tooltips in the chart area appear faster or stay longer than the other/normal tooltips (for buttons...). So I propose setter/getter methods for the ToolTipManager; the default ToolTipManager may be ToolTipManager.sharedInstance() - this is just an idea, i haven't tested if it would really work this way.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jan 12, 2004 3:46 pm

Sounds reasonable...I'll put it on my to-do list to test it. If you try it out yourself, let me know if it works.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Matthias
Posts: 42
Joined: Fri Apr 18, 2003 9:49 am
Location: Germany

Post by Matthias » Thu Jan 15, 2004 3:02 pm

Matthias wrote:...setter/getter methods for the ToolTipManager...
Sorry for this silly proposal :oops: , one cannot construct another ToolTipManager.

To apologize i submitted a patch which works differently (toggles the tooltip delay values if the mouse enters or exits the chart panel) under
http://sourceforge.net/tracker/index.ph ... tid=315494

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jan 19, 2004 10:50 am

This patch has been committed to CVS and will be incorporated in the 0.9.17 release.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked