Bar and mouse event

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Nico

Bar and mouse event

Post by Nico » Tue Mar 12, 2002 5:08 pm

Hi,
I would like to had some mouse events on bars from a BarChart. For example, I want to show some informations when I click on a bar. I would like to know if it exists any kind of mouse listener on a Bar object (I don't see one in the API doc), and do you think it is easy to implement ?
I think that it is possible and it will be similar to the tooltip mechanism, but I don't find the related classes (StandardToolTipsCollection()).
Thanks

David Gilbert

Re: Bar and mouse event

Post by David Gilbert » Wed Mar 13, 2002 10:20 am

Hi Nico,

Eventually I'd like JFreeChart to support this, but it's not there yet. You can do some things with the crosshair point and the tooltips information. Here's an earlier related thread:

http://www.object-refinery.com/phorum-3 ... 141&t=1141

Hope that helps,

DG.

Locked