Mouse event for Clicking on axes.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
avanidhar
Posts: 16
Joined: Wed Jun 11, 2008 10:47 pm

Mouse event for Clicking on axes.

Post by avanidhar » Mon Apr 06, 2009 4:41 pm

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

david.gilbert
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.

Post by david.gilbert » Mon Apr 06, 2009 8:00 pm

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

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

avanidhar
Posts: 16
Joined: Wed Jun 11, 2008 10:47 pm

Re: Mouse event for Clicking on axes.

Post by avanidhar » Wed Apr 22, 2009 3:04 pm

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

brimborium
Posts: 23
Joined: Mon Dec 13, 2010 10:23 am
antibot: No, of course not.

Re: Mouse event for Clicking on axes.

Post by brimborium » Tue Aug 20, 2013 11:45 am

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?

Locked