简体   繁体   English

如何在JFreeChart中用鼠标滚轮旋转饼图?

[英]How to rotate pie chart with mouse wheel in JFreeChart?

我正在搜索一个由鼠标滚轮旋转的饼图,但找不到一个很好的例子。

You can use the ChartPanel method setMouseWheelEnabled(true) . 您可以使用ChartPanel方法setMouseWheelEnabled(true)

Addendum: PieChartDemo1 , included in the distribution, is a complete example; 附录:发行版中包含的PieChartDemo1是一个完整的示例; click the class name to see the source . 单击类名称以查看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM