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.
我已经重写了 chartMouseClicked () 方法来为我的 barChart 捕获 ChartMouseEvent。当鼠标单击其中一个条时,我想获取数据集。但是,当单击图表面板上的其他任何位置时,事件不应响应。我该如何过滤这个。
您需要检查ChartEntity返回的 by ,如此处ChartMouseEvent#getEntity()所示。
ChartEntity
ChartMouseEvent#getEntity()