Mouse near the edges of the chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vani_hegde
Posts: 17
Joined: Tue Oct 11, 2005 9:27 pm

Mouse near the edges of the chart

Post by vani_hegde » Fri Oct 21, 2005 12:41 am

Hi,
i want to change my cursor to an arrow when the mouse is near the edge of the chart. Can someone tell me how can i detect the if the mouse is near the edge of the chart?

thanks,
vani

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 » Fri Oct 21, 2005 12:47 pm

In most cases, the getScreenDataArea() method in the ChartPanel class should help you.
David Gilbert
JFreeChart Project Leader

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

Locked