Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种简单的方法可以禁用在 ChartComposite 中绘制的 XYPlot 的放大/缩小功能?覆盖 XYPlot 的缩放方法将是一个解决方案,但我想知道是否有简单的方法..
尝试
getYourChartPanel().setDomainZoomable(false); getYourChartPanel().setRangeZoomable(false);
见setDomainZoomable()和setRangeZoomable()