开发者

How to handle mouse dragging event in JFreeChart

开发者 https://www.devze.com 2022-12-15 02:19 出处:网络
I want to know whether it is possible to listen to the mouse event of dragging in JFreeCharts. By default it is assign to zooming. I remove this zooming functionality with,

I want to know whether it is possible to listen to the mouse event of dragging in JFreeCharts. By default it is assign to zooming. I remove this zooming functionality with,

chartPanel.setDomainZoomable( false);

chartPanel.setRangeZoomable( false);

And I have used Ch开发者_开发问答artMouseListener interface for listening to mouse events. I'm able to track click and move events. But I'm unable to track the drag event.

So I want to know where, is there a way for tracking mouse drag event? Please help me on this.

Thnax in advance...


You can override mouseDragged() in ChartPanel.

0

精彩评论

暂无评论...
验证码 换一张
取 消