Dear All,
I am developing an application where I am expected to perform certain actions when the mouse is clicked on the domain and range axes. Is there a way to determine whether the mouse is clicked on the domain axis or range axis? Any guidance in this regard would be greatly appreciated.
Thanks
Avanidhar
Mouse event for Clicking on axes.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Mouse event for Clicking on axes.
In the current release you can't detect a click on the axis. In the 1.0.13 release you will be able to detect a click on the axis area, but not yet a specific label on the axis.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Mouse event for Clicking on axes.
Thank you Dave,
I have started using JFreeChart 1.0.13 and my application seems to be substantially faster than the previous version. Thanks a lot! I am still figuring out how to capture mouse clicks on domain axis or range axis. Could you kindly guide me to the related API calls?
Thanks
Avanidhar
I have started using JFreeChart 1.0.13 and my application seems to be substantially faster than the previous version. Thanks a lot! I am still figuring out how to capture mouse clicks on domain axis or range axis. Could you kindly guide me to the related API calls?
Thanks
Avanidhar
-
- Posts: 23
- Joined: Mon Dec 13, 2010 10:23 am
- antibot: No, of course not.
Re: Mouse event for Clicking on axes.
I would be interested in that too. Specifically, I want to replace the right-click action with something of my own. But only on the axis, anywhere else in the ChartPanel, the normal rightclick should be used. How would I do something like that?