mouse listener?
mouse listener?
It would be awesome to add support for mouse events...
like hover over a plotted element and have that call back to your mouselistener object and use that to highlight that element's data in an accompanying grid...
was that on the todo list at all? Is that something I could contribute if it isnt?
like hover over a plotted element and have that call back to your mouselistener object and use that to highlight that element's data in an accompanying grid...
was that on the todo list at all? Is that something I could contribute if it isnt?
Re: mouse listener?
Hi Eric,
I have some interesting code from Alex Weber for mouse events...I've been meaning to post it on the website in the contributions section, until I have it integrated into the main source tree for JFreeChart. I'll try to get that done as soon as possible (it may be Tuesday before I get it done as I'm away for the next couple of days).
Regards,
DG.
I have some interesting code from Alex Weber for mouse events...I've been meaning to post it on the website in the contributions section, until I have it integrated into the main source tree for JFreeChart. I'll try to get that done as soon as possible (it may be Tuesday before I get it done as I'm away for the next couple of days).
Regards,
DG.
Re: mouse listener?
I've uploaded the file (1.4MB) to:
ftp://213.253.31.132/jfreechart/jfreech ... -aw.tar.gz
Hopefully I'll get time soon to repackage the files as a zip archive...
Regards,
DG.
ftp://213.253.31.132/jfreechart/jfreech ... -aw.tar.gz
Hopefully I'll get time soon to repackage the files as a zip archive...
Regards,
DG.
Re: mouse listener?
David,
Can this be extended to create lines on the charts ?
Thanks
Mudit
Can this be extended to create lines on the charts ?
Thanks
Mudit
Re: mouse listener?
I've taken a look at it and it doenst look like it will help you in that dept at all... all it really does is grant you the ability to register a click listener and be sent an object contaning data of the element you clicked.
Re: mouse listener?
I created my own mouseListener and added to the JFreeChartPanel. I can draw the lines now. Only thing is when the chart refreshes, I lose all the line information. I somehow need to store the lines and redraw them when the chart refreshes. Any ideas where is the hook for that ?
Thanks
Mudit
Thanks
Mudit
Re: mouse listener?
I extended JFreeChartPanel and add my mouse listener and paintComponent in there. Done. Thanks.
Mudit
Mudit
Re: mouse listener?
Hi All,
I have some code from Hans-Jurgen Greiner that I am working on at the moment...it introduces quite a bit of new code to JFreeChartPanel and will include zooming on a region selected with the mouse, cross hairs on the panel and a mouse listener mechanism.
Regards,
DG.
I have some code from Hans-Jurgen Greiner that I am working on at the moment...it introduces quite a bit of new code to JFreeChartPanel and will include zooming on a region selected with the mouse, cross hairs on the panel and a mouse listener mechanism.
Regards,
DG.